/* ===== APARIENCIA MAESTRA - AUDITORÍA FAMILIAR SISTÉMICA ===== */
:root {
    --azul-oscuro: #0a192f;
    --naranja: #ff7e5f;
    --verde-brillante: #64ffda;
    --blanco: #ffffff;
    --gris-claro: #f0f8ff;
    --sombra: rgba(10, 25, 47, 0.1);
    --transicion: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gris-claro);
    color: var(--azul-oscuro);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== FONDO CINEMATOGRÁFICO (el que se ve actualmente) ===== */
.fondo-montana-cinematografico {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.imagen-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a192f; /* Azul oscuro, mismo color que el fondo de la página */
    background-image: 
        linear-gradient(
            to bottom,
            rgba(10, 15, 25, 0.6) 0%,
            rgba(10, 15, 25, 0.4) 50%,
            rgba(10, 15, 25, 0.2) 100%
        ),
        url('../assets/images/fondo-montana.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    animation: efecto-respiracion 25s ease-in-out infinite alternate;
}

@keyframes efecto-respiracion {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* ===== ANIMACIONES (desde animaciones.css) ===== */
@keyframes aparecer {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.animacion-aparecer {
    animation: aparecer 1s ease-out forwards;
}

.animacion-retraso-1 { animation-delay: 0.3s; }
.animacion-retraso-2 { animation-delay: 0.6s; }

/* Imagen principal flotante (desde animaciones.css) */
.imagen-principal {
    position: absolute;
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.8;
    animation: float 10s ease-in-out infinite, pulse 4s ease-in-out infinite;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(100, 255, 218, 0.5),
        0 0 100px rgba(100, 255, 218, 0.3),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
}

.imagen-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1);
}

/* Partículas flotantes (desde animaciones.css) */
.particulas-flotantes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particula {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.particula:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: rgba(100, 255, 218, 0.15);
}

.particula:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: 1s;
    background: rgba(255, 107, 107, 0.15);
}

.particula:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 2s;
    background: rgba(100, 255, 218, 0.15);
}

.particula:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 70%;
    animation-delay: 3s;
    background: rgba(255, 107, 107, 0.15);
}

.particula:nth-child(5) {
    width: 70px;
    height: 70px;
    top: 70%;
    left: 40%;
    animation-delay: 4s;
    background: rgba(100, 255, 218, 0.15);
}

/* Efecto de brillo (desde animaciones.css) */
.brillo {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
    filter: blur(20px);
}

/* ===== NAVEGACIÓN (desde estilo-global.css) ===== */
.navegacion-principal {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, #152642 100%);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--sombra);
}

.contenedor-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blanco);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--verde-brillante);
}

.menu-principal {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.menu-principal a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transicion);
    position: relative;
}

.menu-principal a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.menu-principal a.active {
    background: var(--naranja);
    color: var(--blanco);
}

.menu-principal a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--verde-brillante);
    transition: var(--transicion);
}

.menu-principal a:hover::after {
    width: 80%;
}

.selector-idioma select {
    padding: 0.5rem;
    border-radius: 4px;
    background: var(--azul-oscuro);
    color: white;
    border: 1px solid var(--verde-brillante);
}

/* ===== HERO (estructura, sin fondo duplicado) ===== */
.hero-contenedor {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    z-index: 1;
}

.contenido-hero {
    max-width: 1200px;
    text-align: center;
    color: var(--blanco);
    z-index: 2;
    position: relative;
}

.texto-introductorio {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.texto-introductorio span {
    color: var(--verde-brillante);
    position: relative;
    display: inline-block;
}

.texto-introductorio span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--naranja);
    transform: scaleX(0);
    transform-origin: right;
    animation: expandir 2s ease-in-out infinite;
}

@keyframes expandir {
    0%, 100% { transform: scaleX(0); transform-origin: right; }
    50% { transform: scaleX(1); transform-origin: right; }
    51% { transform-origin: left; }
    100% { transform: scaleX(0); transform-origin: left; }
}

.descripcion-hero {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.botones-hero {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BOTONES (desde estilo-global.css) ===== */
.btn-principal {
    background: linear-gradient(135deg, var(--naranja) 0%, #ff9a8b 100%);
    color: var(--blanco);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transicion);
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-principal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 126, 95, 0.5);
}

.btn-principal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-principal:hover::after {
    width: 300px;
    height: 300px;
}

.btn-secundario {
    background: transparent;
    color: var(--blanco);
    border: 2px solid var(--verde-brillante);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secundario:hover {
    background: var(--verde-brillante);
    color: var(--azul-oscuro);
    transform: translateY(-3px);
}

/* ===== SECCIÓN ESTADÍSTICAS ===== */
.seccion-estadisticas {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--azul-oscuro), #152642);
    position: relative;
    z-index: 10;
}

.contenedor-estadisticas {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-estadisticas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.estadistica-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transicion);
    cursor: pointer;
}

