/* ============================================================
   NUESTRO-EQUIPO.CSS
   Estructura:
   1. Hero y breadcrumb
   2. Introducción y título
   3. Organigrama
   4. Secciones por área
   5. Carrusel automático de miembros
   6. Tarjeta de miembro
   7. Responsive
============================================================ */


/* ============================================================
   1. HERO Y BREADCRUMB
============================================================ */
.mv-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    overflow: hidden;
}

.mv-hero-imagen {
    width: 100%;
    height: 100%;
}

.mv-hero-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mv-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,18,38,0.4), rgba(0,18,38,0.75));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 40px 8%;
}

.mv-hero-overlay h2 {
    font-size: 3.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    line-height: 1;
}

.mv-hero-overlay h2 span { color: #daa520; }

.mv-hero-overlay p {
    font-size: 1.1rem;
    color: #dddddd;
    margin-top: 10px;
}

.breadcrumb {
    background-color: #f5f5f5;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-container a {
    color: #001f3f;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.breadcrumb-container a:hover { color: #ff4136; }
.breadcrumb-container i { color: #aaaaaa; font-size: 0.7rem; }
.breadcrumb-container span { color: #888888; }


/* ============================================================
   2. INTRODUCCIÓN Y TÍTULO
============================================================ */
.equipo-main {
    padding: 70px 20px;
    background-color: #ffffff;
}

.equipo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.equipo-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.equipo-titulo {
    font-size: 2.8rem;
    color: #001226;
    font-weight: 900;
    margin-bottom: 10px;
}

.equipo-titulo span { color: #ff4136; }

.equipo-linea-deco {
    width: 80px;
    height: 4px;
    background-color: #daa520;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.equipo-intro p {
    color: #555555;
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================================
   3. ORGANIGRAMA
============================================================ */
.organigrama-seccion {
    margin-bottom: 70px;
    margin-top: 60px;
}

.area-titulo {
    font-size: 1.6rem;
    color: #001226;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    display: inline-block;
    display: flex;
    justify-content: center;
    border-bottom: none;
    position: relative;
}

/* Línea dorada bajo el título */
.area-titulo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #daa520;
    border-radius: 2px;
}

.organigrama-imagen-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9edf5;
}

.organigrama-imagen-link {
    display: block;
    text-decoration: none;
}

.organigrama-imagen {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.organigrama-imagen:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

/* Responsive */
@media (max-width: 768px) {
    .organigrama-imagen-box {
        padding: 14px;
        border-radius: 14px;
    }

    .area-titulo {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .organigrama-seccion {
        margin-top: 45px;
        margin-bottom: 50px;
    }

    .organigrama-imagen-box {
        padding: 10px;
        border-radius: 10px;
    }

    .area-titulo {
        font-size: 1.2rem;
    }
}
/* ============================================================
   4. SECCIONES POR ÁREA
============================================================ */
.area-seccion {
    margin-bottom: 70px;
}


/* ============================================================
   5. CARRUSEL AUTOMÁTICO DE MIEMBROS
   - Se mueve solo de izquierda a derecha
   - Se detiene al pasar el mouse (hover)
============================================================ */

/* Contenedor con overflow hidden para ocultar lo que sale */
.equipo-carrusel-wrapper {
    overflow: hidden;
    position: relative;
    margin-top: 30px;
    /* Sombras laterales para efecto de fade */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

/* Track que se mueve — contiene todas las cards */
.equipo-track {
    display: flex;
    gap: 25px;
    width: max-content;        /* Se expande todo lo necesario */
    animation: scroll-equipo 25s linear infinite;
    padding: 15px 5px;
}

/* Al pasar el mouse se detiene la animación */
.equipo-carrusel-wrapper:hover .equipo-track {
    animation-play-state: paused;
}

/* Animación de desplazamiento horizontal */
@keyframes scroll-equipo {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
    /* -50% porque duplicamos las cards en JS */
}


/* ============================================================
   6. TARJETA DE MIEMBRO
============================================================ */
.miembro-card {
    background-color: #001226;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    width: 200px;
    flex-shrink: 0;           /* No se encoge */
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.miembro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Avatar circular con ícono */
.miembro-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #001f3f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    border: 3px solid #daa520;
}

/* Variantes de color del avatar por área */
.miembro-avatar-rojo  { border-color: #ff4136; background-color: #3a0a08; }
.miembro-avatar-dorado { border-color: #daa520; background-color: #2a1f00; }
.miembro-avatar-verde  { border-color: #27ae60; background-color: #0a2a14; }

.miembro-avatar i {
    font-size: 2.5rem;
    color: #daa520;
}

.miembro-avatar-rojo i  { color: #ff4136; }
.miembro-avatar-dorado i { color: #daa520; }
.miembro-avatar-verde i  { color: #27ae60; }

/* Nombre del miembro */
.miembro-card h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Cargo */
.miembro-cargo {
    display: block;
    color: #daa520;
    font-size: 0.78rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.miembro-avatar-rojo  ~ .miembro-cargo { color: #ff4136; }

/* Descripción breve */
.miembro-desc {
    color: #aaaaaa;
    font-size: 0.82rem;
    line-height: 1.5;
    font-style: italic;
}


/* ============================================================
   7. RESPONSIVE
============================================================ */
@media (max-width: 768px) {

    .mv-hero { height: 40vh; }
    .mv-hero-overlay h2 { font-size: 2.2rem; }

    .equipo-titulo { font-size: 2rem; }

    .miembro-card { width: 170px; }

    .org-box { min-width: 100px; font-size: 0.78rem; }
    .org-box-principal { min-width: 160px; }
}

@media (max-width: 480px) {

    .mv-hero-overlay h2 { font-size: 1.8rem; }
    .equipo-titulo { font-size: 1.6rem; }
    .miembro-card { width: 150px; padding: 18px 15px; }
}
