@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/poppins-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/poppins-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-sans: 'Poppins', sans-serif;
    --font-title: 'Poppins', sans-serif;
}

html,
body,
button,
input,
select,
textarea {
    font-family: 'Poppins', sans-serif;
}

img { max-width: 100%; height: auto; }

.bg-wave { display: none; }

/* ========================================================
   NUEVO BANNER PRINCIPAL (100% PROPORCIONAL)
   ======================================================== */
.home-banner {
    width: 100%;
    max-width: 1500px;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    position: relative;
    background-color: transparent;
}
.home-banner a {
    display: block;
    width: 100%;
}
.home-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px;
}

/* ========================================================
   CIRCULARES FULL WIDTH (ADAPTABLE SIN CORTES)
   ======================================================== */
.circulares-full-wrapper {
    background: white;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 59, 115, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto 40px auto;
    position: relative;
}
.swiperCirculares { width: 100%; height: auto; }
.circular-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    width: 100%;
    height: auto;
    padding: 14px 48px;
    box-sizing: border-box;
}
.circular-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    text-decoration: none;
}
.circular-img {
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ========================================================
   WIDGETS INFERIORES COMPACTOS (3 COLUMNAS)
   ======================================================== */
.bottom-widgets-section { width: 100%; max-width: 1100px; margin: 0 auto 50px auto; padding: 10px 0 40px 0; }
.bottom-widgets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; align-items: stretch; }