.estadistica-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* ===== SECCIÓN ESTUDIOS (desde estilo-global.css) ===== */
.seccion-estudios {
    padding: 5rem 2rem;
    background: var(--blanco);
    position: relative;
    z-index: 10;
}

.contenedor-estudios {
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-seccion {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--azul-oscuro);
    position: relative;
}

.titulo-seccion::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--naranja);
    border-radius: 2px;
}

.grid-estudios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.paquete-item {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--sombra);
    transition: var(--transicion);
    border: 2px solid transparent;
}

.paquete-item:hover {
    transform: translateY(-10px);
    border-color: var(--verde-brillante);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
}

.contenido-paquete {
    padding: 2rem;
}

.nombre-estudio {
    font-size: 1.5rem;
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
}

.descripcion-estudio {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.precio-estudio {
    font-size: 2rem;
    color: var(--naranja);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ===== FOOTER — compacto (antes padding 4rem / títulos 1.5rem; alineado con portada integral) ===== */
.footer {
    background: var(--azul-oscuro);
    color: var(--blanco);
    padding: 0.75rem 1rem 0.35rem;
    margin-top: 0;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(100, 255, 218, 0.12);
}

.contenedor-footer {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto auto;
    gap: 0.65rem 1.25rem;
    align-items: start;
}

.info-footer h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 0.2rem;
    color: var(--verde-brillante);
}

.info-footer p {
    opacity: 0.88;
    margin: 0 0 0.3rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

.info-footer p:last-child {
    margin-bottom: 0;
}

.enlaces-footer {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enlaces-footer li {
    margin-bottom: 0.15rem;
    break-inside: avoid;
}

.enlaces-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.72rem;
    line-height: 1.3;
    opacity: 1;
    transition: var(--transicion);
}

.enlaces-footer a:hover {
    color: var(--verde-brillante);
    padding-left: 0;
}

@media (min-width: 720px) {
    .contenedor-footer .info-footer:nth-child(3) .enlaces-footer {
        columns: 2;
        column-gap: 1rem;
        max-width: 22rem;
    }
}

@media (max-width: 640px) {
    .contenedor-footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.55rem;
        max-width: none;
    }
    .contenedor-footer .info-footer:nth-child(3) .enlaces-footer {
        columns: 1;
        max-width: none;
    }
    .footer {
        padding: 0.65rem 0.85rem 0.3rem;
    }
}

.copyright {
    text-align: center;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8899b5;
    font-size: 0.65rem;
    opacity: 1;
}

.copyright p {
    margin: 0;
}

/* ===== MEDIA QUERIES (desde estilo-global.css e index.html) ===== */
@media (max-width: 768px) {
    .texto-introductorio {
        font-size: 2.2rem;
    }
    
    .descripcion-hero {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .botones-hero {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-principal, .btn-secundario {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .menu-principal {
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .contenedor-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .grid-estudios {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .texto-introductorio {
        font-size: 1.8rem;
    }
    
    .titulo-seccion {
        font-size: 2rem;
    }
    
    .hero-contenedor {
        padding: 5rem 1rem 1rem;
    }
}
/* ===== NUEVA SECCIÓN: Diagnósticos Especializados (grid flexible) ===== */
.seccion-paquetes {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--azul-oscuro, #0a192f), #0f2342);
    position: relative;
    z-index: 20;
}

.titulo-paquetes {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #a8edea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitulo-paquetes {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.grid-paquetes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.paquete-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.paquete-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(255, 126, 95, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.paquete-icono {
    font-size: 2.5rem;
    color: var(--naranja, #ff7e5f);
    margin-bottom: 20px;
    display: inline-block;
}

.paquete-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.paquete-descripcion {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.paquete-info {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.paquete-precio {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--verde-brillante, #afffdf);
}

.paquete-tiempo {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    pointer-events: none;
}

.paquete-item:hover .video-overlay {
    opacity: 1;
    pointer-events: auto;
}

.boton-video {
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.boton-video:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .titulo-paquetes {
        font-size: 2.2rem;
    }
    .subtitulo-paquetes {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .grid-paquetes {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .paquete-item {
        padding: 20px;
    }
    .paquete-titulo {
        font-size: 1.3rem;
    }
    .paquete-precio {
        font-size: 1.5rem;
    }
}

/* ===== Pie mínimo (embudo de compra y páginas que no necesitan pie completo) ===== */
.afs-pie-minimo {
    text-align: center;
    padding: 1rem 1rem 1.35rem;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(176, 196, 222, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.afs-pie-minimo a {
    color: #7dce8a;
    text-decoration: none;
    margin: 0 0.4rem;
    white-space: nowrap;
}
.afs-pie-minimo a:hover {
    text-decoration: underline;
    color: #9ee6b3;
}