/* ========================================
   RECURSOS HUMANOS - GAMC
   Estilo institucional profesional
   ======================================== */

:root {
    --rrhh-primary: #1a365d;
    --rrhh-secondary: #2c5282;
    --rrhh-accent: #c53030;
    --rrhh-accent-gold: #d69e2e;
    --rrhh-accent-light: #ed8936;
    --rrhh-dark: #1a202c;
    --rrhh-gray-900: #111827;
    --rrhh-gray-700: #374151;
    --rrhh-gray-500: #6b7280;
    --rrhh-gray-300: #d1d5db;
    --rrhh-gray-100: #f3f4f6;
    --rrhh-white: #ffffff;
    --rrhh-bg-light: #f9fafb;
    --rrhh-bg-pattern: #f0f4f8;
    --rrhh-shadow: 0 10px 40px rgba(26, 54, 93, 0.1);
    --rrhh-shadow-hover: 0 20px 60px rgba(26, 54, 93, 0.15);
    --rrhh-radius: 12px;
    --rrhh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BANNER PRINCIPAL - Estilo Premium
   ======================================== */
.rrhh-banner {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rrhh-primary) 0%, var(--rrhh-secondary) 100%);
}

.rrhh-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(214, 158, 46, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(237, 137, 54, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.rrhh-banner__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.rrhh-banner__image.loaded {
    opacity: 0.4;
}

.rrhh-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(26, 54, 93, 0.7) 0%, 
        rgba(26, 54, 93, 0.5) 40%,
        rgba(26, 54, 93, 0.7) 100%
    );
    z-index: 2;
}

.rrhh-banner__content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 20px;
    animation: rrhhFadeInUp 1s ease;
    max-width: 900px;
}

.rrhh-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rrhh-accent-gold);
}

.rrhh-banner__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--rrhh-accent-gold);
    border-radius: 50%;
    animation: rrhhPulse 2s infinite;
}

@keyframes rrhhPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.rrhh-banner__title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.rrhh-banner__title span {
    display: block;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rrhh-accent-gold);
    margin-bottom: 8px;
}

.rrhh-banner__subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.rrhh-banner__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.rrhh-banner__scroll i {
    animation: rrhhBounce 2s infinite;
}

@keyframes rrhhBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

@keyframes rrhhFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */
.rrhh-section {
    padding: 30px 0;
    position: relative;
}

.rrhh-section__header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.rrhh-section__header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--rrhh-primary), var(--rrhh-accent-gold));
    margin: 12px auto 0;
    border-radius: 2px;
}

.rrhh-section__title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rrhh-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.rrhh-section__subtitle {
    font-size: 1.5rem;
    color: var(--rrhh-gray-500);
    font-weight: 400;
}

.rrhh-container {
    max-width: 1200px;
    margin: 0 auto;
 
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ========================================
   PRESENTACIÓN - Diseño elegante
   ======================================== */
.rrhh-presentacion {
    background: var(--rrhh-white);
    position: relative;
    overflow: hidden;
    padding-top: 30px;
    padding-bottom: 30px;
}

.rrhh-presentacion::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--rrhh-bg-pattern) 100%);
    opacity: 0.5;
}

.rrhh-presentacion__content {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.rrhh-presentacion__icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--rrhh-primary), var(--rrhh-secondary));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.25);
    transform: rotate(-5deg);
    transition: var(--rrhh-transition);
}

.rrhh-presentacion__icon:hover {
    transform: rotate(0deg) scale(1.05);
}

.rrhh-presentacion__icon i {
    font-size: 2.5rem;
    color: white;
}

.rrhh-presentacion__text h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rrhh-dark);
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.rrhh-presentacion__text p {
    font-size: 1.5rem;
    line-height: 1.85;
    color: var(--rrhh-gray-700);
    margin-bottom: 18px;
}

.rrhh-presentacion__text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--rrhh-accent-gold);
    border-radius: 2px;
}

.rrhh-presentacion__text p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--rrhh-gray-700);
    margin-bottom: 18px;
}

/* ========================================
   DATOS GENERALES - Cards sofisticados
   ======================================== */
.rrhh-datos {
    background: var(--rrhh-bg-pattern);
    position: relative;
    padding-top: 30px;
    padding-bottom: 30px;
}

.rrhh-datos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--rrhh-white) 0%, transparent 100%);
    pointer-events: none;
}

.rrhh-datos__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

