/* =========================================
   1. RESET Y BASES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Evita que la pantalla se mueva de lado en móvil */
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
.top-bar {
    background: #1f2f44;
    color: #fff;
    font-size: 14px;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.logo img {
    height: 60px;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    text-decoration: none;
    color: #1f2f44;
    font-weight: bold;
    transition: 0.3s;
}

.menu a:hover {
    color: #0077cc;
}

/* Botón hamburguesa (oculto en PC) */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: #1f2f44;
    cursor: pointer;
}

/* =========================================
   3. HERO (INDEX)
   ========================================= */
.hero {
    min-height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), 
                url("../img/frente-laboratorio.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
}

.hero-card {
    padding: 30px;
    width: 280px;
    color: white;
    text-align: center;
    border-radius: 8px;
}

.hero-card.gray { background-color: rgba(100, 100, 100, 0.9); }
.hero-card.blue { background-color: rgba(0, 74, 135, 0.9); }
.hero-card.red  { background-color: rgba(140, 0, 0, 0.9); }

.hero-card a {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* =========================================
   4. SECCIONES INTERNAS (NOSOTROS/CONTACTO)
   ========================================= */
.pagina {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-pagina {
    text-align: center;
    margin-bottom: 40px;
}

.institucional h2 {
    text-align: center;
    color: #004a87;
    margin-bottom: 30px;
}

.valores {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.valor {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-circle {
    background-color: #004a87;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin-bottom: 20px;
}

/* Nosotros Bloques */
.nosotros-bloque {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.nosotros-bloque .texto { width: 50%; }
.nosotros-bloque img, 
.nosotros-bloque iframe {
    width: 50%;
    height: 320px;
    border-radius: 8px;
    object-fit: cover;
}

.invertido { flex-direction: row-reverse; }

/* Equipo */
.equipo-bioquimicos {
    background: #f5f7fa;
    padding: 60px 5%;
    text-align: center;
}

.equipo-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 240px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid #004a87;
}

/* =========================================
   5. FOOTER
   ========================================= */
footer {
    background: #1f2f44;
    color: #fff;
    text-align: center;
    padding: 30px;
}

/* =========================================
   6. RESPONSIVE (CELULARES)
   ========================================= */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    #menu-toggle {
        display: block; /* Muestra las 3 rayitas */
    }

    .menu {
        display: none; /* Esconde el menú por defecto */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .menu.show {
        display: flex; /* Se muestra al hacer click */
    }

    .menu a {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .hero-cards {
        flex-direction: column;
        align-items: center;
    }

    .hero-card {
        width: 100%;
        max-width: 320px;
    }

    .nosotros-bloque {
        flex-direction: column !important; /* Fuerza el apilado */
    }

    .nosotros-bloque .texto, 
    .nosotros-bloque img, 
    .nosotros-bloque iframe {
        width: 100%;
    }

    .equipo-cards {
        flex-direction: column;
        align-items: center;
    }
}
/* El azul oscuro para los títulos principales */
h1, .pagina h2 {
    color: #004a87; 
    font-weight: bold;
}

/* El "azulcito lindo" (celeste/azul claro) para los subtítulos */
.nosotros-bloque h2, 
.valor h4, 
.bloque h3, 
.contacto-info h3, 
.contacto-form h3 {
    color: #2c7eb5; /* Este es el azul claro que resalta */
    margin-bottom: 15px;
}