/* ============================================
   ESTILOS CSS - LANDING PAGE PENSIONES
   ============================================ */

/* RESET Y CONFIGURACIÓN GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* COLORES - Puedes cambiarlos aquí */
    --color-primary: #006847;      /* Verde IMSS oscuro */
    --color-primary-light: #00a86b; /* Verde IMSS claro */
    --color-secondary: #0d7c66;    /* Verde complementario */
    --color-white: #ffffff;
    --color-light-bg: #f5f9f7;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-success: #00a86b;
    --color-whatsapp: #25D366;
    
    /* TIPOGRAFÍA - Tamaños grandes para lectura fácil */
    --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 18px;
    --font-size-large: 22px;
    --font-size-xlarge: 28px;
    
    /* ESPACIADOS */
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 4rem;
    
    /* SOMBRAS */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER / HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-trust {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background-color: #1fb055;
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.3rem;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services {
    background-color: var(--color-light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--color-primary-light);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* ============================================
   PROCESO
   ============================================ */
.process {
    background: var(--color-white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-medium);
}

.step h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.step p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonials {
    background-color: var(--color-light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--color-primary-light);
}

.testimonial-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--color-primary-light);
    box-shadow: var(--shadow-medium);
}

.testimonial-name {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.testimonial-location {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-stars {
    font-size: 1.5rem;
    color: #ffa500;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.95;
}

.cta-guarantee {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #1a1a1a;
    color: var(--color-white);
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-primary-light);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.footer-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-whatsapp);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
}

.footer-trust {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-primary-light);
    font-weight: 600;
}

.footer-bottom p {
    font-size: 1rem;
    color: #999;
}

/* ============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
}

/* ============================================
   RESPONSIVE - TABLETS
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid,
    .testimonials-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   RESPONSIVE - MÓVILES
   ============================================ */
@media (max-width: 480px) {
    :root {
        --font-size-base: 16px;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .service-card,
    .testimonial-card,
    .step {
        padding: 1.8rem;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
a:focus,
button:focus {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Alto contraste para mejor lectura */
@media (prefers-contrast: high) {
    .hero,
    .cta-section {
        background: var(--color-primary);
    }
    
    .btn-primary {
        border: 2px solid var(--color-white);
    }
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}