.rrhh-datos__card {
    background: var(--rrhh-white);
    border-radius: 20px;
    padding: 28px 25px;
    box-shadow: var(--rrhh-shadow);
    transition: var(--rrhh-transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.rrhh-datos__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rrhh-primary), var(--rrhh-accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.rrhh-datos__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--rrhh-shadow-hover);
    border-color: var(--rrhh-gray-300);
}

.rrhh-datos__card:hover::before {
    transform: scaleX(1);
}

.rrhh-datos__card-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--rrhh-bg-pattern), var(--rrhh-gray-100));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--rrhh-transition);
}

.rrhh-datos__card:hover .rrhh-datos__card-icon {
    background: linear-gradient(135deg, var(--rrhh-primary), var(--rrhh-secondary));
}

.rrhh-datos__card-icon i {
    font-size: 2rem;
    color: var(--rrhh-primary);
    transition: var(--rrhh-transition);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.rrhh-datos__card:hover .rrhh-datos__card-icon i {
    color: white;
}

.rrhh-datos__card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rrhh-dark);
    margin-bottom: 16px;
}

.rrhh-datos__card-text {
    font-size: 1.4rem;
    line-height: 1.75;
    color: var(--rrhh-gray-600);
}

.rrhh-datos__card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.rrhh-datos__card-list li {
    padding: 12px 16px;
    padding-left: 45px;
    position: relative;
    color: var(--rrhh-gray-700);
    font-size: 1.35rem;
    background: var(--rrhh-bg-light);
    border-radius: 10px;
    transition: var(--rrhh-transition);
}

.rrhh-datos__card-list li:hover {
    background: var(--rrhh-bg-pattern);
    transform: translateX(5px);
}

.rrhh-datos__card-list li {
    padding-left: 35px;
}

.rrhh-datos__card-list li i {
    position: absolute;
    left: 12px;
    color: var(--rrhh-accent-gold);
    font-size: 0.85rem;
    margin-top: 3px;
}

/* ========================================
   ESTRUCTURA ORGANIZACIONAL
   ======================================== */
.rrhh-estructura {
    background: var(--rrhh-white);
    padding-top: 30px;
    padding-bottom: 30px;
}

.rrhh-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: var(--rrhh-bg-light);
    padding: 8px;
    border-radius: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rrhh-tabs__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rrhh-gray-600);
    cursor: pointer;
    transition: var(--rrhh-transition);
}

.rrhh-tabs__btn i {
    font-size: 1.3rem;
    opacity: 0.7;
    transition: var(--rrhh-transition);
}

.rrhh-tabs__btn:hover {
    color: var(--rrhh-primary);
    background: var(--rrhh-white);
}

.rrhh-tabs__btn:hover i {
    opacity: 1;
}

.rrhh-tabs__btn--active {
    background: var(--rrhh-white);
    color: var(--rrhh-primary);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.1);
}

.rrhh-tabs__btn--active i {
    opacity: 1;
    color: var(--rrhh-accent-gold);
}

.rrhh-tabs__panel {
    display: none;
    animation: rrhhFadeIn 0.5s ease;
}

.rrhh-tabs__panel--active {
    display: block;
}

@keyframes rrhhFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Autoridades - Diseño premium */
.rrhh-autoridades__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.rrhh-autoridad__card {
    background: var(--rrhh-white);
    border-radius: 20px;
    padding: 35px 24px;
    text-align: center;
    box-shadow: var(--rrhh-shadow);
    transition: var(--rrhh-transition);
    border: 1px solid var(--rrhh-gray-100);
    position: relative;
    overflow: hidden;
}

.rrhh-autoridad__card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rrhh-primary), var(--rrhh-accent-gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.rrhh-autoridad__card:hover {
    transform: translateY(-12px);
    box-shadow: var(--rrhh-shadow-hover);
}

.rrhh-autoridad__card:hover::after {
    transform: scaleX(1);
}

.rrhh-autoridad__image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--rrhh-bg-pattern), var(--rrhh-gray-100));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 4px solid var(--rrhh-white);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.15);
    transition: var(--rrhh-transition);
}

.rrhh-autoridad__card:hover .rrhh-autoridad__image {
    border-color: var(--rrhh-accent-gold);
    transform: scale(1.05);
}

