/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&family=Poppins:wght@600;700&display=swap');

/* variables and resets */
:root {
    /* Colores oficiales */
    --lila-principal: #C8B8CF;
    /* Detalles, iconos, fondos sutiles */
    --rosa-acento: #D08EA8;
    /* Acentos, bullets */
    --gris-oscuro: #2F2F2F;
    /* Texto principal, títulos */
    --gris-medio: #6A6A6A;
    /* Subtítulos, texto secundario */
    --fondo-principal: #FFFFFF;
    --fondo-alternativo: #F6F6F8;
    /* Separación visual elegante */

    /* Botones */
    --boton-principal: #9C7AB8;
    --boton-hover: #8A66A8;
    --boton-texto: #FFFFFF;

    /* Extra */
    --linea-separador: #E8E8ED;
    --whatsapp: #25D366;
    --whatsapp-hover: #20BA5A;

    /* Layout */
    --max-width: 1100px;
    --gap-desktop: 80px;
    --gap-mobile: 60px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--gris-oscuro);
    background-color: var(--fondo-principal);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6,
.t-poppins {
    font-family: 'Poppins', sans-serif;
    color: var(--gris-oscuro);
}

h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.subtitulo-hero {
    display: block;
    font-size: 22px;
    color: var(--gris-medio);
    margin-bottom: 24px;
}

.precio {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--boton-principal);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
}

.titulo-seccion {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
}

p {
    font-size: 18px;
    /* 16-18px requested, 18px is great for legibility on clinical sites */
    color: var(--gris-medio);
    margin-bottom: 24px;
}

/* Layout Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.hero {
    padding-top: 60px;
}

.bg-blanco {
    background-color: var(--fondo-principal);
}

.bg-gris {
    background-color: var(--fondo-alternativo);
}

/* Base Components */
.btn-principal {
    display: inline-block;
    background-color: var(--boton-principal);
    color: var(--boton-texto);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-principal:hover {
    background-color: var(--boton-hover);
}

/* Resets for list */
ul {
    list-style: none;
}

/* Header */
.navbar {
    padding: 12px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gris-oscuro);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--boton-principal);
}

.nav-links .nav-btn {
    background-color: var(--fondo-alternativo);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.nav-links .nav-btn:hover {
    background-color: var(--lila-principal);
    color: var(--fondo-principal);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.logo {
    text-decoration: none;
}

.logo-img {
    width: 110px;
    height: auto;
    display: block;
    transition: width 0.3s ease;
}

/* Hero Section */
.hero {
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-left {
    flex: 0 0 60%;
    padding-right: 20px;
}

.hero-right {
    flex: 0 0 calc(40% - 40px);
}

.hero-precio-box {
    margin-bottom: 24px;
}

.supervision-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.icon-check {
    color: var(--boton-principal);
    font-weight: 700;
}

.supervision-text {
    color: var(--gris-oscuro);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.foto-mj-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--fondo-alternativo);
    display: flex;
    justify-content: center;
}

.foto-mj-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Floating WhatsApp */
.btn-flotante-wsp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--whatsapp);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-flotante-wsp:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.05);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-texto {
    max-width: 800px;
}

/* Cómo funciona */
.grid-pasos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.paso-card {
    background: var(--fondo-principal);
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.paso-numero {
    width: 48px;
    height: 48px;
    background-color: var(--lila-principal);
    color: var(--fondo-principal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin: 0 auto 24px;
}

.paso-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.paso-card p {
    font-size: 16px;
    margin-bottom: 0;
}

/* Motivos */
.motivos-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.motivos-img {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
}

.motivos-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.motivos-lista {
    flex: 1;
}

.lista-simple {
    padding: 0;
    text-align: left;
}

.lista-simple li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    /* Per spec: 8px vertical space */
    font-size: 18px;
    color: var(--gris-oscuro);
}

.lista-simple li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--rosa-acento);
}

/* Respaldo */
.respaldo-header {
    margin-bottom: 48px;
}

.respaldo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.respaldo-card {
    background-color: var(--fondo-principal);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--linea-separador);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.respaldo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.respaldo-card.destacada {
    border: 2px solid var(--lila-principal);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(200, 184, 207, 0.3);
    position: relative;
    z-index: 1;
}

.respaldo-card.destacada:hover {
    transform: scale(1.05) translateY(-8px);
}

.respaldo-icon-wrapper {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(246, 246, 248, 1) 0%, rgba(250, 250, 252, 1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--boton-principal);
    box-shadow: 0 4px 12px rgba(156, 122, 184, 0.05), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(156, 122, 184, 0.08);
}

.respaldo-icon-wrapper svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.respaldo-card:hover .respaldo-icon-wrapper {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(156, 122, 184, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.respaldo-card.destacada:hover .respaldo-icon-wrapper {
    box-shadow: 0 12px 28px rgba(156, 122, 184, 0.35), inset 0 2px 6px rgba(255, 255, 255, 0.5);
}

.respaldo-card:hover .respaldo-icon-wrapper svg {
    transform: scale(1.08);
}

.respaldo-card.destacada .respaldo-icon-wrapper {
    background: linear-gradient(135deg, rgba(175, 142, 196, 1) 0%, rgba(156, 122, 184, 1) 100%);
    color: var(--fondo-principal);
    border: none;
    box-shadow: 0 6px 16px rgba(156, 122, 184, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.25);
}

.respaldo-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--gris-oscuro);
}

.respaldo-card p {
    font-size: 16px;
    margin-bottom: 0;
}

/* Información */
.info-card {
    background-color: var(--fondo-alternativo);
    padding: 64px 32px;
    border-radius: 16px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--linea-separador);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-img {
    width: 120px;
    height: auto;
    display: block;
}

.footer-text {
    font-size: 14px;
    margin-bottom: 0;
}

/* Tablet Adjustments */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 32px;
    }

    .hero-left {
        flex: 1 1 auto;
        padding-right: 0;
        text-align: center;
    }

    .hero-right {
        flex: 1 1 auto;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-precio-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .grid-pasos {
        grid-template-columns: repeat(2, 1fr);
    }

    .respaldo-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .respaldo-card.destacada {
        transform: none;
    }

    .respaldo-card.destacada:hover {
        transform: translateY(-8px);
    }

    .motivos-wrapper {
        flex-direction: column;
    }

    .info-card {
        padding: 40px 24px;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 34px;
    }

    .titulo-seccion {
        font-size: 24px;
    }

    section {
        padding: var(--gap-mobile) 0;
    }

    p {
        font-size: 16px;
    }

    .grid-pasos, .respaldo-grid {
        grid-template-columns: 1fr;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .navbar-container {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--fondo-principal);
        flex-direction: column;
        padding: 24px;
        gap: 24px;
        box-shadow: 0 10px 15px -10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid var(--linea-separador);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-btn {
        text-align: center;
    }
}