:root {
    --azul-dark: #1A365D;
    --naranja: #F38923;
    --fuego: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
    --blanco: #ffffff;
    --gris-fondo: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--azul-dark); background: var(--gris-fondo); overflow-x: hidden; }

/* NAVBAR & LOGO */
.header-floating { position: fixed; top: 20px; width: 100%; display: flex; justify-content: center; z-index: 1000; }
.navbar-island { 
    width: 95%; max-width: 1200px; background: rgba(255,255,255,0.98); 
    padding: 10px 30px; border-radius: 60px; display: flex; 
    justify-content: space-between; align-items: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

#logo-img { height: 75px; width: auto; object-fit: contain; cursor: pointer; transition: transform 0.3s ease; }
#logo-img:hover { transform: scale(1.15); } 

.nav-links { display: flex; list-style: none; gap: 10px; align-items: center; transition: 0.3s ease; }
.nav-links a { 
    text-decoration: none; color: var(--azul-dark); font-weight: 700; 
    font-size: 0.95rem; padding: 10px 18px; border-radius: 25px; transition: all 0.3s ease; 
}
.nav-links a:hover { background: rgba(26,54,93,0.05); color: var(--naranja); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }

.nav-right { display: flex; align-items: center; gap: 15px; }
.menu-toggle { display: none; font-size: 2rem; cursor: pointer; color: var(--azul-dark); user-select: none; }

/* DROPDOWN & MEGA MENÚ CLÍNICAS */
.dropdown { position: relative; }
.dropdown-menu.mega-menu-clinicas { 
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); 
    background: white; border-radius: 20px; display: none; 
    padding: 30px; width: 950px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); margin-top: 10px; 
    grid-template-columns: repeat(4, 1fr); gap: 25px; 
}
.dropdown:hover .mega-menu-clinicas { display: grid; }
.mega-col { cursor: pointer; transition: 0.3s; padding: 15px; border-radius: 15px; }
.mega-col:hover { background: #f8fafc; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.mega-col h4 { color: var(--naranja); font-size: 1.1rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 15px; }
.mega-col ul { list-style: none; padding: 0; }
.mega-col ul li { color: #4A5568; font-size: 0.85rem; margin-bottom: 12px; line-height: 1.4; transition: 0.2s; font-weight: 500; }
.mega-col ul li:hover { color: var(--azul-dark); font-weight: 700; padding-left: 5px; }

/* HERO Y BANNER VISTOSO */
.hero-full { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 20px; }
.hero-img-full { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(0.5); }
.hero-content-front { max-width: 900px; z-index: 2; }

/* EFECTO DE MÁQUINA DE ESCRIBIR DOBLE Y COLORES */
.typewriter-wrapper { 
    display: inline-block; 
    margin-bottom: 15px; 
}
.typewriter-text-white { 
    color: white;
    font-size: 1.4rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.cursor { 
    font-size: 1.4rem; 
    font-weight: 800; 
    animation: blink 1s infinite; 
    margin-left: 5px;
}
.cursor-white { color: white; }
#cursor-2 { color: var(--naranja); }

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

.frase-luz { 
    font-size: clamp(1.2rem, 3vw, 1.6rem); 
    color: var(--naranja); 
    font-weight: 800; 
    margin-bottom: 40px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    min-height: 2.5rem; 
}

.hero-content-front h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 15px; }
.hero-content-front h1 span { color: var(--naranja); }

/* BOTONES GLOBALES */
.btn-auromatch-lg { background: var(--fuego); color: white; border: none; padding: 18px 40px; border-radius: 50px; font-weight: 800; font-size: 1.1rem; cursor: pointer; box-shadow: 0 10px 20px rgba(255,75,43,0.3); transition: 0.3s; }
.btn-auromatch-lg:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(255,75,43,0.5); }
.btn-auromatch-nav { background: var(--fuego); color: white; border: none; padding: 12px 25px; border-radius: 30px; font-weight: 800; cursor: pointer; transition: 0.3s; }
.btn-outline-white { background: transparent; border: 2px solid white; color: white; padding: 16px 40px; border-radius: 50px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.3s; margin-right: 15px; }
.btn-outline-white:hover { background: white; color: var(--azul-dark); }
.btn-outline-dark { background: transparent; border: 2px solid var(--azul-dark); color: var(--azul-dark); padding: 12px 30px; border-radius: 30px; font-weight: 800; cursor: pointer; transition: 0.3s; }
.btn-outline-dark:hover { background: var(--azul-dark); color: white; }
.btn-naranja-lg { background: var(--naranja); color: white; border: none; padding: 18px 40px; border-radius: 50px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.btn-disabled { opacity: 0.5; cursor: not-allowed !important; transform: none !important; box-shadow: none !important; background: #a0aec0; }

/* SECCIONES CONTENIDO */
.content-section { padding: 100px 20px; display: flex; justify-content: center; }
.bg-light { background: #f1f5f9; }
.container-mid { width: 100%; max-width: 1100px; text-align: center; margin: 0 auto; }
.section-title { font-size: 2.5rem; color: var(--azul-dark); margin-bottom: 40px; font-weight: 800; text-align: center; width: 100%; }

/* DISEÑO INNOVADOR "CÓMO FUNCIONA" (SPLIT CARD) */
.como-funciona-innovador {
    display: flex;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    margin: 0 auto 60px auto;
    max-width: 1000px;
    position: relative;
    border-top: 4px solid var(--naranja);
    gap: 30px;
    text-align: left;
    transition: transform 0.3s ease;
}
.como-funciona-innovador:hover {
    transform: translateY(-5px);
}
.cf-col { flex: 1; display: flex; flex-direction: column; }
.cf-icon { font-size: 2.5rem; margin-bottom: 15px; }
.cf-col h4 { color: var(--azul-dark); font-size: 1.3rem; margin-bottom: 15px; font-weight: 800; }
.cf-col p { color: #4A5568; line-height: 1.7; font-size: 1rem; margin-bottom: 15px; }
.cf-col p strong { color: var(--naranja); font-weight: 700; }
.cf-divider { width: 1px; background: linear-gradient(to bottom, transparent, #e2e8f0, transparent); }

@media (max-width: 768px) {
    .como-funciona-innovador { flex-direction: column; padding: 25px; }
    .cf-divider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, #e2e8f0, transparent); margin: 10px 0; }
}

/* NUEVO DISEÑO "COMUNIDADES AURORA" (VISION BOX) */
.comunidades-vision {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    margin: 0 auto 60px auto;
    max-width: 900px;
    text-align: center;
    border-bottom: 4px solid var(--naranja);
    transition: transform 0.3s ease;
}
.comunidades-vision:hover {
    transform: translateY(-5px);
}
.vision-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}
.vision-main {
    font-size: 1.25rem;
    color: var(--azul-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}
.vision-main strong {
    color: var(--naranja);
    font-weight: 800;
}
.vision-divider {
    height: 3px;
    width: 60px;
    background: var(--fuego);
    margin: 0 auto 30px auto;
    border-radius: 5px;
}
.vision-sub {
    font-size: 1.05rem;
    color: #4A5568;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* DATA STATS */
.section-centered { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: 0 auto;}
.stats-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; width: 100%; }
.stat-card { background: white; padding: 40px; border-radius: 25px; flex: 1; min-width: 250px; max-width: 350px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); }
.stat-number { font-size: 3.5rem; color: var(--naranja); font-weight: 800; margin-bottom: 10px; }

/* CLÍNICAS GIGANTES */
.clinica-card-large { padding: 80px 40px; border-radius: 30px; color: white; background-size: cover; background-position: center; text-align: left; margin-bottom: 40px; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.clinica-content h3 { font-size: 3rem; color: var(--naranja); margin-bottom: 10px; }
.subtitle-orange { color: var(--naranja); font-weight: 800; font-size: 1.5rem; margin-bottom: 20px; line-height: 1.3;}
.clinica-content p { font-size: 1.1rem; line-height: 1.6; }

/* CAJA DE CRISTAL Y ANIMACIÓN CARRUSEL */
.glass-box { background: rgba(0,0,0,0.75); padding: 30px; border-radius: 15px; border: 1px solid var(--naranja); width: 100%; max-width: 400px; backdrop-filter: blur(8px); }
.glass-title { color: var(--naranja); margin-bottom: 20px; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
.glass-list { list-style: none; padding: 0; font-size: 1rem; line-height: 1.8; color: white; }
.glass-list-detailed { list-style: none; padding: 0; font-size: 0.95rem; line-height: 1.6; color: white; }
.glass-list-detailed li { margin-bottom: 15px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 10px;}
.glass-list-detailed li:last-child { border-bottom: none; }

.fade-list { display: none; animation: fadeInBox 0.6s ease-in-out; }
.fade-list.active { display: block; }
@keyframes fadeInBox { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.slider-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: 0.3s; }
.slider-dots .dot.active { background: var(--naranja); width: 20px; border-radius: 5px; }

/* COMUNIDADES */
.comunidades-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; text-align: left; }
.comunidad-card { border: 1px solid #e2e8f0; display: flex; flex-direction: column; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.comunidad-img-wrapper { width: 100%; height: 180px; overflow: hidden; }
.comunidad-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.comunidad-card:hover .comunidad-img-wrapper img { transform: scale(1.05); }
.comunidad-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.comunidad-info h3 { margin-bottom: 5px; font-size: 1.3rem; }
.comunidad-info h4 { color: var(--azul-dark); margin-bottom: 15px; font-size: 1rem; }
.comunidad-info p { margin-bottom: 10px; color: #4A5568; line-height: 1.5; font-size: 0.95rem; }
.funsamex-link { color: var(--azul-dark); font-weight: bold; text-decoration: underline; }
.event-box { margin-top: auto; background: #f8fafc; padding: 15px; border-radius: 10px; border: 1px dashed #cbd5e0; }
.btn-actividad { background: transparent; border: 2px solid var(--azul-dark); color: var(--azul-dark); padding: 8px 15px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; margin-top: 10px; width: 100%; }
.btn-actividad:hover { background: var(--azul-dark); color: white; }

/* FAQ */
.faq-accordion { max-width: 800px; margin: 0 auto; text-align: left; }
.card { background: white; padding: 25px; border-radius: 20px; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.faq-item summary { color: var(--naranja); font-weight: 800; font-size: 1.1rem; cursor: pointer; padding-bottom: 10px; outline: none; }
.faq-item p { color: var(--azul-dark); font-weight: 500; border-top: 1px solid #e2e8f0; padding-top: 15px; line-height: 1.6; }

/* FOOTER */
.main-footer { background: var(--azul-dark); color: white; padding: 80px 20px 40px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: left; }
.footer-logo { height: 90px; filter: brightness(0) invert(1); margin-bottom: 20px; object-fit: contain; } 

.footer-col-links h4 { color: var(--naranja); margin-bottom: 20px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col-links a { display: block; color: rgba(255,255,255,0.8); text-decoration: none; margin-bottom: 15px; font-size: 0.95rem; transition: 0.3s; }
.footer-col-links a:hover { color: var(--naranja); }
.btn-join { background: var(--naranja); color: white !important; padding: 12px 25px; border-radius: 8px; display: inline-block; font-weight: bold; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding-top: 30px; text-align: center; font-size: 0.9rem; opacity: 0.7; width: 100%; }

/* OVERLAYS & UI ELEMENTOS COMPARTIDOS */
.full-page-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26,54,93,0.95); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.show-overlay { display: flex !important; }
.hidden { display: none !important; }
.overlay-card { background: white; padding: 40px; border-radius: 30px; width: 100%; max-width: 600px; text-align: center; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); margin: auto; }
.btn-back { background: none; border: none; color: #718096; font-weight: 700; cursor: pointer; padding: 5px 10px; font-size: 1rem; transition: 0.2s; }
.btn-back:hover { color: var(--naranja); }
.btn-close-overlay { position: absolute; top: 20px; right: 25px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #a0aec0; font-weight: bold; }

/* AUROMATCH UI & GRID PARA PERFILAMIENTO */
.quiz-header { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.p-bar-bg { background: #edf2f7; height: 10px; border-radius: 5px; flex: 1; overflow: hidden; }
.p-bar-fill { background: var(--naranja); height: 100%; width: 0%; transition: width 0.4s ease; }
#quiz-title { font-size: 1.6rem; color: var(--azul-dark); margin-bottom: 10px; }
#quiz-subtitle { color: #718096; margin-bottom: 30px; }

.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-top: 20px; }
.test-card { 
    background: white; border: 2px solid #e2e8f0; border-radius: 15px; padding: 25px 15px; 
    text-align: center; cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; gap: 10px; 
}
.test-card:hover { border-color: var(--naranja); box-shadow: 0 5px 15px rgba(243, 137, 35, 0.15); transform: translateY(-3px); }
.test-card .icon { font-size: 2.5rem; }
.test-card .title { font-size: 0.95rem; font-weight: 700; color: var(--azul-dark); line-height: 1.3; }

/* BOTONES DE RESPUESTA EN EL TEST */
.options-container { display: flex; flex-direction: column; gap: 12px; }
.opt-btn-match { 
    background: #ffffff; 
    border: 2px solid #e2e8f0; 
    color: var(--azul-dark); 
    padding: 18px 25px; 
    border-radius: 15px; 
    text-align: left; 
    font-size: 1.05rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    width: 100%; 
    font-family: 'Inter', sans-serif; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}
.opt-btn-match:hover { 
    border-color: var(--naranja); 
    background: #fffaf0; 
    transform: translateX(5px); 
    box-shadow: 0 6px 12px rgba(243, 137, 35, 0.15); 
}

/* CALENDARIO Y PAGO */
.success-icon { font-size: 3rem; margin-bottom: 15px; }
.doctor-profile { display: flex; align-items: center; gap: 20px; background: #f8fafc; padding: 20px; border-radius: 20px; border: 1px solid #e2e8f0; margin-bottom: 25px; }
.doctor-profile img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.calendar-month-view { border: 1px solid #e2e8f0; border-radius: 15px; padding: 15px; background: #f8fafc; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calendar-header button { background: white; border: 1px solid #cbd5e0; border-radius: 5px; padding: 5px 10px; cursor: pointer; }
.calendar-days-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: bold; color: #a0aec0; font-size: 0.85rem; margin-bottom: 10px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cal-day { padding: 10px 0; border-radius: 8px; cursor: pointer; font-size: 0.9rem; color: var(--azul-dark); transition: 0.2s; }
.cal-day:hover { background: #e2e8f0; }
.cal-day.active { background: var(--naranja); color: white; font-weight: bold; }
.cal-day.empty { visibility: hidden; }

.time-slots { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.time-slot { background: white; border: 2px solid #cbd5e0; padding: 10px 15px; border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--azul-dark); transition: 0.2s; font-size: 0.9rem;}
.time-slot:hover, .time-slot.selected { border-color: var(--naranja); background: var(--naranja); color: white; }

/* MENÚ MÓVIL FUNCIONAL */
@media (max-width: 900px) {
    .nav-links { 
        display: none; flex-direction: column; position: absolute; 
        top: 85px; left: 5%; width: 90%; background: white; 
        padding: 30px 20px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); 
        z-index: 1001; 
    }
    .nav-links.show { display: flex; }
    .nav-links a { text-align: center; font-size: 1.1rem; padding: 15px; width: 100%; border-bottom: 1px solid #f1f5f9; }
    
    .dropdown-menu.mega-menu-clinicas {
        position: relative; width: 100%; left: 0; transform: none; display: none;
        grid-template-columns: 1fr; gap: 10px; padding: 10px; box-shadow: none;
    }
    
    .menu-toggle { display: block; }
    .btn-auromatch-nav { display: none; }
}