.rrhh-autoridad__image i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--rrhh-primary), var(--rrhh-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rrhh-autoridad__nombre {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rrhh-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.rrhh-autoridad__cargo {
    font-size: 1.2rem;
    color: var(--rrhh-gray-500);
    font-weight: 500;
}

/* Organigrama - Diseño jerárquico completo */
.rrhh-organigrama {
    text-align: center;
    padding: 30px 20px;
    background: var(--rrhh-bg-light);
    border-radius: 24px;
    max-width: 1600px;
    margin: 0 auto;
    overflow-x: auto;
}

.rrhh-organigrama__wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    min-width: fit-content;
    padding: 0 60px;
}

.rrhh-organigrama__center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rrhh-organigrama__special {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
}

.rrhh-organigrama__special--left {
    margin-right: 20px;
}

.rrhh-organigrama__special--right {
    margin-left: 20px;
}

.rrhh-organigrama__line-dotted {
    width: 40px;
    height: 2px;
    border-top: 2px dashed var(--rrhh-gray-400);
    margin: 40px 0 0 0;
}

.rrhh-organigrama__line-dotted--left {
    align-self: flex-end;
    margin-right: -3px;
}

.rrhh-organigrama__line-dotted--right {
    align-self: flex-start;
    margin-left: -3px;
}

.rrhh-organigrama__nivel1 {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.rrhh-organigrama__item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--rrhh-primary), var(--rrhh-secondary));
    color: white;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.3rem;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.25);
    white-space: nowrap;
}

.rrhh-organigrama__item i {
    font-size: 2rem;
    color: var(--rrhh-accent-gold);
}

.rrhh-organigrama__item--principal {
    padding: 28px 50px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border: 3px solid var(--rrhh-accent-gold);
}

.rrhh-organigrama__item--principal i {
    font-size: 2.5rem;
}

.rrhh-organigrama__item--special {
    background: linear-gradient(135deg, #718096, #4a5568);
    border: 2px dashed var(--rrhh-gray-400);
    font-size: 0.95rem;
    padding: 15px 20px;
    min-width: 120px;
}

.rrhh-organigrama__item--special i {
    font-size: 1.5rem;
    color: var(--rrhh-accent-gold);
}

.rrhh-organigrama__line-solid {
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, var(--rrhh-primary), var(--rrhh-accent-gold));
    margin: 0 auto;
    border-radius: 2px;
}

.rrhh-organigrama__nivel2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.rrhh-organigrama__nivel2 .rrhh-organigrama__item {
    background: var(--rrhh-white);
    color: var(--rrhh-dark);
    border: 2px solid var(--rrhh-gray-200);
    padding: 16px 24px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    min-width: 180px;
}

.rrhh-organigrama__nivel2 .rrhh-organigrama__item:hover {
    border-color: var(--rrhh-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.15);
}

.rrhh-organigrama__nivel2 .rrhh-organigrama__item i {
    color: var(--rrhh-primary);
    font-size: 1.4rem;
}

.rrhh-organigrama__nivel3 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.rrhh-organigrama__secretaria {
    background: var(--rrhh-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.1);
    border: 2px solid var(--rrhh-gray-100);
    min-width: 250px;
    max-width: 280px;
}

.rrhh-organigrama__secretaria:hover {
    border-color: var(--rrhh-primary);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.15);
}

.rrhh-organigrama__secretaria-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rrhh-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rrhh-accent-gold);
}

.rrhh-organigrama__direcciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rrhh-organigrama__item--small {
    background: var(--rrhh-bg-light);
    padding: 12px 16px;
    font-size: 0.85rem;
    border: 1px solid var(--rrhh-gray-200);
    gap: 8px;
    border-radius: 10px;
}

.rrhh-organigrama__item--small i {
    font-size: 1.1rem;
    color: var(--rrhh-secondary);
}

/* Organigrama Tipo Árbol */
.organigrama-tree {
    padding: 40px 20px;
    background: var(--rrhh-bg-light);
    border-radius: 24px;
    max-width: 1600px;
    margin: 0 auto;
    overflow-x: auto;
}

.organigrama-tree .organigrama-node {
    display: flex;
    justify-content: center;
}

.organigrama-tree .organigrama-level {
    display: flex;
    justify-content: center;
    position: relative;
}

.organigrama-tree .organigrama-lines {
    display: flex;
    justify-content: center;
    position: relative;
}