.widget-card { background: #ffffff; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 59, 115, 0.08); border: 1px solid #cbd5e1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 20px; height: 100%; min-height: 320px; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.widget-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 59, 115, 0.15); border-color: #94a3b8; }
.widget-icon-box { width: 65px; height: 65px; border-radius: 50%; background: #f8fafc; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; border: 2px solid #e2e8f0; box-shadow: inset 0 4px 10px rgba(0,0,0,0.05); }
.widget-icon-box img { max-width: 60%; max-height: 35px; object-fit: contain; }
.widget-card h3 { color: #003b73; font-size: 1.2rem; font-weight: 800; margin: 0 0 10px 0; }
.widget-card p { color: #475569; font-size: 0.9rem; line-height: 1.4; margin: 0 0 15px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.widget-btn { background: #f26b21; color: white; padding: 10px 25px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: all 0.3s; box-shadow: 0 4px 15px rgba(242, 107, 33, 0.3); margin-top: auto; }
.widget-btn:hover { background: #003b73; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 59, 115, 0.2); color: white; }

/* ========================================================
   BANDA DE CONTABILIDAD EN LÍNEA
   ======================================================== */
.access-band {
    background: linear-gradient(135deg, #003b73 0%, #001a33 100%);
    border-radius: 24px;
    margin: 24px auto 40px auto;
    width: 100%;
    max-width: 1100px;
    padding: 25px 40px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 59, 115, 0.18);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.access-band::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%); border-radius: 50%; pointer-events: none; }
.access-header-full { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 15px; display: flex; justify-content: flex-start; }
.access-title-main { display: flex; align-items: center; gap: 15px; }
.access-title-main i { font-size: 24px; color: #60a5fa; }
.access-title-main h3 { font-family: 'Poppins', sans-serif; font-size: 1.75rem; font-weight: 300; margin: 0; letter-spacing: 1px; }
.access-body-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; }
.access-column { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.access-text-desc { color: #e2e8f0; font-size: 0.95rem; font-weight: 400; line-height: 1.5; text-align: center; margin: 0 0 18px 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; flex-grow: 1; }

/* ========================================================
   SECCIONES Y TARJETAS GENERALES
   ======================================================== */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h4 { color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85em; margin-bottom: 10px; }
.section-header h2 { color: #003b73; font-size: 2.2em; font-weight: 800; }

.media-cards-container { display: flex; gap: 24px; justify-content: center; margin: 0 auto 40px auto; flex-wrap: wrap; max-width: 1100px; width: 100%; box-sizing: border-box; }
.media-card { background: white; border-radius: 22px; flex: 1 1 320px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); overflow: hidden; border: 1px solid #f1f5f9; transition: all 0.4s ease; text-decoration: none; display: flex; flex-direction: column; }
.media-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0, 59, 115, 0.1); border-color: #bfdbfe; }
.media-card-img { width: 100%; height: 260px; background-size: cover; background-position: center; position: relative; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #f1f5f9; }
.media-card-img::before { content: ''; position: absolute; inset: 0; background: rgba(0, 31, 63, 0.25); transition: background 0.3s; }
.media-card:hover .media-card-img::before { background: rgba(0, 31, 63, 0.1); }
.media-icon-overlay { position: relative; z-index: 2; font-size: 65px; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.media-card:hover .media-icon-overlay { transform: scale(1.12); }
.media-card-body { padding: 22px 26px; flex-grow: 1; background: white; }
.media-card-body h3 { color: #003b73; margin: 0 0 10px 0; font-size: 1.25em; font-weight: 800; line-height: 1.3; transition: color 0.3s; }
.media-card:hover .media-card-body h3 { color: #f26b21; } 
.media-card-body p { color: #475569; font-size: 0.95em; line-height: 1.5; margin: 0; }

.recent-videos-container { max-width: 1100px; margin: 0 auto 70px auto; width: 100%; }
.recent-videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.recent-video-card { background: white; border-radius: 18px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: all 0.3s ease; cursor: pointer; text-decoration: none; position: relative; display: flex; flex-direction: column; }
.recent-video-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }

.training-section { background: linear-gradient(135deg, #003b73 0%, #001f3f 100%); border-radius: 24px; margin: 0 auto; max-width: 1100px; padding: 36px 28px; text-align: center; color: white; box-shadow: 0 20px 40px rgba(0, 59, 115, 0.2); position: relative; overflow: hidden; }
.training-section p { font-size: 1.05em; opacity: 0.95; max-width: 800px; margin: 0 auto 22px; line-height: 1.6; color: #e2e8f0; }
.btn-postulaciones { background-color: #f26b21; color: white; padding: 13px 32px; border-radius: 30px; font-size: 1.05em; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s; box-shadow: 0 8px 20px rgba(242, 107, 33, 0.3); }
.btn-postulaciones:hover { transform: translateY(-3px); background-color: #e05a10; color: white; box-shadow: 0 12px 30px rgba(242, 107, 33, 0.4); }
.training-icons { display: flex; justify-content: center; gap: 45px; margin-top: 30px; flex-wrap: wrap; }
.t-icon-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; opacity: 0.85; transition: all 0.3s; }
.t-icon-item:hover { opacity: 1; transform: translateY(-4px); color: #f26b21; }
.t-icon-item svg { width: 42px; height: 38px; stroke: currentColor; stroke-width: 1.5; fill: none; margin-bottom: 8px; }
.t-icon-item span { font-size: 0.95em; font-weight: 600; letter-spacing: 1px; }

.section-title-line { color: #003b73; font-size: 2rem; margin-bottom: 28px; position: relative; padding-bottom: 12px; font-weight: 600; }
.section-title-line::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 4px; background: #f26b21; border-radius: 2px; }

.interest-section { max-width: 1100px; margin: 0 auto 50px auto; width: 100%; }
.interest-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.03); transition: transform 0.3s ease; cursor: pointer; display: flex; flex-direction: column; border: 1px solid #e2e8f0; }
.interest-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.interest-img { width: 100%; height: 190px; background-color: #f1f5f9; background-size: cover; background-position: center; }
.interest-body { padding: 18px 20px; flex-grow: 1; display: flex; align-items: center; }
.interest-body h3 { color: #003b73; font-size: 1.08em; line-height: 1.4; font-weight: 700; margin: 0; }

/* ========================================================
   NOTICIAS MODERNAS
   ======================================================== */
.noticias-wrapper-moderno { max-width: 1100px; margin: 40px auto; width: 100%; box-sizing: border-box; }
.noticias-header-moderno { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; gap: 15px; }
.noticias-grid-moderna { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; width: 100%; }
.tarjeta-noticia-moderna { background: #ffffff; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; border: 2px solid transparent; box-shadow: 0 10px 30px rgba(0,0,0,0.04); text-decoration: none; color: inherit; transition: all 0.3s ease; height: 100%; box-sizing: border-box; }
.tarjeta-noticia-moderna:hover { border-color: #d15617; transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.tarjeta-img-moderna { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.tarjeta-meta-moderna { background: #fff0e6; color: #d97706; padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; display: inline-block; align-self: flex-start; margin-bottom: 12px; }
.tarjeta-noticia-moderna h4 { font-size: 1.15rem; font-weight: 800; color: #000000; margin: 0 0 10px 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta-noticia-moderna p { font-size: 0.9rem; color: #475569; margin: 0 0 20px 0; line-height: 1.5; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btn-leer-noticia { color: #d15617; font-weight: 700; font-size: 0.9rem; padding: 6px 0; border-radius: 20px; transition: all 0.3s ease; display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; }
.tarjeta-noticia-moderna:hover .btn-leer-noticia { background-color: #d15617; color: #ffffff; padding: 6px 18px; }

/* ========================================================
   REVISTAS Y CONVENIOS
   ======================================================== */
.revista-card-split { background: #fafcff; border-radius: 14px; border: 1px solid #f1f5f9; display: flex; justify-content: center; align-items: center; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; padding: 8px; }
.revista-card-split:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 59, 115, 0.14); border-color: #f26b21; }
.revista-img-wrapper { position: relative; width: 100%; border-radius: 8px; overflow: hidden; }
.revista-img-real { display: block; width: 100%; height: 100%; object-fit: cover; }
.revista-overlay-action { position: absolute; inset: 0; background: rgba(0, 26, 51, 0.65); backdrop-filter: blur(4px); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 12px; gap: 10px; opacity: 0; transition: all 0.35s ease; text-align: center; }
.revista-card-split:hover .revista-overlay-action { opacity: 1; }
.revista-titulo-flotante { color: white; font-size: 0.95rem; font-weight: 800; margin: 0; line-height: 1.25; }
.btn-descarga-flotante { background: #f26b21; color: white; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

.config-pagination { bottom: 0; }
.config-pagination .swiper-pagination-bullet { background: rgba(0, 59, 115, 0.4); width: 10px; height: 10px; transition: all 0.3s; }
.config-pagination .swiper-pagination-bullet-active { background: #f26b21; width: 25px; border-radius: 5px; }

.custom-arrow { width: 38px; height: 38px; background-color: white; border: 1px solid #e2e8f0; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.08); top: 45%; transition: all 0.3s; }
.custom-arrow::after { display: none; }
.swiper-button-prev.custom-arrow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003b73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E"); background-size: 18px; background-repeat: no-repeat; background-position: center; left: -12px; }
.swiper-button-next.custom-arrow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003b73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E"); background-size: 18px; background-repeat: no-repeat; background-position: center; right: -12px; }
.custom-arrow:hover { background-color: #f26b21; border-color: #f26b21; transform: scale(1.08); }
.swiper-button-prev.custom-arrow:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E"); }
.swiper-button-next.custom-arrow:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E"); }

.convenios-final-section { max-width: 1100px; margin: 0 auto 60px auto; width: 100%; }
.convenio-final-card { background: white; border-radius: 20px; padding: 16px 20px; display: flex; align-items: center; gap: 18px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 2px solid #c1c4c7bd; transition: all 0.3s ease; cursor: pointer; min-height: 160px; height: auto; box-sizing: border-box; overflow: hidden; }
.convenio-final-card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: 0 12px 30px rgba(0, 59, 115, 0.08); }
.conv-portada-img { width: 145px; height: 130px; max-width: 145px; flex-shrink: 0; object-fit: contain; border-radius: 10px; display: block; transition: transform 0.3s; }
.conv-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; padding: 0; text-align: left; }
.conv-body h3 { color: #003b73; font-size: 1.15em; font-weight: 600; margin: 0 0 6px 0; line-height: 1.25; }
.conv-body p { color: #64748b; font-size: 0.92em; margin: 0; line-height: 1.35; }

/* ========================================================
   MODALES, CALENDARIO Y TARJETAS DE DOCUMENTACIÓN
   ======================================================== */
.modal-caja { background: white; width: 100%; max-width: 750px; border-radius: 24px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.2); position: relative; max-height: 90vh; display: flex; flex-direction: column; }
.btn-cerrar-modal { position: absolute; top: 20px; right: 20px; background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: #475569; font-size: 18px; transition: all 0.3s; z-index: 10; }
.btn-cerrar-modal:hover { background: #fee2e2; color: #ef4444; transform: rotate(90deg); }
.modal-caja-header { background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%); padding: 26px 34px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 20px; }
.modal-caja-img-cont { width: 84px; height: 84px; background: white; border-radius: 16px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; box-shadow: 0 8px 15px rgba(0, 59, 115, 0.1); border: 1px solid #e2e8f0; padding: 8px; }
.modal-header-img { width: 100%; height: 100%; object-fit: contain; }
.modal-caja-header h2 { color: #003b73; margin: 0 0 4px 0; font-size: 1.5em; font-weight: 800; }
.modal-caja-header h5 { color: #f26b21; margin: 0; font-size: 0.95em; font-weight: 600; }
.modal-caja-body { padding: 24px 34px; overflow-y: auto; color: #334155; font-size: 1em; line-height: 1.6; }
.modal-parrafo { margin-bottom: 14px; text-align: justify; }
.modal-caja-footer { background: #f8fafc; padding: 20px 34px; border-top: 1px solid #e2e8f0; }
.pdf-title { color: #003b73; font-size: 1.05em; margin: 0 0 12px 0; font-weight: 700; }
.pdf-list { display: flex; flex-direction: column; gap: 10px; }
.btn-pdf-modal { background: white; border: 1px solid #cbd5e1; padding: 11px 18px; border-radius: 12px; color: #0f172a; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 12px; transition: all 0.3s; }
.btn-pdf-modal i { color: #ef4444; font-size: 1.2em; }
.btn-pdf-modal:hover { border-color: #003b73; color: #003b73; }

.dot-navigation {
    position: fixed;
    right: 24px;
    top: 280px; /* Pon aquí el mismo valor aproximado donde suelen quedar */
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.dot-navigation.listo {
    opacity: 1;
}
.nav-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.nav-dot:hover {
    background-color: #94a3b8;
}
.nav-dot.active {
    background-color: #f26b21;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #f26b21;
    transform: scale(1.1);
}

/* Tooltip a la izquierda del punto (visible al pasar el ratón O al hacer clic con .show-label) */
.nav-dot[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    bottom: auto;
    left: auto;
    right: 165%;
    transform: translateY(-50%) translateX(8px);
    background: #003b73;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 31, 63, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.10s ease;
}

.nav-dot[data-tooltip]::before {
    content: '';
    position: absolute;
    top: 50%;
    bottom: auto;
    left: auto;
    right: 115%;
    transform: translateY(-50%) translateX(8px);
    border: 5px solid transparent;
    border-left-color: #003b73;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.10s ease;
}

/* Se muestra tanto en hover como cuando se activa al hacer clic (.show-label) */
.nav-dot[data-tooltip]:hover::after,
.nav-dot[data-tooltip]:hover::before,
.nav-dot.show-label[data-tooltip]::after,
.nav-dot.show-label[data-tooltip]::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.faq-banner-container { max-width: 1100px; margin: 0 auto 25px auto; width: 100%; }
.faq-skinny-banner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; border-radius: 14px; text-decoration: none; background-size: cover; background-position: center; position: relative; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.06); border: 1px solid #bfdbfe; transition: all 0.3s ease; }
.faq-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 59, 115, 0.94) 0%, rgba(0, 59, 115, 0.78) 50%, rgba(0, 31, 63, 0.35) 100%); }
.faq-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 25px; color: white; width: 100%; }

.full-calendar-widget { background: #ffffff; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 59, 115, 0.08); border: 1px solid #cbd5e1; display: flex; flex-direction: column; position: relative; height: 100%; min-height: 310px; overflow: hidden; }
.fc-header { background: linear-gradient(135deg, #001a33 0%, #003b73 100%); color: white; display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; font-weight: 800; font-size: 0.92rem; letter-spacing: 1.5px; text-transform: uppercase; }
.fc-nav-btn { background: rgba(255, 255, 255, 0.12); border: none; color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fc-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; background: #f8fafc; padding: 6px 5px; font-weight: 700; color: #64748b; font-size: 0.78rem; border-bottom: 1px solid #e2e8f0; }
.fc-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(6, 1fr); gap: 4px; padding: 10px; flex-grow: 1; }
.fc-day-cell { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-weight: 600; color: #1e293b; font-size: 0.9rem; cursor: pointer; overflow: hidden; border: 1px solid transparent; min-height: 32px; }
.fc-day-cell.is-today { border: 2px solid #f26b21; color: #003b73; font-weight: 800; }
.fc-day-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.55; pointer-events: none; }
.fc-day-num { position: relative; z-index: 2; text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.95); }

.modal-efe-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 31, 63, 0.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-efe-box { background: #ffffff; width: 100%; max-width: 550px; border-radius: 24px; box-shadow: 0 25px 60px rgba(0,0,0,0.4); display: flex; flex-direction: column; position: relative; max-height: 90vh; overflow: hidden; }
.modal-efe-close { position: absolute; top: 18px; right: 18px; z-index: 10; background: #f1f5f9; border: none; color: #64748b; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-efe-content { padding: 35px 30px 20px 30px; overflow-y: auto; }
.modal-efe-title { color: #003b73; font-size: 1.45rem; font-weight: 800; line-height: 1.3; margin: 0 0 18px 0; padding-right: 35px; }
.modal-efe-img-container { width: 100%; background: #f8fafc; border-radius: 14px; padding: 12px; margin-bottom: 20px; display: flex; justify-content: center; border: 1px solid #e2e8f0; }
.modal-efe-img-container img { max-height: 210px; object-fit: contain; border-radius: 8px; }
.modal-efe-text { color: #475569; font-size: 0.98rem; line-height: 1.65; text-align: justify; white-space: pre-line; }
.modal-efe-footer { padding: 18px 30px; background: #f8fafc; border-top: 1px solid #e2e8f0; display: flex; justify-content: center; }
.modal-efe-btn-volver { background: #003b73; color: white; border: none; padding: 11px 28px; border-radius: 50px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }

.modal-docs-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 31, 63, 0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-docs-container { background: #f8fafc; width: 100%; max-width: 1000px; height: 85vh; border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.4); }
.modal-docs-xl { max-width: 1200px; }
.modal-docs-header { background: white; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; }
.modal-docs-title { font-size: 1.25rem; font-weight: 800; color: #003b73; margin: 0; display: flex; align-items: center; gap: 10px; }
.modal-docs-close { background: #f1f5f9; border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: #64748b; }
.modal-docs-body { padding: 24px; overflow-y: auto; flex-grow: 1; }
.modal-docs-desc { color: #475569; font-size: 1rem; margin: 0 0 20px 0; }
.docs-tabs-container { display: flex; gap: 24px; height: calc(100% - 45px); }
.docs-sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-right: 12px; border-right: 1px solid #e2e8f0; }
.docs-tab-btn { background: white; border: 1px solid #e2e8f0; padding: 11px 14px; border-radius: 12px; text-align: left; font-weight: 700; color: #475569; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; }
.docs-tab-btn.active { background: #003b73; color: white; border-color: #003b73; }
.docs-content-area { flex-grow: 1; overflow-y: auto; padding-right: 8px; padding-bottom: 24px; }
.pdf-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pdf-lib-card { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pdf-lib-icon { width: 50px; height: auto; margin-bottom: 12px; }
.pdf-lib-title { font-size: 0.88rem; font-weight: 800; color: #1e293b; margin: 0 0 16px 0; line-height: 1.35; flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.pdf-lib-btn { background: #f1f5f9; color: #003b73; padding: 8px 16px; border-radius: 50px; font-weight: 800; font-size: 0.82rem; text-decoration: none; width: 100%; display: inline-block; }
.pdf-lib-btn:hover { background: #f26b21; color: white; }
.pdf-badge-new { background: #fee2e2; color: #ef4444; font-size: 0.65rem; padding: 3px 10px; border-radius: 50px; font-weight: 800; margin-bottom: 10px; }
.pdf-badge-update { background: #e0f2fe; color: #0284c7; font-size: 0.65rem; padding: 3px 10px; border-radius: 50px; font-weight: 800; margin-bottom: 10px; }

.doc-section { padding: 14px 0; margin-bottom: 0; }
.doc-grid-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: 100%; max-width: 1100px; margin: 0 auto; }
.doc-grid-5col { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; width: 100%; max-width: 1100px; margin: 0 auto; }
.doc-card-mini { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 16px; padding: 18px 14px; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); }
.doc-card-mini:hover { transform: translateY(-4px); border-color: #003b73; box-shadow: 0 10px 25px rgba(0, 59, 115, 0.14); }
.doc-icon-mini { width: 44px; height: 44px; margin-bottom: 14px; color: #003b73; display: flex; align-items: center; justify-content: center; }
.doc-icon-mini i { font-size: 2.5rem; }
.doc-card-mini h3 { font-size: 1rem; font-weight: 500; color: #003b73; margin: 0; line-height: 1.3; }

.institutional-banner-carousel {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 1100 / 220;
    height: auto;
    border-radius: 18px;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    background-color: #e2e8f0;
}
.inst-slide-bg { width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; }

/* ========================================================
   SECCIÓN DE INTERÉS: 3 COLUMNAS EN ESCRITORIO, 1 EN MÓVIL
   ======================================================== */
#seccion-deinteres .interes-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

#seccion-deinteres .interes-header-row {
    align-items: end;
}

#seccion-deinteres .interes-title-col {
    grid-column: span 2;
}

@media (max-width: 768px) {
    #seccion-deinteres .interes-grid-3col,
    #seccion-deinteres .interes-header-row,
    #seccion-deinteres .interes-cards-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        width: 100%;
    }

    #seccion-deinteres .interes-title-col {
        grid-column: span 1;
    }

    #seccion-deinteres .interest-card,
    #seccion-deinteres .efemerides-wrapper.full-calendar-widget {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
    }

    #seccion-deinteres .interest-img {
        height: 185px;
        width: 100%;
    }

    #seccion-deinteres .fc-weekdays,
    #seccion-deinteres .fc-days-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        width: 100%;
        box-sizing: border-box;
    }
html body #seccion-deinteres .interes-header-row > div:empty {
        display: none;
    }
}

/* ========================================================
   REGLAS RESPONSIVE PROPORCIONALES (SIN DISTORSIÓN)
   ======================================================== */
@media (max-width: 1200px) {
    .doc-grid-5col { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .doc-grid-4col { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .noticias-grid-moderna { grid-template-columns: repeat(2, 1fr); }
    .recent-videos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .docs-tabs-container { flex-direction: column; height: auto; }
    .docs-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; margin-bottom: 12px; }
    .access-body-content { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    /* Banner Principal y Circulares mantienen proporción exacta */
    .home-banner,
    .home-banner img {
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 14px;
    }

    .circulares-full-wrapper {
        border-radius: 16px;
        margin-bottom: 28px;
    }
    .circular-slide {
        padding: 10px 36px;
    }
    .circular-img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    /* Banda Contabilidad en Línea sin estirar fondos */
    .access-band {
        padding: 20px 16px;
        border-radius: 18px;
        margin: 16px auto 28px auto;
    }
    .access-title-main h3 { font-size: 1.35rem; }

    /* Canales Oficiales (YouTube e Instagram apilados) */
    .media-cards-container {
        flex-direction: column !important;
        gap: 18px !important;
    }
    .media-card {
        width: 100% !important;
        flex: none !important;
        border-radius: 18px;
    }
    .media-card-img { height: 210px; }
    .media-card-body { padding: 18px 20px; }

    /* Grillas a 1 o 2 columnas limpias */
    .doc-grid-5col,
    .doc-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .doc-grid-5col > a:last-child {
        grid-column: span 2;
    }
    .doc-card-mini {
        min-height: 130px;
        padding: 14px 10px;
    }

    /* Tarjetas con imagen de fondo (Mesa de ayuda, SIREF, UAC) sin deformar */
    .doc-card-mini[style*="background-image"] {
        background-size: cover !important;
        background-position: left center !important;
        min-height: 130px;
    }

    .noticias-grid-moderna,
    .recent-videos-grid {
        grid-template-columns: 1fr;
    }

    .convenio-final-card {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }
    .conv-portada-img {
        width: 100%;
        max-width: 180px;
        height: 110px;
    }
    .conv-body { text-align: center; }

    .modal-caja-header { flex-direction: column; text-align: center; padding: 24px 18px; }
    .modal-caja-body, .modal-caja-footer { padding: 18px; }
    .dot-navigation { display: none !important; }
    .section-title-line { font-size: 1.65rem; margin-bottom: 20px; }
    .training-icons { gap: 20px; }
}

@media (max-width: 480px) {
    .doc-grid-5col,
    .doc-grid-4col {
        grid-template-columns: 1fr;
    }
    .doc-grid-5col > a:last-child {
        grid-column: span 1;
    }
    .circular-slide {
        padding: 8px 28px;
    }
}