/* ══════════════════════════════════════════
   Laboratorio Pasteur — Estilos compartidos
   ══════════════════════════════════════════ */

:root {
    --azul: #003f88;
    --azul-claro: #0056b8;
    --azul-suave: #e8f0fb;
    --rojo: #c0392b;
    --blanco: #ffffff;
    --gris: #f5f7fa;
    --gris-texto: #555;
    --sombra: 0 4px 20px rgba(0,63,136,0.12);
}

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

/* ── FOCUS STATES (navegación por teclado) ── */
:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--azul-claro);
    border-radius: 3px;
}
.wa-float:focus-visible {
    outline-color: #25d366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.5);
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ── TOPBAR ── */
.topbar {
    background: var(--azul);
    color: white;
    font-size: 0.82em;
    padding: 7px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.topbar a { color: white; text-decoration: none; }
.topbar span { opacity: 0.9; }
.topbar-badge {
    background: #c0392b;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* ── HEADER / NAV ── */
header {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-section img { height: 64px; width: auto; }
.clinic-name h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.15em;
    font-weight: 800;
    color: var(--azul);
    line-height: 1.2;
}
.clinic-name p { font-size: 0.75em; color: #888; }
.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.activo { color: var(--azul); }
.nav-links a.activo {
    border-bottom: 2px solid var(--azul);
    padding-bottom: 2px;
}
.btn-whatsapp-nav {
    background: #25d366;
    color: white !important;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.btn-whatsapp-nav:hover { background: #1ebe5d; }
.btn-whatsapp-nav i { font-size: 1.5em; line-height: 1; }
.btn-wa-grande i { font-size: 1.6em; line-height: 1; }

/* ── SECCIÓN TITLE / SUBTITLE ── */
.section-title {
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-size: 2em;
    font-weight: 800;
    color: var(--azul);
    margin-bottom: 8px;
}
.section-subtitle {
    text-align: center;
    color: var(--gris-texto);
    margin-bottom: 40px;
    font-size: 1em;
}

/* ── STATS BAR ── */
.stats-bar {
    background: var(--azul);
    padding: 40px 20px;
}
.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item { color: white; }
.stat-num {
    font-family: 'Raleway', sans-serif;
    font-size: 2.6em;
    font-weight: 800;
    display: block;
    line-height: 1;
}
.stat-label { font-size: 0.85em; opacity: 0.85; margin-top: 4px; }

/* ── FOOTER ── */
footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.75);
    padding: 40px 20px 24px;
}
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 70px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { font-size: 0.85em; line-height: 1.7; }
.footer-col h5 {
    color: white;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.85em;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
    max-width: 1100px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    opacity: 0.55;
    flex-wrap: wrap;
    gap: 8px;
}
/* ── CRÉDITO: banda "Desarrollado por" (oculta hasta nuevo aviso) ── */
.dev-p3-banda {
    max-width: 1100px;
    margin: 14px auto 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    display: none; /* oculto por defecto — se muestra solo con ?credito=1 en la URL (ver main.js), o borra esta línea para mostrarlo siempre */
    justify-content: center;
    align-items: center;
    gap: 14px;
    font-size: 0.7em;
    color: rgba(255,255,255,0.18);
}
.dev-p3-banda.mostrar { display: flex; }
.dev-p3-banda i { color: rgba(255,255,255,0.1); }
.dev-p3-banda a { color: rgba(255,255,255,0.18); text-decoration: none; font-weight: 600; letter-spacing: 0.3px; }
.dev-p3-banda a:hover, .dev-p3-banda a:active { color: rgba(255,255,255,0.28); }
.dev-p3-dot { color: rgba(255,255,255,0.1); }
@media (max-width: 480px) {
    .dev-p3-banda { flex-direction: column; gap: 4px; }
}
/* ── BOTÓN FLOTANTE WA ── */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    text-decoration: none;
    z-index: 999;
    transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ── HAMBURGER MOBILE ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--azul);
    transition: all 0.3s;
}

/* ── PAGE HERO (páginas internas) ── */
.page-hero {
    background: linear-gradient(135deg, var(--azul) 0%, #0056b8 60%, #1a7fd4 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.page-hero h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.page-hero p {
    font-size: 1em;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.page-hero .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    .nav-links, .btn-whatsapp-nav { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        gap: 12px;
    }
    .topbar { display: none; }
    .page-hero h1 { font-size: 1.7em; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
}