.organigrama-tree .organigrama-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.organigrama-tree .organigrama-branches {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.organigrama-tree .organigrama-sub-branches {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 25px;
    position: relative;
}

.organigrama-tree .organigrama-sub-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 200px);
    max-width: 90%;
    height: 2px;
    background: var(--rrhh-primary);
}

.organigrama-tree .organigrama-sub-branches .organigrama-node {
    position: relative;
}

.organigrama-tree .organigrama-sub-branches .organigrama-node::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    width: 2px;
    height: 25px;
    background: var(--rrhh-primary);
}

.organigrama-tree .organigrama-line {
    background: var(--rrhh-primary);
}

.organigrama-tree .organigrama-line--vertical {
    width: 2px;
    height: 25px;
}

.organigrama-tree .organigrama-line--horizontal {
    width: calc(100% - 300px);
    max-width: 95%;
    height: 2px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.organigrama-tree .organigrama-branch .organigrama-line--vertical {
    height: 25px;
}

.organigrama-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--rrhh-white);
    color: var(--rrhh-dark);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.1);
    border: 2px solid var(--rrhh-gray-200);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.organigrama-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.2);
    border-color: var(--rrhh-primary);
}

.organigrama-box i {
    font-size: 1.5rem;
    color: var(--rrhh-primary);
}

.organigrama-box--gold {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    border: 3px solid var(--rrhh-accent-gold);
    padding: 20px 40px;
    font-size: 1.1rem;
}

.organigrama-box--gold i {
    font-size: 2rem;
    color: var(--rrhh-accent-gold);
}

.organigrama-box--gold:hover {
    border-color: var(--rrhh-accent-light);
    transform: translateY(-3px);
}

.organigrama-box--special {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    border: 2px dashed var(--rrhh-gray-400);
    padding: 14px 18px;
    font-size: 0.85rem;
}

.organigrama-box--special i {
    color: var(--rrhh-accent-gold);
}

.organigrama-box--small {
    padding: 10px 14px;
    font-size: 0.75rem;
    gap: 6px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 180px;
}

.organigrama-box--small i {
    font-size: 1.3rem;
}

.organigrama-special {
    position: absolute;
    top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.organigrama-special--left {
    left: 50px;
}

.organigrama-special--right {
    right: 50px;
}

.organigrama-tree {
    position: relative;
    padding-top: 120px;
}

.organigrama-line--dotted-left {
    width: 80px;
    height: 2px;
    border-top: 2px dashed var(--rrhh-gray-400);
    position: absolute;
    right: -80px;
    top: 50px;
}

.organigrama-line--dotted-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: -30px;
    width: 2px;
    height: 30px;
    border-left: 2px dashed var(--rrhh-gray-400);
}

.organigrama-line--dotted-right {
    width: 80px;
    height: 2px;
    border-top: 2px dashed var(--rrhh-gray-400);
    position: absolute;
    left: -80px;
    top: 50px;
}

.organigrama-line--dotted-right::after {
    content: '';
    position: absolute;
    left: 0;
    top: -30px;
    width: 2px;
    height: 30px;
    border-left: 2px dashed var(--rrhh-gray-400);
}

/* Organigrama Nuevo Tipo Árbol */
.org-container {
    padding-top: 5px;
    padding-bottom: 30px;
    background: var(--rrhh-bg-light);
    border-radius: 24px;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
}

.org-row {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.org-row--1 {
    gap: 80px;
    position: relative;
    z-index: 1;
}

.org-row--1::after {
    content: '';
    position: absolute;
    top: 152px;
    left: 20%;
    right: 20%;
    height: 2px;
    border-top: 2px dashed #1a365d;
    z-index: -1;
}
.org-row--connector {
    margin-top: 10px;
}
.org-row--2 {
    gap: 8px;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
    overflow-x: auto;
    padding-top: 10px;
    padding-bottom: 10px;

}

.org-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.org-special {
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
}

.org-special--left {
    flex-direction: row;
}

.org-special--right {
    flex-direction: row;
}

.org-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--rrhh-dark);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.12);
    border: 2px solid var(--rrhh-gray-200);
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    min-width: auto;
}

.org-box i {
    font-size: 1.8rem;
    color: var(--rrhh-primary);
}

.org-box span {
    display: block;
}

.org-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.2);
    border-color: var(--rrhh-primary);
}

.org-box--principal {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    border: 3px solid var(--rrhh-accent-gold);
    padding: 22px 45px;
    font-size: 1.4rem;
}

