/* css/organigrama.css */

/* ========== CONTENEDOR DE FILTROS ========== */
.OrganigramaContainer{
    background-color: var(--color-blanco);
    padding: 5em;
}
.FiltrosWrapper {
    background-color: #F2F2F2; /* Gris super claro, sin tonos verdes */
    padding: 25px 40px;
    margin: 0 auto 40px auto;
    /* max-width: 1400px; */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.FiltrosHeader {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.TituloFiltro {
    color: #333333;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.IconoToggle {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
}

/* ========== CABECERAS COLAPSABLES (ÁREA Y EQUIPO) ========== */
.HeaderColapsable {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}

.HeaderColapsable:hover {
    background-color: #f8f9fa;
}

/* Título de Área (Nivel 1) */
.HeaderArea {
    border-left: 8px solid #174235; /* Verde corporativo de META */
}

.TituloArea {
    font-size: 1.8rem;
    color: #1a2b3c;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
}

/* Título de Equipo (Nivel 2) */
.HeaderEquipo {
    border-left: 6px solid #d6b83f; /* Dorado corporativo */
    margin-left: 20px; /* Indentado visual */
    padding: 12px 20px;
}

.TituloEquipo {
    font-size: 1.4rem;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.ContenidoColapsable {
    margin-bottom: 25px;
}

.BloqueEquipo .ContenidoColapsable {
    margin-left: 30px; /* Los equipos se indentan debajo de las áreas */
}

/* El bloque Wrapper rompe la línea por cada nivel jerárquico */
.NivelJerarquicoWrapper {
    width: 100%;
    margin-bottom: 30px; 
}

/* ========== GRID Y TARJETAS BLANCAS ========== */
.GridOrganigrama {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.CardEmpleado {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF; /* Cajas siempre blancas para máxima legibilidad */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.CardEmpleado:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.CardImagenArea {
    height: 250px; /* Reducido un poco para equilibrar diseño */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F8F9FA; /* Gris muy suave para hacer resaltar el círculo */
    border-bottom: 1px solid #eee;
}

/* ========== CÍRCULOS Y BORDES POR PUESTO ========== */
.CirculoIniciales {
    width: 180px;
    height: 180px;
    background-color: #ffffff;
    color: #1c3b57;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Los bordes solicitados para distinguir jerarquías */
.borde-director { border: 6px solid #000000; }        
.borde-gerente { border: 6px solid #a0a0a0; }         
.borde-lider { border: 6px solid #0056b3; }           
.borde-eje-a { border: 6px solid #28a745; }           
.borde-eje-b { border: 6px solid #fd7e14; }           
.borde-general { border: 6px solid #1c3b57; }         

/* ========== TIPOGRAFÍA TARJETAS ========== */
.InfoEmpleado {
    padding: 20px;
    text-align: left;
    background-color: #FFFFFF;
}

.NombreEmpleado {
    font-size: 1.4rem;
    color: #1a2b3c;
    margin: 0 0 10px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.PuestoEmpleado {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.TextoEmpleado {
    font-size: 0.95rem;
    color: #666;
    margin: 5px 0;
}

.LinkEmpleado {
    display: block;
    font-size: 0.95rem;
    color: #2b6cb0;
    text-decoration: none;
    margin: 5px 0;
    word-break: break-all;
    font-weight: 500;
}

.LinkEmpleado:hover {
    text-decoration: underline;
    color: #1a4971;
}

.LinkTeams {
    color: #5558af; 
    font-weight: 600;
    margin-top: 10px;
}

.CajaBlancaVacia {
    background-color: #FFFFFF;
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ServiciosTitulo_Org {
    display: block;
    /* margin-left: auto; */
    /* margin-right: auto; */
    text-align: center;
    display: inline-block;
    /* background: #ffffff; */
    color: #000000; 
    /* border-radius: 18px; */
    padding: 8px 38px;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); */
    letter-spacing: 1px;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 32px auto;
}
.EquipoEmpleado{
    font-size: 0.9rem; 
    color: #718096; 
    margin-top: -5px; 
    margin-bottom: 8px;
}