:root {
    /* Paleta Azul Serenidad + Beige Cálido */
    --primary-navy: #1B4965;
    /* Azul profundo más cálido */
    --primary-blue: #5FA8D3;
    /* Azul cielo suave */
    --action-green: #25D366;
    /* WhatsApp verde (mantener) */
    --accent-warm: #F4A261;
    /* Coral suave para acentos */
    --bg-white: #F8F6F3;
    /* Beige muy claro (reemplaza blanco puro) */
    --bg-soft: #E8E3DC;
    /* Beige arena */
    --text-dark: #1A1A1A;
    /* Negro suave */
    --text-grey: #5A6B7C;
    /* Gris azulado */

    /* UI */
    --radius-card: 20px;
    --radius-btn: 50px;
    --shadow-soft: 0 10px 30px rgba(27, 73, 101, 0.08);
    --shadow-hover: 0 20px 40px rgba(27, 73, 101, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-navy);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CLASES DE UTILIDAD --- */
.bg-alt {
    background: linear-gradient(135deg, var(--bg-soft) 0%, #DDD8CF 100%);
    border-radius: 40px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

/* Círculo decorativo sutil */
.bg-alt::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(95, 168, 211, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -50px;
    pointer-events: none;
}

.bg-alt::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -80px;
    left: 10%;
    pointer-events: none;
}

/* --- BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
    gap: 10px;
}

.btn-green {
    background-color: var(--action-green);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-green:hover {
    transform: translateY(-2px);
    background-color: #20bd5a;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-lg {
    /* Botón más grande para el Hero */
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: white;
}

/* --- HEADER (Fondo blanco sólido ahora) --- */
header {
    background: var(--bg-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-navy);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.whatsapp-link {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.whatsapp-link:hover {
    color: var(--action-green);
}

/* --- HERO SECTION CON DEGRADADO LATERAL (TEXTO A LA IZQUIERDA) --- */
.hero {
    position: relative;
    background-image:
        linear-gradient(90deg,
            var(--primary-navy) 15%,
            rgba(15, 37, 87, 0.9) 55%,
            rgba(15, 37, 87, 0) 100%),
        url('./portada.png');

    background-size: cover;
    background-position: center right;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    padding-left: 5%;
}

/* CLAVE: Anulamos el centrado automático del contenedor SOLO en el Hero */
.hero .container {
    margin: 0;
    /* Quita el 'auto' que lo centraba */
    max-width: 100%;
    /* Deja que ocupe el espacio disponible */
    padding: 0;
    /* Quitamos padding extra del contenedor */
}

.hero-content-box {
    position: relative;
    z-index: 2;
    /* Ajustamos el ancho para que el texto quede compacto en la zona oscura */
    max-width: 550px;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Sombra un poco más fuerte para contraste */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.trust-badge-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- AJUSTE PARA MÓVIL (Volvemos a centrar todo en celulares) --- */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
        background-position: center;
        background-image:
            linear-gradient(180deg,
                rgba(15, 37, 87, 0.95) 0%,
                rgba(15, 37, 87, 0.6) 100%),
            url('./portada.png');
        text-align: center;
        justify-content: center;
    }

    .hero .container {
        margin: 0 auto;
        /* Volvemos a centrar el contenedor en móvil */
        padding: 0 20px;
    }

    .hero-content-box {
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- SECCIONES COMUNES (Espacios Reducidos) --- */
.steps-section,
.pricing-section,
.profile-section,
.symptoms-section {
    padding: 50px 0;
    /* Reducido de 80px a 50px para comprimir la web */
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-warm));
    border-radius: 2px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-card);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-top: 3px solid var(--primary-blue);
    transition: transform 0.3s ease;
    position: relative;
}

.feature-card:nth-child(2) {
    border-top-color: var(--accent-warm);
}

.feature-card:nth-child(3) {
    border-top-color: var(--action-green);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: #E8E3DC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary-blue);
}

/* --- PRICING & MAP --- */
.pricing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.pricing-left {
    padding: 50px;
}

.price-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-soft);
    padding-bottom: 20px;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.big-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    display: block;
    line-height: 1;
}

.price-features ul {
    list-style: none;
}

.price-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.check-icon {
    color: var(--action-green);
    font-size: 1.2rem;
}

.map-container {
    position: relative;
    min-height: 400px;
}

.map-overlay-card {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-hover);
}

/* --- SAFETY WIZARD (Espacio Ampliado) --- */
.safety-section {
    margin: 30px 0;
    padding: 50px 0;
    /* Aumentado drásticamente para evitar borde "al límite" */
}

.safety-header {
    text-align: center;
    margin-bottom: 30px;
}

.wizard-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-card);
    border: 2px solid var(--bg-soft);
}

.question-card h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.step-indicator {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.option-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-option {
    background: white;
    border: 2px solid #E0E6ED;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    min-width: 100px;
    font-size: 1rem;
}

.btn-option:hover {
    border-color: var(--primary-navy);
    background: var(--bg-soft);
}

/* --- PERFIL --- */
.profile-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-card);
}

.profile-img-box {
    position: relative;
    flex-shrink: 0;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--bg-soft);
    box-shadow: var(--shadow-soft);
}

.badge-uni {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: var(--primary-navy);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 3px solid white;
}

/* --- FOOTER --- */
footer {
    background: linear-gradient(180deg, var(--primary-navy) 0%, #132F47 100%);
    color: white;
    padding: 50px 0 20px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: 40px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-warm));
    border-radius: 0 0 4px 4px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-phone-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.footer-phone-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* --- SCROLL ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

/* Scale animation for cards */
.feature-card,
.symptom-item {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.feature-card:hover,
.symptom-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* --- SYMPTOMS SECTION (Espacios Reducidos) --- */
.symptoms-section {
    padding: 50px 0;
    /* Reducido de 80px a 50px */
}

.symptoms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.symptom-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-card);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: default;
    /* Flex properties for centering */
    flex: 1 1 300px;
    max-width: 400px;
    /* Evita que el último se estire demasiado */
}

.symptom-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-warm));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(95, 168, 211, 0.25);
}

.symptom-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-navy);
}

.symptom-content p {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.5;
}

/* --- ELDERLY FOCUS BANNER --- */
.elderly-banner {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1a3a7f 100%);
    color: white;
    padding: 50px;
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.elderly-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.elderly-banner .icon-large {
    font-size: 4rem;
    opacity: 0.9;
}

.elderly-banner h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.elderly-banner p {
    opacity: 0.9;
    font-size: 1.05rem;
}

/* --- WIZARD PROGRESS BAR --- */
.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E0E6ED;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(62, 100, 255, 0.2);
}

.progress-dot.completed {
    background: var(--action-green);
}

/* Wizard fade animation */
.wizard-container .fade-in {
    animation: wizardFadeIn 0.4s ease-out;
}

@keyframes wizardFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- PULSE ANIMATION FOR CTA --- */
.btn-green {
    position: relative;
}

.btn-green::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-btn);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- FLOATING HEADER ON SCROLL --- */
header {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(244, 244, 244, 0.95);
    backdrop-filter: blur(10px);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 40px 20px;
    }

    .elderly-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 20px;
    }

    .symptoms-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-card,
    .pricing-layout,
    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        flex-direction: column;
        gap: 30px;
    }

    .btn-lg {
        width: 100%;
    }
}