.org-box--principal i {
    font-size: 2.2rem;
    color: var(--rrhh-accent-gold);
}

.org-box--special {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    border: 2px dashed var(--rrhh-gray-400);
    padding: 16px 22px;
    font-size: 1.4rem;
}

.org-box--special i {
    color: var(--rrhh-accent-gold);
    font-size: 1.4rem;
}

.org-box--small {
    padding: 12px 18px;
    font-size: 0.85rem;
    gap: 6px;
    flex-direction: row;
}

.org-box--small i {
    font-size: 1.1rem;
}

.org-connector {
    background: var(--rrhh-primary);
}

.org-connector--vertical {
    width: 3px;
    height: 80px;
    margin: 0;
    margin-bottom: -38px;
}


.org-hline {
    width: calc(100% - 200px);
    max-width: 95%;
    height: 3px;
    background: linear-gradient(90deg, var(--rrhh-primary), var(--rrhh-accent-gold));
    border-radius: 2px;
}

.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.org-sub-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
    margin-top: 0;
    width: 100%;
}

.org-branch .org-connector--vertical {
    height: 20px;
}

/* Grupo de secretaría con direcciones apiladas */
.org-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* ========================================
   NUEVO DISEÑO DE ÁRBOL - Ramificaciones laterales
   ======================================== */

/* Contenedor principal de todos los grupos */
.org-row--2 {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Contenedor del grupo (cada secretaría) */
.org-tree-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 180px;
}

/* Contenedor de hijos */
.org-tree-children {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-top: 25px;
    position: relative;
    padding-left: 30px;
}

/* ===== LÍNEAS DE CONEXIÓN TIPO ÁRBOL (ASIMÉTRICO) ===== */

/* 1. Línea vertical desde el padre (centrada) */
.org-tree-group > .org-box::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: var(--rrhh-primary);
    z-index: 1;
}

/* 2. Contenedor de hijos - línea horizontal hacia la izquierda (conecta con línea del padre) */
.org-tree-children::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 113px;
    height: 2px;
    background: var(--rrhh-primary);
}

/* Clases modificadoras para el ancho de la línea */
.org-tree-children--sm::before { width: 90px; }
.org-tree-children--md::before { width: 102px; }
.org-tree-children--lg::before { width: 105px; }
.org-tree-children--xl::before { width: 130px; }

/* 3. Contenedor de hijos - línea vertical lateral de hijos */
.org-tree-children::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--rrhh-primary);
}

/* Cada hijo */
.org-tree-child {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: var(--rrhh-white);
    border: 2px solid var(--rrhh-gray-200);
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--rrhh-dark);
    white-space: nowrap;
}

/* 4. Línea horizontal hacia cada hijo */
.org-tree-child::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: var(--rrhh-primary);
}

/* Icono en cada hijo */
.org-tree-child i {
    font-size: 0.9rem;
    color: var(--rrhh-primary);
}

/* Hover en hijo */
.org-tree-child:hover {
    border-color: var(--rrhh-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
}

.org-direcciones-items .org-box:hover {
    border-color: var(--rrhh-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
}

.org-direcciones-items .org-box i {
    font-size: 1.3rem;
    color: var(--rrhh-primary);
}

/* Botón ver organigrama completo */
.org-ver-mas {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.org-ver-mas__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--rrhh-primary) 0%, #2c5282 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
}

.org-ver-mas__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
    background: linear-gradient(135deg, #2c5282 0%, var(--rrhh-primary) 100%);
}

.org-ver-mas__btn i {
    font-size: 1.1rem;
}

/* Modal organigrama */
.org-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.org-modal__content {
    margin: 2% auto;
    padding: 20px;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.org-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--rrhh-primary) 0%, #2c5282 100%);
    border-radius: 10px;
    margin-bottom: 15px;
}

.org-modal__close {
    position: relative;
    top: auto;
    right: auto;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    line-height: 1;
}

.org-modal__close:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

@keyframes zoomIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

.org-modal__img-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    background: #000;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-modal__img-wrapper:active {
    cursor: grabbing;
}

.org-modal__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.org-modal__img.zoomed {
    max-width: none;
    max-height: none;
    transform-origin: center center;
    cursor: grab;
}

.org-modal__actions {
    display: flex;
    gap: 10px;
}

.org-modal__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--rrhh-primary) 0%, #2c5282 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.org-modal__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
    background: linear-gradient(135deg, #2c5282 0%, var(--rrhh-primary) 100%);
}

.org-modal__btn:hover {
    color: var(--rrhh-accent-gold);
}

/* POA - Diseño de lista moderna */
.rrhh-poa__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 850px;
    margin: 0 auto;
}

.rrhh-poa__item {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(145deg, var(--rrhh-white) 0%, var(--rrhh-bg-light) 100%);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(26, 54, 93, 0.08);
    transition: var(--rrhh-transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.rrhh-poa__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--rrhh-primary), var(--rrhh-accent-gold));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.rrhh-poa__item:hover {
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.15);
    transform: translateX(10px);
    border-color: var(--rrhh-gray-200);
}

.rrhh-poa__item:hover::before {
    transform: scaleY(1);
}

.rrhh-poa__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--rrhh-bg-pattern) 0%, var(--rrhh-gray-100) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--rrhh-transition);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.1);
}

.rrhh-poa__item:hover .rrhh-poa__icon {
    background: linear-gradient(135deg, var(--rrhh-primary) 0%, var(--rrhh-secondary) 100%);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.25);
}

.rrhh-poa__icon i {
    font-size: 1.6rem;
    color: var(--rrhh-primary);
    transition: var(--rrhh-transition);
}

.rrhh-poa__item:hover .rrhh-poa__icon i {
    color: white;
}

.rrhh-poa__info {
    flex: 1;
}

.rrhh-poa__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rrhh-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.rrhh-poa__desc {
    font-size: 1.25rem;
    color: var(--rrhh-gray-600);
    line-height: 1.5;
}

.rrhh-poa__download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--rrhh-primary) 0%, var(--rrhh-secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--rrhh-transition);
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.2);
}

.rrhh-poa__download:hover {
    background: linear-gradient(135deg, var(--rrhh-secondary) 0%, var(--rrhh-primary) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
}

/* Escala Salarial - Tabla profesional */
.rrhh-escala__table {
    overflow-x: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.rrhh-escala__table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--rrhh-white);
    border: 2px solid var(--rrhh-primary);
    table-layout: fixed;
}

.rrhh-escala__table thead {
    background: linear-gradient(135deg, var(--rrhh-primary) 0%, var(--rrhh-secondary) 100%);
}

.rrhh-escala__table th {
    color: white;
    padding: 18px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rrhh-escala__table th:first-child {
    text-align: center;
    width: 110px;
}

.rrhh-escala__table td:first-child {
    text-align: center;
    width: 110px;
}

.rrhh-escala__table th:nth-child(2) {
    width: 80px;
}

.rrhh-escala__table th:nth-child(3) {
    text-align: center;
    width: 200px;
}

.rrhh-escala__table th:nth-child(4),
.rrhh-escala__table th:nth-child(5),
.rrhh-escala__table th:nth-child(6) {
    width: 120px;
}

.rrhh-escala__table th:nth-child(5),
.rrhh-escala__table th:nth-child(6) {
    text-align: right;
}

.rrhh-escala__table tbody tr {
    transition: var(--rrhh-transition);
}

.rrhh-escala__table tbody tr:nth-child(even) {
    background: var(--rrhh-bg-light);
}

.rrhh-escala__table tbody tr:hover {
    background: #e8f4fc;
}

.rrhh-escala__table td {
    padding: 16px 10px;
    border: 1px solid var(--rrhh-gray-200);
    text-transform: uppercase;
    color: var(--rrhh-gray-700);
    font-size: 1.15rem;
    text-align: center;
}

.rrhh-escala__table td.rrhh-table__number {
    text-align: right !important;
    padding-right: 15px;
}

.rrhh-escala__table th:nth-child(5),
.rrhh-escala__table th:nth-child(6) {
    text-align: right !important;
}

.rrhh-table__category {
    background: linear-gradient(135deg, var(--rrhh-primary), var(--rrhh-secondary)) !important;
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    vertical-align: middle;
    border: 1px solid var(--rrhh-primary) !important;
}

.rrhh-table__number {
    text-align: right !important;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.95rem;
}

.rrhh-table__total {
    background: linear-gradient(135deg, var(--rrhh-accent-gold), var(--rrhh-accent-light)) !important;
    font-weight: 700;
}

.rrhh-table__total td {
    border: 1px solid var(--rrhh-accent-gold) !important;
    color: var(--rrhh-dark) !important;
    font-size: 1.1rem;
}

.rrhh-table__total-text {
    text-align: left !important;
    font-size: 1.1rem !important;
    font-weight: 700;
}

.rrhh-escala__footer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--rrhh-primary), var(--rrhh-secondary));
    border-radius: 16px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.rrhh-escala__footer p {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.rrhh-escala__footer p span {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 5px;
}

/* ========================================
   CONTACTO - Diseño de llamada a acción
   ======================================== */
.rrhh-contacto {
    background: linear-gradient(135deg, var(--rrhh-dark) 0%, #2d3748 50%, var(--rrhh-primary) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 50px;
    padding-bottom: 50px;
}

.rrhh-contacto::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(214, 158, 46, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.rrhh-contacto::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(237, 137, 54, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.rrhh-contacto__content {
    text-align: center;
    color: white;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.rrhh-contacto__icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
}

.rrhh-contacto__icon i {
    font-size: 2.2rem;
    color: var(--rrhh-accent-gold);
}

.rrhh-contacto__title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.rrhh-contacto__text {
    font-size: 1.5rem;
    opacity: 0.85;
    margin-bottom: 35px;
    line-height: 1.75;
    color: var(--rrhh-gray-300);
}

.rrhh-contacto__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--rrhh-accent-gold), var(--rrhh-accent-light));
    color: var(--rrhh-dark);
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--rrhh-transition);
    box-shadow: 0 10px 30px rgba(214, 158, 46, 0.3);
}

.rrhh-contacto__btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(214, 158, 46, 0.4);
    color: var(--rrhh-dark);
}

/* ========================================
   DOCUMENTOS - Escalas Anteriores
    ======================================== */
.rrhh-documentos {
    background: var(--rrhh-white);
    padding-top: 50px;
    padding-bottom: 50px;
    margin-top: 40px;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--rrhh-primary), var(--rrhh-accent-gold)) 1;
}

.rrhh-documentos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.rrhh-documentos__card {
    background: linear-gradient(145deg, var(--rrhh-white) 0%, var(--rrhh-bg-light) 100%);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(26, 54, 93, 0.08);
    transition: var(--rrhh-transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.rrhh-documentos__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rrhh-primary), var(--rrhh-accent-gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.rrhh-documentos__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26, 54, 93, 0.15);
    border-color: var(--rrhh-primary);
}

.rrhh-documentos__card:hover::before {
    transform: scaleX(1);
}

.rrhh-documentos__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(197, 48, 48, 0.3);
}

.rrhh-documentos__icon i {
    font-size: 1.8rem;
    color: white;
}

.rrhh-documentos__info {
    flex: 1;
}

.rrhh-documentos__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rrhh-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.rrhh-documentos__desc {
    font-size: 1.15rem;
    color: var(--rrhh-gray-600);
    line-height: 1.6;
    margin: 0;
}

.rrhh-documentos__download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--rrhh-primary) 0%, var(--rrhh-secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--rrhh-transition);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

.rrhh-documentos__download:hover {
    background: linear-gradient(135deg, var(--rrhh-secondary) 0%, var(--rrhh-primary) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

/* ========================================
   RESPONSIVE
    ======================================== */
@media (max-width: 1100px) {
    .rrhh-autoridades__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 780px) {
    .rrhh-escala__table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.7rem;
    }
    
    .rrhh-escala__table table {
        table-layout: auto;
        min-width: 600px;
    }
    
    .rrhh-escala__table th,
    .rrhh-escala__table td {
        padding: 8px 5px;
        white-space: nowrap;
    }
    
    .rrhh-escala__table th {
        font-size: 0.75rem;
    }
    
    .rrhh-escala__table th:first-child,
    .rrhh-escala__table td:first-child {
        width: auto;
        min-width: 60px;
    }
    
    .rrhh-escala__table th:nth-child(2),
    .rrhh-escala__table td:nth-child(2) {
        width: 35px;
    }
    
    .rrhh-escala__table th:nth-child(3),
    .rrhh-escala__table td:nth-child(3) {
        min-width: 130px;
    }
    
    .rrhh-escala__table th:nth-child(4),
    .rrhh-escala__table td:nth-child(4) {
        width: 45px;
    }
    
    .rrhh-escala__table th:nth-child(5),
    .rrhh-escala__table td:nth-child(5),
    .rrhh-escala__table th:nth-child(6),
    .rrhh-escala__table td:nth-child(6) {
        width: 65px;
    }
    
    .rrhh-table__category {
        font-size: 0.65rem;
        padding: 4px;
    }
    
    .rrhh-table__number {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
        .org-row--1::after {
        display: none;
    }
    .rrhh-banner {
        height: 350px;
    }
    
    .rrhh-banner__title {
        font-size: 3rem;
    }
    
    .rrhh-banner__title span {
        font-size: 1.3rem;
    }
    
    .rrhh-banner__subtitle {
        font-size: 1.15rem;
    }
    
    .rrhh-section {
        padding: 40px 0;
    }
    
    .rrhh-section__title {
        font-size: 2.3rem;
    }
    
    .rrhh-section__subtitle {
        font-size: 1.3rem;
    }
    
    .rrhh-tabs {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }
    
    .rrhh-tabs__btn {
        justify-content: center;
    }
    
    .rrhh-autoridades__grid {
        grid-template-columns: 1fr;
    }
    
    .rrhh-organigrama__nivel3 {
        flex-direction: column;
        align-items: center;
    }
    
    .rrhh-organigrama__secretaria {
        min-width: 100%;
    }
    
    .rrhh-poa__item {
        flex-direction: column;
        text-align: center;
    }
    
    .rrhh-contacto__title {
        font-size: 2rem;
    }
    
    .rrhh-documentos__grid {
        grid-template-columns: 1fr;
    }
    
    /* Organigrama responsive */
    .org-row--1 {
        gap: 15px;
    }
    
    .org-special {
        padding-top: 0;
    }
    
    .org-box--principal {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .org-box--principal i {
        font-size: 1.4rem;
    }
    
    .org-box--special {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .org-box--special i {
        font-size: 1.2rem;
    }
    
    .org-box i {
        font-size: 1.3rem;
    }
    
    .org-tree-group {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .rrhh-banner {
        height: 280px;
    }
    
    .rrhh-banner__title {
        font-size: 2.5rem;
    }
    
    .rrhh-banner__title span {
        font-size: 1.2rem;
    }
    
    .rrhh-banner__subtitle {
        font-size: 1.3rem;
    }
    
    .rrhh-banner__badge {
        padding: 10px 20px;
        font-size: 0.75rem;
    }
    
    .rrhh-presentacion__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .rrhh-presentacion__icon {
        width: 70px;
        height: 70px;
        margin: 0 auto;
        transform: rotate(0deg);
    }
    
    .rrhh-presentacion__icon i {
        font-size: 1.8rem;
    }
    
    .rrhh-presentacion__text h2 {
        font-size: 2rem;
    }
    
    .rrhh-presentacion__text p {
        font-size: 1.1rem;
    }
    
    .rrhh-datos__grid {
        grid-template-columns: 1fr;
    }
    
    .rrhh-section {
        padding: 30px 0;
    }
    
    .rrhh-section__title {
        font-size: 1.8rem;
    }
    
    .rrhh-escala__table {
        font-size: 0.85rem;
    }
    
    .rrhh-escala__table th,
    .rrhh-escala__table td {
        padding: 10px 6px;
    }
    
    .rrhh-escala__table th:first-child,
    .rrhh-escala__table td:first-child {
        width: 70px;
    }
    
    .rrhh-escala__footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .rrhh-escala__footer p {
        font-size: 1.3rem;
    }
    
    .rrhh-documentos__card {
        padding: 20px;
    }
    
    .rrhh-documentos__title {
        font-size: 1.1rem;
    }
    
    .rrhh-documentos__desc {
        font-size: 0.9rem;
    }
    
    /* Organigrama responsive */
    .org-container {
        padding: 10px 5px 15px;
    }
    
    .org-row--1 {
        gap: 10px;
    }
    
    .org-special {
        padding-top: 0;
    }
    
    .org-box {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .org-box i {
        font-size: 1.1rem;
    }
    
    .org-box--principal {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .org-box--principal i {
        font-size: 1.2rem;
    }
    
    .org-box--special {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .org-box--special i {
        font-size: 1rem;
    }
    
    .org-connector--vertical {
        height: 30px;
        margin-bottom: -15px;
    }
    
    .org-row--2 {
        gap: 25px;
        padding: 15px 0;
    }
    
    .org-tree-group {
        max-width: 250px;
    }
    
    .org-tree-child {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    
    .org-tree-child i {
        font-size: 0.9rem;
    }
}
