/* ========================================= */
/* PLANTILLA 4: ADMISIÓN (COMPLETA Y CORREGIDA) */
/* ========================================= */
.hero-tpl4 { position: relative; width: 100%; height: 70vh; min-height: 450px; background-color: #000; overflow: hidden; margin-bottom: 0; display: block; }
.hero-yt-bg, .hero-video-bg, .hero-img-bg { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; transform: translate(-50%, -50%); object-fit: cover; z-index: 1; pointer-events: none; }
.hero-tpl4-gradient { position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); z-index: 5; pointer-events: none; }
.hero-tpl4-content { position: absolute !important; top: auto !important; bottom: 30px !important; left: 30px !important; transform: none !important; z-index: 999; display: block; }
.hero-tpl4-btn { background-color: #9b1414; color: #fff; padding: 12px 30px 12px 25px; font-family: 'Oswald', sans-serif; font-size: 1.15rem; font-weight: 700; text-transform: uppercase; text-decoration: none; border-radius: 50px; border: 2px solid #eab308; box-shadow: 0 5px 15px rgba(0,0,0,0.5); display: inline-flex; align-items: center; gap: 15px; transition: transform 0.3s ease, box-shadow 0.3s ease; letter-spacing: 0.5px; white-space: nowrap; }
.hero-tpl4-btn:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.8); color: #fff; }
.hero-tpl4-btn .btn-dot { width: 10px; height: 10px; background-color: #eab308; border-radius: 50%; }
.hero-tpl4-btn i { color: #eab308; font-size: 1rem; }

/* CONTENEDOR CENTRAL */
.tpl4-main-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; display: block; }

/* 1. SECCIÓN INTRO */
.tpl4-split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; align-items: flex-start; }
.tpl4-split-title { font-family: 'Oswald', sans-serif; font-size: 2.5rem; color: #1a2238; text-transform: uppercase; margin-bottom: 20px; margin-top: 0; }
.tpl4-split-text { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; line-height: 1.8; color: #2b2b2b; margin-bottom: 25px; text-align: justify; }
.tpl4-split-patrono { border-top: 1px solid var(--border-gold-light); padding-top: 15px; }
.tpl4-split-patrono span { display: block; font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: #c2a06a; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px; }
.tpl4-split-patrono strong { font-family: 'Oswald', sans-serif; font-size: 1.2rem; color: #1a2238; text-transform: uppercase; }

/* ======================================================== */
/* NUEVO: ESTILOS PARA LISTAS Y TABLAS DENTRO DEL TEXTO LIBRE */
/* ======================================================== */
.tpl4-split-text ul, .tpl4-faq-answer-inner ul { padding-left: 25px !important; margin-top: 10px; margin-bottom: 15px; list-style-type: disc !important; }
.tpl4-split-text ol, .tpl4-faq-answer-inner ol { padding-left: 25px !important; margin-top: 10px; margin-bottom: 15px; list-style-type: decimal !important; }
.tpl4-split-text li, .tpl4-faq-answer-inner li { margin-bottom: 8px; display: list-item !important; }

.tpl4-split-text table, .tpl4-faq-answer-inner table { width: 100%; border-collapse: collapse; margin-top: 15px; margin-bottom: 15px; background: #fff; }
.tpl4-split-text th, .tpl4-faq-answer-inner th, 
.tpl4-split-text td, .tpl4-faq-answer-inner td { border: 1px solid #cbd5e1; padding: 10px 15px; text-align: left; vertical-align: top; }
.tpl4-split-text th, .tpl4-faq-answer-inner th { background-color: #f8fafc; font-weight: bold; color: #1a2238; }

/* CAJAS DE VIDEO Y FOTOS (BLINDADAS CONTRA DEFORMACIÓN CON MINMAX) */
.tpl4-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin: 0 0 60px 0; align-items: flex-start; }
.admision-media-card { background-color: #1a2238; border: 1px solid var(--border-gold-light); border-radius: 4px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.1); transition: transform 0.3s; display: flex; flex-direction: column; }
.admision-media-card:hover { transform: translateY(-5px); }
.tpl4-media-title { font-family: 'Oswald', sans-serif; font-size: 1.3rem; color: #fff; margin: 0; padding: 15px 20px; text-align: center; text-transform: uppercase; border-bottom: 3px solid var(--border-gold-strong); }

.tpl4-split-right, .tpl4-iframe-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; border-radius: 4px; overflow: hidden; background: #000; display: block; }
.tpl4-split-right { box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 2px solid #1a2238; padding-bottom: 60%; } 
.tpl4-iframe-container { border: none; border-radius: 0; }
.tpl4-split-right iframe, .tpl4-split-right video, .tpl4-split-right img,
.tpl4-iframe-container iframe, .tpl4-iframe-container video, .tpl4-iframe-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; object-fit: cover; }

/* 2. FORMULARIO MITAD Y MITAD */
.tpl4-form-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; margin-bottom: 60px; }
.tpl4-form-card { background: #fff; padding: 40px; border-radius: 8px; border-top: 4px solid #1a2238; box-shadow: 0 10px 35px rgba(0,0,0,0.08); border: 1px solid #e5e7eb; }
.tpl4-form-image { width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 2px solid #1a2238; background: #000;}
.tpl4-form-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl4-form-title { font-family: 'Oswald', sans-serif; font-size: 2rem; color: #1a2238; text-transform: uppercase; margin-bottom: 25px; text-align: center;}
.tpl4-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.tpl4-input, .tpl4-textarea { box-sizing: border-box; width: 100%; padding: 15px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: 'Lato', sans-serif; font-size: 0.95rem; color: #1e293b; background: #f8fafc; transition: border-color 0.3s; margin-bottom: 15px; }
.tpl4-input:focus, .tpl4-textarea:focus { border-color: #1a2238; outline: none; background: #fff;}
.tpl4-textarea { height: 120px; resize: vertical; }
.tpl4-checkbox { display: flex; gap: 10px; align-items: flex-start; font-family: 'Lato', sans-serif; font-size: 0.85rem; color: #4b5563; margin-bottom: 10px; cursor: pointer; }
.tpl4-checkbox input { margin-top: 3px; accent-color: #1a2238; }
.tpl4-submit-btn { background: #1a2238; color: #fff; border: none; width: 100%; padding: 18px; font-family: 'Oswald', sans-serif; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; border-radius: 6px; cursor: pointer; transition: background 0.3s; margin-top: 20px; }
.tpl4-submit-btn:hover { background: #881313; }

/* =========================================================
   TPL4 - MENSAJE DE CONFIRMACIÓN DEL FORMULARIO
   ========================================================= */
.tpl4-contact-success {
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #ecfdf3 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-left: 5px solid #22c55e;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.12);
    animation: tpl4SuccessIn .35s ease both;
}

.tpl4-contact-success-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 19px;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
}

.tpl4-contact-success-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tpl4-contact-success-content strong {
    color: #166534;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.tpl4-contact-success-content span {
    color: #15803d;
    font-family: 'Lato', sans-serif;
    font-size: .9rem;
    line-height: 1.5;
}

.tpl4-contact-error {
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-left: 5px solid #f97316;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.10);
}

.tpl4-contact-error-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f97316;
    color: #fff;
    font-size: 18px;
}

.tpl4-contact-error-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tpl4-contact-error-content strong {
    color: #9a3412;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.tpl4-contact-error-content span {
    color: #c2410c;
    font-family: 'Lato', sans-serif;
    font-size: .9rem;
    line-height: 1.5;
}

@keyframes tpl4SuccessIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   TPL4 - RESPUESTA AJAX SIN RECARGAR LA PÁGINA
   ========================================================= */
.tpl4-form-message {
    width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    animation: tpl4MessageIn .28s ease both;
}

.tpl4-form-message[hidden] {
    display: none;
}

.tpl4-form-message--loading {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-left-color: #2563eb;
}

.tpl4-form-message--loading .tpl4-form-message-icon {
    background: #2563eb;
    color: #fff;
}

.tpl4-form-message--loading .tpl4-form-message-content strong {
    color: #1e3a8a;
}

.tpl4-form-message--loading .tpl4-form-message-content span {
    color: #1d4ed8;
}

.tpl4-form-message--success {
    background: linear-gradient(135deg, #ecfdf3 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-left: 5px solid #22c55e;
    box-shadow: 0 6px 18px rgba(34, 197, 94, .11);
}

.tpl4-form-message--error {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-left: 5px solid #f97316;
    box-shadow: 0 6px 18px rgba(249, 115, 22, .10);
}

.tpl4-form-message-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
}

.tpl4-form-message--success .tpl4-form-message-icon {
    background: #22c55e;
    box-shadow: 0 4px 10px rgba(34, 197, 94, .22);
}

.tpl4-form-message--error .tpl4-form-message-icon {
    background: #f97316;
    box-shadow: 0 4px 10px rgba(249, 115, 22, .20);
}

.tpl4-form-message-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tpl4-form-message-content strong {
    font-family: 'Lato', sans-serif;
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.35;
}

.tpl4-form-message-content span {
    font-family: 'Lato', sans-serif;
    font-size: .86rem;
    line-height: 1.45;
}

.tpl4-form-message--success .tpl4-form-message-content strong {
    color: #166534;
}

.tpl4-form-message--success .tpl4-form-message-content span {
    color: #15803d;
}

.tpl4-form-message--error .tpl4-form-message-content strong {
    color: #9a3412;
}

.tpl4-form-message--error .tpl4-form-message-content span {
    color: #c2410c;
}

.tpl4-submit-btn.is-loading {
    opacity: .78;
    cursor: wait;
}

.tpl4-modal-submit.is-loading {
    opacity: .78;
}

@keyframes tpl4MessageIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .tpl4-form-message {
        padding: 13px;
        gap: 10px;
    }

    .tpl4-form-message-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .tpl4-form-message-content strong {
        font-size: .9rem;
    }

    .tpl4-form-message-content span {
        font-size: .8rem;
    }
}

@media (max-width: 520px) {
    .tpl4-contact-success,
    .tpl4-contact-error {
        padding: 14px;
        gap: 11px;
    }

    .tpl4-contact-success-icon,
    .tpl4-contact-error-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .tpl4-contact-success-content strong,
    .tpl4-contact-error-content strong {
        font-size: .92rem;
    }

    .tpl4-contact-success-content span,
    .tpl4-contact-error-content span {
        font-size: .82rem;
    }
}


/* 3. PREGUNTAS FRECUENTES */
.tpl4-faq-wrapper { width: 100%; margin: 0 auto 60px auto; }
.tpl4-faq-header { font-family: 'Oswald', sans-serif; font-size: 2.2rem; color: #1a2238; text-align: center; margin-bottom: 30px; text-transform: uppercase; }
.tpl4-faq-container { display: flex; flex-direction: column; gap: 15px; }
.tpl4-faq-item { background-color: var(--bg-sidebar); border: 1px solid var(--border-gold-light); border-left: 4px solid #1a2238; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.tpl4-faq-question { width: 100%; background: transparent; border: none; padding: 20px 25px; font-family: 'Oswald', sans-serif; font-size: 1.15rem; color: #1a2238; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; }
.tpl4-faq-question:hover { color: #881313; }
.tpl4-faq-question i { color: var(--border-gold-strong); transition: transform 0.3s; font-size: 1.2rem;}
.tpl4-faq-question.active { background-color: #1a2238; color: #fff; border-left-color: #881313; }
.tpl4-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: #fff; }
.tpl4-faq-answer-inner { padding: 20px 25px; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; line-height: 1.7; color: #2b2b2b; border-top: 1px dashed var(--border-gold-light); }

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    .hero-tpl4 { height: 40vh; min-height: 350px; }
    .hero-tpl4-gradient { height: 50%; }
    .hero-tpl4-content { bottom: 15px !important; left: 15px !important; } 
    .hero-tpl4-btn { font-size: 1rem; padding: 10px 20px 10px 15px; }
    .tpl4-split-section { grid-template-columns: 1fr; gap: 25px; }
    .tpl4-split-right { order: -1; } 
    .tpl4-media-grid { grid-template-columns: 1fr; }
    .tpl4-form-wrapper { grid-template-columns: 1fr; }
    .tpl4-faq-header { font-size: 1.8rem; }
    .tpl4-form-row { grid-template-columns: 1fr; }
    .tpl4-form-card { padding: 25px 15px; }
}
/* ========================================= */
/* PLANTILLA 5: MISIÓN, VISIÓN Y VALORES     */
/* ========================================= */
.tpl5-intro { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; line-height: 1.7; color: #2b2b2b; margin-bottom: 40px; max-width: 70%; }
.tpl5-box { background-color: var(--bg-sidebar); border: 1px solid var(--border-gold-light); border-left: 2px solid var(--border-gold-strong); padding: 35px 40px; margin-bottom: 25px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.03); }
.tpl5-grid-box { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: stretch; }
.tpl5-grid-box-alt { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: stretch; }
.tpl5-text-content { display: flex; flex-direction: column; justify-content: center; }
.tpl5-img-content { border-radius: 12px; overflow: hidden; min-height: 200px; border: 1px solid rgba(0,0,0,0.1); }
.tpl5-img-content img { width: 100%; height: 100%; object-fit: cover; }
.tpl5-box-title { font-family: "IBM Plex Mono", "Courier New", monospace; font-size: 1.3rem; font-weight: bold; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-active); margin-bottom: 15px; }
.tpl5-box-text { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; line-height: 1.8; color: #2b2b2b; margin: 0; text-align: justify; }
.tpl5-video-central { margin-bottom: 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.1); border: 1px solid var(--border-gold-light); border-bottom: 4px solid var(--blue-active); background: #000; }
.tpl5-video-central-frame { position: relative; padding-bottom: 35%; height: 0; }
.tpl5-video-central-frame iframe, .tpl5-video-central-frame video, .tpl5-video-central-frame img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border: none; }
.tpl5-valores-section { margin-top: 20px; padding-top: 40px; border-top: 1px solid var(--border-gold-light); }
.tpl5-valores-title { font-family: 'Oswald', system-ui, sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--text-dark); text-transform: uppercase; margin: 0 0 15px 0; line-height: 1.1; letter-spacing: -0.5px; }
.tpl5-valores-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 25px; }
.tpl5-valor-badge { background-color: #1a2238; color: #ffffff; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.9rem; padding: 12px 25px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); text-transform: capitalize; letter-spacing: 0.5px; }

/* ========================================= */
/* PLANTILLA 6: HISTORIA Y COMPAÑÍAS         */
/* ========================================= */
.tpl6-header-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-bottom: 40px; align-items: start; }
.tpl6-header-right { margin-top: 36px; }
.tpl6-header-right img { width: 100%; height: auto; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid var(--border-gold-light); }
.tpl6-stats-row { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 20px; }
.tpl6-stat-item { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.15em; color: var(--text-gray); text-transform: uppercase; }
.tpl6-stat-item span { color: var(--blue-active); font-weight: bold; }
.tpl6-main-media { width: 100%; margin-bottom: 50px; border-radius: 4px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.15); border: 3px solid #1a2238; background: #000; position: relative; padding-bottom: 40%; }
.tpl6-main-media iframe, .tpl6-main-media video, .tpl6-main-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border: none; }
.tpl6-timeline { margin-bottom: 50px; }
.tpl6-timeline-item { position: relative; padding-left: 35px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--border-gold-light); }
.tpl6-timeline-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 20px; }
.tpl6-timeline-marker { position: absolute; left: 0; top: 6px; width: 8px; height: 8px; background-color: #881313; }
.tpl6-timeline-date { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; letter-spacing: 0.15em; color: var(--blue-active); margin-bottom: 15px; text-transform: uppercase; }
.tpl6-timeline-text { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; line-height: 1.8; color: #2b2b2b; text-align: justify; }
.tpl6-quote-box { background-color: var(--bg-sidebar); border: 1px solid var(--border-gold-light); padding: 40px; margin-bottom: 50px; border-radius: 4px; box-shadow: inset 0 0 20px rgba(0,0,0,0.02); }
.tpl6-quote-title { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; letter-spacing: 0.15em; color: var(--blue-active); margin-bottom: 20px; text-transform: uppercase; }
.tpl6-quote-text { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.15rem; line-height: 1.8; color: #1a1a1a; font-style: italic; margin-bottom: 25px; }
.tpl6-quote-divider { width: 100%; height: 1px; background-color: var(--border-gold-strong); margin-bottom: 20px; }
.tpl6-quote-author-role { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.15em; color: #888; margin-bottom: 5px; text-transform: uppercase; }
.tpl6-quote-author-name { font-family: "IBM Plex Mono", monospace; font-size: 0.95rem; font-weight: bold; color: var(--text-dark); }
.tpl6-companies-section { margin-bottom: 50px; }
.tpl6-companies-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 25px; }
.tpl6-company-card { background-color: #1a2238; color: #fff; padding: 15px 25px; border-radius: 4px; min-width: 130px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: transform 0.2s; }
.tpl6-company-card:hover { transform: translateY(-3px); }
.tpl6-company-level { font-family: "IBM Plex Mono", monospace; font-size: 0.65rem; color: #94a3b8; letter-spacing: 0.1em; margin-bottom: 5px; text-transform: uppercase; }
.tpl6-company-name { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff; }
.tpl6-final-block { padding-left: 25px; border-left: 2px solid var(--border-gold-strong); margin-bottom: 30px; }
.tpl6-final-title { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; letter-spacing: 0.15em; color: var(--blue-active); margin-bottom: 15px; text-transform: uppercase; }
.tpl6-final-text { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; line-height: 1.8; color: #2b2b2b; text-align: justify; }

/* ========================================= */
/* PLANTILLA 7: AUTORIDADES                  */
/* ========================================= */
.tpl7-authorities-box {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-gold-light);
    padding: 45px;
    margin-top: 40px;
    border-radius: 2px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}
.tpl7-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columnas en PC */
    gap: 30px;
}
.tpl7-card {
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}
.tpl7-card:hover {
    transform: translateY(-5px);
}
.tpl7-card-img {
    width: 100%;
    aspect-ratio: 3/4; /* Mantener fotos rectangulares uniformes */
    object-fit: cover;
    background-color: #e5e7eb;
}
.tpl7-card-info {
    background-color: #1a2238; /* Azul oscuro institucional */
    padding: 20px;
    text-align: left;
    flex-grow: 1;
    border-top: 3px solid var(--border-gold-strong);
}
.tpl7-card-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ece7dd;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.3;
}
.tpl7-card-rank {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.tpl7-card-role {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    color: #c2a06a;
}

/* ========================================= */
/* BANNER DE ADMISIÓN (DISEÑO ELEGANTE)      */
/* ========================================= */
.elegant-banner-section { margin-top: 40px; padding-top: 60px; padding-bottom: 60px; border-top: 2px dashed var(--border-gold-light); background-color: transparent; }
.global-admision-container { width: 100%; margin: 0 auto; }
.eb-buttons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 40px; }
.eb-btn { background-color: var(--cmfb-granate-dark); border: 1px solid var(--border-gold-strong); color: #fff; padding: 20px; display: flex; align-items: center; justify-content: center; gap: 15px; text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; transition: all 0.3s; text-align: left; line-height: 1.2; border-radius: 8px; }
.eb-btn:hover { background-color: var(--border-gold-strong); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.eb-btn i { font-size: 2.2rem; color: var(--border-gold-light); }
.eb-btn:hover i { color: #fff; }
.eb-card { background-color: var(--bg-sidebar); border: 1px solid var(--border-gold-light); border-left: 4px solid var(--border-gold-strong); display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-radius: 12px; overflow: hidden; }
.eb-card-info { padding: 40px; }
.eb-card-title { font-family: 'Oswald', sans-serif; color: #1a1a1a; font-size: 2.2rem; font-weight: 700; margin-bottom: 25px; text-transform: uppercase; }
.eb-list { list-style: none; padding: 0; margin: 0 0 25px 0; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; color: #2b2b2b; line-height: 1.8; }
.eb-list i { color: var(--border-gold-strong); margin-right: 10px; font-size: 1.1rem; }
.eb-schedule { font-family: "IBM Plex Mono", "Courier New", monospace; color: var(--blue-active); font-size: 0.85rem; font-weight: bold; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border-gold-light); }
.eb-actions { display: flex; gap: 15px; }
.eb-action-outline { background: transparent; border: 2px solid var(--blue-active); color: var(--blue-active); padding: 12px 20px; text-decoration: none; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; transition: all 0.3s; border-radius: 6px; text-align: center; }
.eb-action-outline:hover { background: var(--blue-active); color: #fff; }
.eb-action-solid { background: var(--border-gold-strong); border: 2px solid var(--border-gold-strong); color: #fff; padding: 12px 20px; text-decoration: none; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; transition: all 0.3s; border-radius: 6px; text-align: center; }
.eb-action-solid:hover { background: #1a1a1a; border-color: #1a1a1a; }
.eb-card-img { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.eb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eb-videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin-bottom: 20px; }
.eb-video-item { text-align: center; }
.eb-video-frame { position: relative; padding-bottom: 56.25%; background: #000; border: 1px solid var(--border-gold-light); border-bottom: 4px solid var(--blue-active); margin-bottom: 15px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.eb-video-frame iframe, .eb-video-frame video, .eb-video-frame img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border: none; }
.eb-video-title { font-family: "IBM Plex Mono", "Courier New", monospace; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-active); text-align: center; font-weight: bold; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .tpl5-grid-box, .tpl5-grid-box-alt { grid-template-columns: 1fr; }
    .tpl5-grid-box-alt .tpl5-text-content { order: 1; }
    .tpl5-grid-box-alt .tpl5-img-content { order: 2; }
    .tpl5-box { padding: 25px 20px; }
    .tpl5-valores-title { font-size: 1.8rem; }
    .tpl5-video-central-frame { padding-bottom: 56.25%; }
    
    .tpl6-header-grid { grid-template-columns: 1fr; }
    .tpl6-header-right { margin-top: 0; }
    
    /* En Móvil y Tablets: 2 Columnas para Autoridades (Como pediste) */
    .tpl7-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .tpl7-authorities-box { padding: 20px; }

    .eb-buttons-grid { grid-template-columns: 1fr; }
    .eb-card { grid-template-columns: 1fr; }
    .eb-videos-grid { grid-template-columns: 1fr; }
    .eb-actions { flex-direction: column; }
    .tpl6-quote-box { padding: 25px; }
}

/* ========================================= */
/* PLANTILLA 8: CREDO / DOCUMENTO CENTRAL    */
/* ========================================= */
.tpl8-image-box {
    background-color: var(--bg-sidebar); /* Fondo Crema */
    border: 1px solid var(--border-gold-strong); /* Borde oscuro externo */
    padding: 20px;
    margin: 40px 0;
    border-radius: 4px;
    /* Sombras múltiples para simular el borde doble y el biselado */
    box-shadow: inset 0 0 0 4px var(--bg-sidebar), inset 0 0 0 5px var(--border-gold-light), 0 15px 35px rgba(0,0,0,0.05);
    text-align: center;
}
.tpl8-image-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.1);
}
.tpl8-info-container {
    margin-top: 50px;
}
.tpl8-info-block {
    padding-left: 25px;
    border-left: 2px solid var(--border-gold-strong);
    margin-bottom: 40px;
}
.tpl8-info-title {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-gray);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.tpl8-info-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2b2b2b;
    text-align: justify;
}

/* ========================================= */
/* PLANTILLA 9: VALORES Y PRINCIPIOS         */
/* ========================================= */
.tpl9-top-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; align-items: stretch; }

/* Cajas superiores: Fondo Rojo con línea superior Verde */
.tpl9-box { 
    background-color: #881313; /* Rojo Militar */
    border-top: 5px solid #1e5128; /* Línea verde superior */
    color: #fff; 
    padding: 40px; 
    border-radius: 8px; 
    border-bottom: 4px solid var(--border-gold-strong); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}
.tpl9-box-title { font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: #fff; text-transform: uppercase; margin-bottom: 20px; text-align: center; letter-spacing: 1px; }
.tpl9-box-content { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; line-height: 1.8; color: #e2e8f0; text-align: justify; }
.tpl9-box-content ul { padding-left: 20px; margin-top: 10px; }
.tpl9-box-content li { margin-bottom: 10px; }

.tpl9-table-wrapper { overflow-x: auto; margin-bottom: 50px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.tpl9-table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--border-gold-strong); }

/* Cabecera de tabla: Fondo Rojo con línea superior Verde */
.tpl9-table th { 
    background-color: #881313; /* Rojo Militar */
    border-top: 5px solid #1e5128; /* Línea verde superior */
    color: #fff; 
    font-family: 'Oswald', sans-serif; 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    padding: 18px 20px; 
    text-align: left; 
    border-left: 1px solid var(--border-gold-strong);
    border-right: 1px solid var(--border-gold-strong);
    border-bottom: 1px solid var(--border-gold-strong); 
}
.tpl9-table td { padding: 20px; border: 1px solid var(--border-gold-light); font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; line-height: 1.6; color: #2b2b2b; vertical-align: top; }
.tpl9-table tr:nth-child(even) td { background-color: var(--bg-sidebar); }

/* Textos de la primera columna combinados en rojo */
.tpl9-td-val { width: 15%; font-family: 'Lato', sans-serif !important; color: #881313 !important; font-size: 1.15rem !important; text-transform: uppercase; font-weight: bold; }
.tpl9-td-why { width: 45%; }
.tpl9-td-why ul { padding-left: 20px; margin: 0; }
.tpl9-td-def { width: 40%; }

@media (max-width: 992px) {
    .tpl9-top-boxes { grid-template-columns: 1fr; }
    .tpl9-table th, .tpl9-table td { padding: 12px 10px; font-size: 0.95rem; }
    .tpl9-td-val, .tpl9-td-why, .tpl9-td-def { display: block; width: 100%; }
    .tpl9-td-val { background: var(--bg-sidebar); border-bottom: none; }
    .tpl9-td-why { border-bottom: none; }
}

/* ========================================= */
/* PLANTILLA 10: GALERÍA DESCRIPTIVA         */
/* ========================================= */
.tpl10-main-title-box {
    background-color: #881313; /* Rojo Militar */
    border-top: 5px solid #1e5128; /* Línea Verde superior */
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.tpl10-main-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tpl10-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px; /* 50px vertical, 40px horizontal */
    margin-bottom: 50px;
}
.tpl10-card {
    background: transparent;
    display: flex;
    flex-direction: column;
}
.tpl10-img-box {
    width: 100%;
    aspect-ratio: 16/9; /* Mantiene todas las fotos del mismo tamaño exacto */
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-gold-light);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.tpl10-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.tpl10-card:hover .tpl10-img-box img {
    transform: scale(1.03); /* Ligero zoom elegante al pasar el mouse */
}
.tpl10-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    color: #1a2238; /* Azul Institucional */
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.tpl10-card-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    text-align: center;
}
@media (max-width: 768px) {
    .tpl10-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ========================================= */
/* PLANTILLA 11: DIRECTORES HISTÓRICOS       */
/* ========================================= */
.tpl11-stats-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--text-gray); letter-spacing: 0.1em; text-transform: uppercase; }
.tpl11-stats-row span { color: var(--blue-active); font-weight: bold; }

.tpl11-container { background-color: var(--bg-sidebar); border: 1px solid var(--border-gold-light); padding: 40px; border-radius: 4px; box-shadow: inset 0 0 20px rgba(0,0,0,0.02); }
.tpl11-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }

.tpl11-card { background: #fff; border: 1px solid var(--border-gold-light); display: flex; flex-direction: column; transition: transform 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.tpl11-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }

.tpl11-img-wrapper { position: relative; background-color: #111; padding: 20px 15px; text-align: center; }
.tpl11-number-badge { position: absolute; top: 0; left: 0; background-color: #881313; color: #fff; font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; padding: 4px 8px; font-weight: bold; z-index: 2; }

/* Efecto Óvalo para la foto */
.tpl11-img-box { width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: 50%; border: 2px solid #222; margin: 0 auto; background: #000; }
.tpl11-img-box img { width: 100%; height: 100%; object-fit: cover; }

.tpl11-info-box { background-color: #1a2238; padding: 15px 10px; color: #fff; text-align: left; flex-grow: 1; border-top: 2px solid var(--border-gold-strong); }
.tpl11-name { font-family: 'Oswald', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; line-height: 1.2; }
.tpl11-rank { font-family: "IBM Plex Mono", monospace; font-size: 0.6rem; color: #94a3b8; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 5px; }
.tpl11-dates { font-family: "IBM Plex Mono", monospace; font-size: 0.6rem; color: #c2a06a; }

/* Responsive: 6 en PC, 1 en Móvil */
@media (max-width: 1400px) { .tpl11-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1200px) { .tpl11-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .tpl11-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .tpl11-grid { grid-template-columns: repeat(2, 1fr); } .tpl11-container { padding: 20px; } }
@media (max-width: 480px) { .tpl11-grid { grid-template-columns: 1fr; } }

/* ========================================= */
/* PLANTILLA 12: INFRAESTRUCTURA (ÁLBUMES)   */
/* ========================================= */
.tpl12-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 50px; }
.tpl12-card { background: #1a2238; color: #fff; cursor: pointer; transition: transform 0.2s; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.tpl12-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.tpl12-img-box { width: 100%; aspect-ratio: 4/3; overflow: hidden; border-bottom: 3px solid #881313; background:#000; position: relative;}
.tpl12-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tpl12-card:hover .tpl12-img-box img { transform: scale(1.08); }
.tpl12-info { padding: 20px 15px; flex-grow: 1; display: flex; flex-direction: column; }
.tpl12-title { font-family: 'Oswald', sans-serif; font-size: 1.15rem; text-transform: uppercase; margin-bottom: 8px; color: #fff; }
.tpl12-desc { font-family: 'Source Serif 4', serif; font-size: 0.85rem; color: #cbd5e1; margin-bottom: 20px; line-height: 1.5; flex-grow: 1; }
.tpl12-stats { font-family: "IBM Plex Mono", monospace; font-size: 0.65rem; color: var(--border-gold-light); text-transform: uppercase; letter-spacing: 0.05em; display: flex; gap: 10px; }

/* VISOR LIGHTBOX TPL12 - CONTROLES MÁS GRANDES */
.tpl12-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(17,17,17,0.98); z-index: 99999; display: none; flex-direction: column; }
.tpl12-modal.active { display: flex; animation: fadeInModal 0.3s; }
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }

.tpl12-m-header { background: var(--bg-sidebar); padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-gold-light); }
.tpl12-m-h-left h3 { font-family: 'Oswald', sans-serif; font-size: 2.2rem; margin: 0 0 5px 0; color: #1a1a1a; text-transform: uppercase; }
.tpl12-m-h-left p { font-family: 'Source Serif 4', serif; font-size: 1.1rem; color: #4b5563; margin: 0; }
.tpl12-m-close { background: transparent; border: 1px solid #ccc; font-size: 2rem; cursor: pointer; padding: 5px 20px; color: #1a1a1a; transition: background 0.2s; border-radius: 4px; }
.tpl12-m-close:hover { background: #e5e7eb; }

.tpl12-m-body { flex-grow: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: #111; padding: 20px; }
.tpl12-m-img-wrapper { transition: transform 0.3s ease; }
.tpl12-m-img-wrapper img { max-width: 90vw; max-height: 60vh; object-fit: contain; border: 3px solid #1a2238; box-shadow: 0 0 40px rgba(0,0,0,0.8); border-radius:4px; }

.tpl12-m-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: #fff; border: 2px solid rgba(255,255,255,0.4); font-size: 2rem; width: 65px; height: 65px; cursor: pointer; transition: background 0.2s; z-index: 10; border-radius: 50%; display: flex; align-items: center; justify-content: center;}
.tpl12-m-btn:hover { background: rgba(255,255,255,0.3); }
.tpl12-m-prev { left: 40px; }
.tpl12-m-next { right: 40px; }

.tpl12-m-footer { background: var(--bg-sidebar); border-top: 1px solid var(--border-gold-light); display: flex; flex-direction: column; }
.tpl12-m-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.tpl12-m-play { background: transparent; border: none; font-size: 1.1rem; font-weight: bold; cursor: pointer; color: #1a2238; display: flex; align-items: center; gap: 10px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.05em; transition: color 0.2s; }
.tpl12-m-play:hover { color: #881313; }
.tpl12-m-play i { font-size: 1.4rem; }
.tpl12-m-tool-center { display: flex; gap: 12px; position: absolute; left: 50%; transform: translateX(-50%); }
.tpl12-m-zoom { background: transparent; border: 1px solid #ccc; width: 45px; height: 45px; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #1a2238; border-radius: 4px; transition: all 0.2s; }
.tpl12-m-zoom:hover { background: #e5e7eb; color: #881313;}
.tpl12-m-counter { font-family: "IBM Plex Mono", monospace; font-size: 1rem; color: #64748b; letter-spacing: 0.05em; font-weight: bold;}

.tpl12-m-thumbs { display: flex; gap: 12px; padding: 20px 40px; overflow-x: auto; background: #fff;}
.tpl12-m-thumb { width: 100px; height: 75px; object-fit: cover; cursor: pointer; opacity: 0.5; transition: opacity 0.2s, border 0.2s; border: 3px solid transparent; border-radius: 4px; }
.tpl12-m-thumb.active { opacity: 1; border-color: #881313; }
.tpl12-m-thumb:hover { opacity: 1; }

@media (max-width: 992px) { .tpl12-grid { grid-template-columns: repeat(2, 1fr); } .tpl12-m-tool-center { position: static; transform: none; } }
@media (max-width: 576px) { 
    .tpl12-grid { grid-template-columns: 1fr; } 
    .tpl12-m-header { padding: 15px; flex-direction: column; align-items: flex-start; gap: 10px; } 
    .tpl12-m-close { position: absolute; right: 15px; top: 15px; } 
    .tpl12-m-toolbar { flex-direction: column; gap: 15px; padding: 15px; } 
    .tpl12-m-thumbs { padding: 15px; } 
    .tpl12-m-prev { left: 10px; } .tpl12-m-next { right: 10px; } 
}

/* ========================================= */
/* PLANTILLA 14: RESULTADOS (DOCUMENTOS)     */
/* ========================================= */
.tpl14-container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; font-family: 'Lato', sans-serif; color: #333; }
.tpl14-maintitle { font-family: 'Oswald', system-ui, sans-serif; font-size: 2.8rem; text-transform: uppercase; margin-bottom: 15px; font-weight: 700; color: #1a1a1a; letter-spacing: -0.5px; }
.tpl14-maindesc { font-size: 1.1rem; line-height: 1.6; color: #4b5563; margin-bottom: 40px; }

.tpl14-filter-box { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #e5e7eb; margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.tpl14-select { padding: 10px 15px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; font-weight: bold; color: #1a1a1a; outline: none; cursor: pointer; min-width: 150px; background: #f8fafc; }
.tpl14-btn-buscar { background: #1a1a1a; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: background 0.2s; font-family: 'Oswald', sans-serif; letter-spacing: 1px;}
.tpl14-btn-buscar:hover { background: #9b2226; }

.tpl14-doc-wrapper { background: transparent; border-left: 2px solid #876B3A; padding-left: 20px; margin-bottom: 40px; }
.tpl14-doc-header-info { margin-bottom: 20px; }
.tpl14-doc-tramite { display: block; font-size: 0.85rem; color: #9b2226; font-family: "IBM Plex Mono", monospace; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.tpl14-doc-subtitle { font-family: 'Oswald', sans-serif; font-size: 1.8rem; margin: 0 0 10px 0; color: #111; text-transform: uppercase; }
.tpl14-doc-count { display: block; font-size: 0.8rem; font-weight: bold; color: #9b2226; font-family: "IBM Plex Mono", monospace; letter-spacing: 1px; }

.tpl14-table-responsive { width: 100%; overflow-x: auto; }
.tpl14-table { width: 100%; border-collapse: collapse; background: #fff; }
.tpl14-table thead th { background: #9b2226; color: #fff; font-family: 'Oswald', sans-serif; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; padding: 15px; text-align: left; }
.tpl14-table tbody tr { border-bottom: 1px solid #e5e7eb; transition: background 0.2s; }
.tpl14-table tbody tr:nth-child(even) { background: #fdf8f5; }
.tpl14-table tbody tr:hover { background: #f9f1eb; }
.tpl14-table td { padding: 20px 15px; vertical-align: top; }

.tpl14-table .col-doc strong { display: block; font-size: 1.05rem; color: #1a1a1a; margin-bottom: 5px; }
.tpl14-table .col-doc p { margin: 0; font-size: 0.9rem; color: #64748b; line-height: 1.5; }

.tpl14-table .col-fmt { width: 100px; text-align: center; vertical-align: middle; }
.badge-formato { border: 1px solid #333; padding: 4px 8px; font-size: 0.75rem; font-family: "IBM Plex Mono", monospace; font-weight: bold; color: #333; letter-spacing: 1px; display: inline-block; background: transparent;}

.tpl14-table .col-act { width: 180px; text-align: center; vertical-align: middle; }
.btn-ver-modelo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1px solid #876b3a; color: #876b3a; padding: 8px 15px; font-size: 0.85rem; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: all 0.2s; cursor: pointer; width: 100%;}
.btn-ver-modelo:hover { background: #876b3a; color: #fff; }

/* ========================================= */
/* MODAL PDF CENTRADO Y CON COLORES DEL CMFB */
/* ========================================= */
.tpl14-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 9999; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.tpl14-modal-box { background: #fff; width: 95%; max-width: 1200px; height: 95vh; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.tpl14-modal-header { background: #fff; padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; }
.tpl14-modal-title-wrap { display: flex; align-items: center; gap: 10px; }
.tpl14-modal-title-wrap i { color: #1a1a1a; font-size: 1.2rem; }
.tpl14-modal-title { font-family: 'Lato', sans-serif; font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin: 0; }
.tpl14-modal-actions { display: flex; align-items: center; gap: 15px; }
.tpl14-btn-download { display: inline-flex; align-items: center; gap: 8px; background: #876B3A; border: none; color: #fff; padding: 8px 15px; border-radius: 6px; font-weight: bold; font-size: 0.85rem; text-decoration: none; transition: all 0.2s; }
.tpl14-btn-download:hover { background: #6b542c; color:#fff;}
.tpl14-modal-close { background: transparent; border: none; color: #64748b; font-size: 1.5rem; cursor: pointer; transition: color 0.2s; padding: 0; display: flex; align-items: center;}
.tpl14-modal-close:hover { color: #e11d48; }

/* CENTRADO PERFECTO DEL VISOR PDF */
.tpl14-modal-body { flex-grow: 1; background: #e2e8f0; padding: 20px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.tpl14-modal-iframe { width: 100%; max-width: 900px; height: 100%; border: none; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,0.15); border-radius: 4px; }

/* ========================================= */
/* PLANTILLA 15: REQUISITOS Y EVALUACIONES   */
/* ========================================= */
.tpl15-container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 40px 20px;
    font-family: 'Lato', sans-serif; 
}

/* Título principal con tu color oscuro estándar */
.tpl15-maintitle { 
    text-align: center; 
    color: #1a1a1a; 
    font-family: 'Oswald', system-ui, sans-serif; 
    font-size: 2.5rem; 
    text-transform: uppercase; 
    margin-bottom: 50px; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
}

.tpl15-block { 
    margin-bottom: 40px; 
}

/* Cinta (Ribbon) con tu Dorado Institucional Fuerte */
.tpl15-ribbon { 
    background-color: #876B3A; 
    color: #ffffff; 
    display: inline-block; 
    padding: 10px 40px 10px 25px; 
    font-family: 'Oswald', system-ui, sans-serif; 
    font-size: 1.4rem; 
    text-transform: uppercase; 
    font-weight: 700; 
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%); 
    margin-bottom: 0; 
    position: relative; 
    z-index: 2; 
    min-width: 250px;
    letter-spacing: 1px;
}

/* Caja principal con el Rojo Oscuro Institucional que elegiste */
.tpl15-box { 
    background-color: #881313; 
    color: #fff; 
    padding: 30px; 
    font-size: 1.05rem; 
    line-height: 1.7; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Viñetas Circulares Bonitas (CSS Puro, infalible) */
.tpl15-box ul { 
    list-style: none !important; 
    padding-left: 0 !important; 
    margin: 0; 
}

.tpl15-box ul li { 
    position: relative; 
    padding-left: 28px; /* Espacio para que respire la viñeta */
    margin-bottom: 12px; 
}

.tpl15-box ul li::before { 
    content: ""; 
    position: absolute; 
    left: 0; 
    top: 9px; /* Alinear verticalmente con el texto */
    width: 8px; 
    height: 8px; 
    border: 2px solid #ffffff; /* Círculo con borde blanco */
    background-color: transparent; 
    border-radius: 50%; /* Esto lo hace circular */
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); /* Un leve brillo elegante */
}

/* Por si quieres que el interior se llene al pasar el mouse (Opcional, muy moderno) */
.tpl15-box ul li:hover::before {
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.tpl15-box p { 
    margin-top: 0; 
    margin-bottom: 15px; 
}

.tpl15-box p:last-child { 
    margin-bottom: 0; 
}

/* Modo Responsive */
@media (max-width: 768px) {
    .tpl15-ribbon {
        font-size: 1.1rem;
        padding: 10px 30px 10px 15px;
    }
    .tpl15-box {
        padding: 20px;
        font-size: 0.95rem;
    }
}

/* ========================================= */
/* PLANTILLA 16: NOTICIAS (INFINITE SCROLL)  */
/* ========================================= */
.tpl16-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; font-family: 'Lato', sans-serif; }
.tpl16-maintitle { text-align: center; color: #1a1a1a; font-family: 'Oswald', system-ui, sans-serif; font-size: 2.8rem; text-transform: uppercase; margin-bottom: 50px; font-weight: 700; letter-spacing: -0.5px; }

.tpl16-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 35px; margin-bottom: 40px; }

.tpl16-card { background: #ffffff; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; color: inherit; cursor: pointer; }
.tpl16-card:hover { transform: translateY(-7px); box-shadow: 0 15px 35px rgba(44, 74, 110, 0.15); border-color: #876B3A; }

.tpl16-img { width: 100%; height: 220px; background-size: cover; background-position: center; border-bottom: 3px solid #876B3A; position: relative; }
.tpl16-cat-badge { position: absolute; top: 15px; left: 15px; background: #e11d48; color: #fff; padding: 5px 12px; font-family: 'Oswald', sans-serif; font-size: 0.8rem; text-transform: uppercase; border-radius: 4px; font-weight: bold; letter-spacing: 1px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

.tpl16-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.tpl16-date { font-family: "IBM Plex Mono", "Courier New", monospace; font-size: 0.75rem; color: #876B3A; font-weight: bold; margin-bottom: 15px; letter-spacing: 1px; }
.tpl16-title { font-family: 'Oswald', system-ui, sans-serif; font-size: 1.4rem; color: #2C4A6E; margin: 0 0 15px 0; line-height: 1.3; text-transform: uppercase; }
.tpl16-desc { font-size: 0.95rem; color: #555; line-height: 1.6; margin: 0; }

.tpl16-loader { text-align: center; padding: 30px; font-size: 1.2rem; color: #2C4A6E; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.tpl16-fin { text-align: center; padding: 30px; color: #94a3b8; font-style: italic; border-top: 1px solid #e5e7eb; margin-top: 20px; }

/* Modal Lector de Noticia */
.tpl16-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.tpl16-modal-box { background: #fff; width: 90%; max-width: 800px; max-height: 90vh; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.tpl16-modal-close { position: absolute; top: 15px; right: 20px; background: #e11d48; color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.tpl16-modal-close:hover { background: #9f1239; }
.tpl16-modal-img { width: 100%; height: 350px; object-fit: cover; }
.tpl16-modal-body { padding: 40px; overflow-y: auto; }
.tpl16-modal-date { font-family: "IBM Plex Mono", monospace; color: #876B3A; font-size: 0.85rem; font-weight: bold; margin-bottom: 10px; display: block; letter-spacing: 1px;}
.tpl16-modal-title { font-family: 'Oswald', sans-serif; font-size: 2.2rem; color: #2C4A6E; margin: 0 0 25px 0; text-transform: uppercase; line-height: 1.2; }
.tpl16-modal-content { font-family: 'Lato', sans-serif; font-size: 1.05rem; color: #333; line-height: 1.8; }
.tpl16-modal-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; }
@media (max-width: 768px) { .tpl16-modal-body { padding: 25px; } .tpl16-modal-title { font-size: 1.6rem; } .tpl16-modal-img { height: 200px; } }


/* ========================================= */
/* PLANTILLA 17: EXCADETES Y PROMOCIONES     */
/* ========================================= */

.tpl17-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Lato', sans-serif;
}

.tpl17-maintitle {
    text-align: center;
    color: #1a1a1a;
    font-family: 'Oswald', system-ui, sans-serif;
    font-size: 2.8rem;
    text-transform: uppercase;
    margin: 0 0 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}


/* ========================================= */
/* SELECTOR DE AÑO                            */
/* ========================================= */

.tpl17-filter-box {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin: 0 auto 25px;

    box-shadow:
        0 4px 10px rgba(0,0,0,.04);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tpl17-filter-box label {
    font-weight: bold;
    color: #334155;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.tpl17-select {
    padding: 10px 18px;
    min-width: 150px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #f8fafc;
    color: #0f172a;

    font-weight: bold;
    cursor: pointer;
    outline: none;
}


/* ========================================= */
/* PROMOCIONES                                */
/* ========================================= */

.tpl17-promotions {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}


/* ========================================= */
/* CADA PROMOCIÓN                             */
/* ========================================= */

.tpl17-promotion-row {
    width: 100%;
}


/* ========================================= */
/* CABECERA                                   */
/* ========================================= */

.tpl17-promo-header {
    width: 100%;
    min-height: 76px;
    padding: 0 22px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border: 0;
    border-radius: 10px;
    background: #162235;
    color: #fff;

    cursor: pointer;
    text-align: left;

    position: relative;
    transition: background .25s ease;
}


/* ========================================= */
/* PORTADA                                    */
/* ========================================= */

.tpl17-pdf-cover {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8edf3;

    color: #876B3A;

    font-size: 5rem;
}


/* ========================================= */
/* CUADRO AZUL = SOLO TÍTULO                 */
/* ========================================= */

.tpl17-card-body {
    flex: 1;
    min-width: 0;
    padding: 18px 0;
    background: transparent;
}

.tpl17-card-title {
    display: block;
    margin: 0;

    color: #fff;
    font-family: 'Oswald', system-ui, sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.15;

    text-transform: uppercase;
    letter-spacing: .6px;
}


/* ========================================= */
/* GALERÍA                                   */
/* SIN CUADRO BLANCO                         */
/* ========================================= */

.tpl17-promo-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #876B3A;
    border-radius: 10px 0 0 10px;
}

.tpl17-promo-header:hover,
.tpl17-promo-header.is-open {
    background: #1d2d44;
}

.tpl17-card-description {
    display: block;
    margin-top: 5px;

    color: rgba(255,255,255,.72);

    font-family: 'Lato', sans-serif;
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.4;
}

.tpl17-promo-header.is-open {
    border-radius: 10px 10px 0 0;
}

.tpl17-promo-header:hover .tpl17-accordion-icon,
.tpl17-promo-header.is-open .tpl17-accordion-icon {
    background: rgba(216,189,124,.10);
}

.tpl17-accordion-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    flex: 0 0 auto;

    color: #d8bd7c;

    font-family: "IBM Plex Mono", monospace;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .8px;
}

.tpl17-accordion-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(216,189,124,.65);
    border-radius: 50%;
}

.tpl17-accordion-content {
    background: #fff;
}

.tpl17-front-gallery {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;

    background:
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}


/* ========================================= */
/* IMÁGENES                                  */
/* ========================================= */

.tpl17-front-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;

    padding: 0;
    margin: 0;
    overflow: hidden;

    border: 1px solid #cbd5e1;
    border-radius: 15px;

    background: #e2e8f0;
    cursor: zoom-in;

    box-shadow:
        0 12px 30px rgba(15,23,42,.16);

    transition:
        transform .28s ease,
        box-shadow .28s ease;
}

.tpl17-front-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform .45s ease;
}

.tpl17-front-image:hover img {
    transform: scale(1.05);
}


/* ========================================= */
/* ICONO ZOOM                                */
/* ========================================= */

.tpl17-image-zoom {
    position: absolute;

    right: 10px;
    bottom: 10px;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(22,34,53,.88);

    color: #fff;

    opacity: 0;

    transition:
        opacity .25s ease;
}

.tpl17-front-image:hover
.tpl17-image-zoom {
    opacity: 1;
}


/* ========================================= */
/* VIEWER.JS SOURCE                           */
/* ========================================= */

.tpl17-viewer-source {
    display: none;
}


/* ========================================= */
/* PDF                                        */
/* ========================================= */

.tpl17-pdf-content {
    width: 100%;

    margin-top: 18px;

    display: flex;

    justify-content: center;
}

.tpl17-pdf-wrapper {
    width: 100%;

    max-width: 900px;

    overflow: hidden;

    border-radius: 10px;

    border: 1px solid #dbe2ea;

    background: #fff;

    box-shadow:
        0 5px 15px rgba(0,0,0,.05);
}

.tpl17-pdf-header {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 12px 15px;

    background: #162235;

    color: #fff;

    font-family:
        'Oswald',
        sans-serif;

    font-size: 1rem;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.tpl17-pdf-header i {
    color: #876B3A;

    font-size: 1.2rem;
}

.tpl17-pdf-content {
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
    background: #f8fafc;
}

.tpl17-pdf-wrapper {
    width: 100%;
    overflow: hidden;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,.10);
}

.tpl17-pdf-header {
    min-height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    background: #162235;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.tpl17-pdf-header i {
    color: #d8bd7c;
    font-size: 1.15rem;
}

.tpl17-pdf-viewer {
    display: block;

    width: 100%;

    height: 750px;

    border: 0;

    background: #fff;
}


/* ========================================= */
/* SIN RESULTADOS                             */
/* ========================================= */

.tpl17-no-results {
    width: 100%;

    padding: 40px 20px;

    text-align: center;

    color: #64748b;
}


/* ========================================= */
/* RESPONSIVE                                 */
/* ========================================= */

@media (max-width: 800px) {

    .tpl17-front-gallery {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .tpl17-container {
        padding: 30px 12px;
    }

    .tpl17-maintitle {
        font-size: 2.1rem;
    }

    .tpl17-filter-box {
        padding: 18px 12px;
        flex-direction: column;
        gap: 10px;
    }

    .tpl17-select {
        width: 100%;
    }

    .tpl17-promo-header {
        min-height: 68px;
        padding: 0 14px;
    }

    .tpl17-card-title {
        font-size: 1.18rem;
    }

    .tpl17-front-gallery {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 14px;
    }

    .tpl17-front-image {
        aspect-ratio: 4 / 3;
    }

    .tpl17-pdf-content {
        padding: 12px;
    }

    .tpl17-pdf-viewer {
        height: 600px;
    }

}

.tpl17-pdf-wrapper {
    width: 100%;
    overflow: hidden;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,.10);
}

.tpl17-pdf-header {
    min-height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    background: #162235;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.tpl17-pdf-header i {
    color: #d8bd7c;
    font-size: 1.15rem;
}

.tpl17-pdf-viewer {
        height: 600px;
    }

}


/* ========================================= */
/* PLANTILLA 18: PORTAL DE TRANSPARENCIA     */
/* ========================================= */
.tpl18-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; font-family: 'Lato', sans-serif; }
.tpl18-maintitle { font-family: 'Oswald', sans-serif; font-size: 2.5rem; text-transform: uppercase; color: #1a1a1a; text-align: center; margin-bottom: 40px; font-weight: 700; }

.transparencia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-bottom: 50px; }
.transparencia-cat-box { background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 25px 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: #2C4A6E; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.03); cursor: pointer; }
.transparencia-cat-box i { font-size: 2.8rem; margin-bottom: 15px; color: #876B3A; transition: all 0.3s; }
.transparencia-cat-box span { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: bold; text-transform: uppercase; line-height: 1.3; }
.transparencia-cat-box:hover, .transparencia-cat-box.active { border-color: #2C4A6E; background: #2C4A6E; color: #fff; transform: translateY(-5px); box-shadow: 0 10px 25px rgba(44,74,110,0.2); }
.transparencia-cat-box:hover i, .transparencia-cat-box.active i { color: #fff; }

.transparencia-section-title { font-family: 'Oswald', sans-serif; font-size: 1.8rem; background: #876B3A; color: #fff; padding: 12px 25px; border-radius: 8px; margin-bottom: 30px; text-transform: uppercase; display: inline-block; box-shadow: 0 4px 10px rgba(135,107,58,0.2);}

.transparencia-accordion { margin-bottom: 15px; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.02);}
.transparencia-acc-btn { width: 100%; background: #f8fafc; padding: 20px 25px; text-align: left; font-family: 'Oswald', sans-serif; font-size: 1.15rem; color: #2C4A6E; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; font-weight: bold; transition: background 0.2s; }
.transparencia-acc-btn:hover { background: #f1f5f9; }
.transparencia-acc-btn.active { border-bottom: 1px solid #e2e8f0; color: #876B3A; }
.transparencia-acc-content { padding: 25px; display: none; background: #fff; }

.transparencia-filter { margin-bottom: 20px; position: relative; }
.transparencia-filter input { width: 100%; padding: 14px 15px 14px 45px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; outline: none; transition: 0.2s; font-family: 'Lato', sans-serif; font-weight: bold; color:#2C4A6E;}
.transparencia-filter input:focus { border-color: #876B3A; box-shadow: 0 0 0 4px rgba(135,107,58,0.1); }
.transparencia-filter i { position: absolute; left: 18px; top: 16px; color: #94a3b8; font-size: 1.1rem;}

.transparencia-doc-list { list-style: none; padding: 0; margin: 0; }
.doc-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px dashed #e2e8f0; gap: 15px; transition: 0.2s;}
.doc-item:hover { background: #f8fafc; padding-left: 10px; padding-right: 10px; border-radius: 6px; border-bottom-color: transparent;}
.doc-item:last-child { border-bottom: none; }
.doc-info { display: flex; align-items: center; gap: 15px; flex-grow: 1; }
.doc-info i { color: #e11d48; font-size: 1.5rem; }
.doc-title { font-size: 1rem; color: #1a1a1a; font-weight: bold; line-height: 1.4; }
.doc-year { background: #2C4A6E; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-family: 'IBM Plex Mono', monospace; font-weight: bold; white-space: nowrap;}
.hidden-doc { display: none !important; }

.btn-ver-doc { background: #fff; border: 2px solid #876B3A; color: #876B3A; padding: 8px 20px; font-size: 0.85rem; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: bold; border-radius: 6px; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.btn-ver-doc:hover { background: #876B3A; color: #fff; }
.btn-ver-mas { background: #f8fafc; border: 2px solid #cbd5e1; color: #475569; width: 100%; padding: 15px; margin-top: 20px; font-family: 'Oswald', sans-serif; font-size: 0.95rem; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.2s; text-transform: uppercase; }
.btn-ver-mas:hover { background: #e2e8f0; color: #1a1a1a; border-color: #94a3b8;}


.tpl20-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; font-family: 'Lato', sans-serif; }
.tpl20-maintitle { font-family: 'Oswald', sans-serif; font-size: 2.8rem; text-transform: uppercase; color: #1a1a1a; text-align: center; margin-bottom: 40px; font-weight: 700; }

.t20-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; margin-bottom: 50px; }
.t20-cat-box { background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 25px 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: #2C4A6E; transition: all 0.3s ease; cursor: pointer; }
.t20-cat-box i { font-size: 2.8rem; margin-bottom: 15px; color: #876B3A; transition: all 0.3s; }
.t20-cat-box span { font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; line-height: 1.3; }
.t20-cat-box:hover, .t20-cat-box.active { border-color: #2C4A6E; background: #2C4A6E; color: #fff; transform: translateY(-5px); box-shadow: 0 10px 25px rgba(44,74,110,0.2); }
.t20-cat-box:hover i, .t20-cat-box.active i { color: #fff; }

.t20-section-title { font-family: 'Oswald', sans-serif; font-size: 1.3rem; background: #876B3A; color: #fff; padding: 12px 25px; border-radius: 8px; margin-bottom: 30px; text-transform: uppercase; display: inline-block; }

.t20-accordion { margin-bottom: 15px; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; background: #fff; }
.t20-acc-btn { width: 100%; background: #f8fafc; padding: 20px 25px; text-align: left; font-family: 'Oswald', sans-serif; font-size: 1.15rem; color: #2C4A6E; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; font-weight: bold; transition: background 0.2s; }
.t20-acc-btn:hover { background: #f1f5f9; }
.t20-acc-btn.active { border-bottom: 1px solid #e2e8f0; color: #876B3A; }
.t20-acc-content { padding: 25px; display: none; background: #fff; }

.t20-filter-row { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.t20-search { flex-grow: 1; position: relative; }
.t20-search input { width: 100%; padding: 12px 15px 12px 40px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; outline: none; }
.t20-search i { position: absolute; left: 15px; top: 14px; color: #94a3b8; }
.t20-year-select { padding: 12px 20px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; font-weight: bold; color: #2C4A6E; outline: none; cursor: pointer; background: #f8fafc; min-width: 150px; }

.t20-doc-list { list-style: none; padding: 0; margin: 0; }
.t20-doc-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px dashed #e2e8f0; gap: 15px; transition: 0.2s;}
.t20-doc-item:last-child { border-bottom: none; }
.t20-doc-info { display: flex; align-items: center; gap: 15px; flex-grow: 1; }
.t20-doc-info i { color: #e11d48; font-size: 1.5rem; }
.t20-doc-title { font-size: 1rem; color: #1a1a1a; font-weight: bold; }
.t20-doc-year { background: #2C4A6E; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: bold; white-space: nowrap;}
.t20-hidden { display: none !important; }

.btn-book-pdf { background: #fff; border: 2px solid #876B3A; color: #876B3A; padding: 8px 20px; font-size: 0.85rem; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: bold; border-radius: 6px; cursor: pointer; transition: 0.2s; white-space: nowrap; display:flex; align-items:center; gap:8px;}
.btn-book-pdf:hover { background: #876B3A; color: #fff; }
.btn-t20-more { background: #f8fafc; border: 2px solid #cbd5e1; color: #475569; width: 100%; padding: 15px; margin-top: 20px; font-family: 'Oswald', sans-serif; font-size: 0.95rem; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.2s; text-transform: uppercase; }

/* FlipBook Modal Estilos */
.dflip-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 99999; display: none; flex-direction: column; }
.dflip-modal-close { position: absolute; top: 20px; right: 30px; background: transparent; border: none; color: #fff; font-size: 2rem; cursor: pointer; z-index: 100000; }
.dflip-modal-body { width: 100%; height: 100%; flex-grow: 1; display:flex; align-items:center; justify-content:center;}
._df_custom { width: 100%; height: 100vh; }



/* ========================================================= */
/* PLANTILLA 21: SIMBOLOGÍA HERÁLDICA                       */
/* COLEGIO MILITAR FRANCISCO BOLOGNESI                       */
/* ========================================================= */

/*
 * TPL21 utiliza la misma línea visual institucional de las plantillas
 * existentes: azul marino + rojo militar + dorado.
 *
 * IMPORTANTE:
 * - Todo el CSS de TPL21 está aquí.
 * - No hay <style> dentro de tpl_21.php.
 * - Se elimina la textura rayada/dosificada del body SOLO dentro de TPL21.
 * - El contenido deja de quedar excesivamente centrado.
 */

.tpl21-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 34px clamp(18px, 3vw, 52px) 55px;
    box-sizing: border-box;
    color: #2b2b2b;
    font-family: 'Lato', sans-serif;

    /* Fondo institucional limpio, sin rayas ni puntos */
    background: #f4f1e8 !important;
    background-image: none !important;
}

/* Evita que la textura del body se perciba detrás del contenido TPL21 */
.tpl21-container::before,
.tpl21-container::after {
    background-image: none !important;
}

/* ========================================================= */
/* ENCABEZADO                                                 */
/* ========================================================= */

.tpl21-header {
    width: 100%;
    max-width: 1280px;
    margin: 0 0 34px 0;
    padding: 0;
    text-align: left;
}

.tpl21-header-line {
    width: 62px;
    height: 3px;
    margin: 0 0 16px 0;
    background: #881313;
    position: relative;
}

.tpl21-header-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 3px;
    background: #876B3A;
}

.tpl21-kicker {
    margin: 0 0 7px;
    color: #881313;
    font-family: 'Oswald', system-ui, sans-serif;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
    text-transform: uppercase;
}

.tpl21-title {
    max-width: 950px;
    margin: 0;
    color: #1a2238;
    font-family: 'Oswald', system-ui, sans-serif;
    font-size: clamp(1.70rem, 2.5vw, 2.20rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.tpl21-intro {
    max-width: 900px;
    margin: 15px 0 0;
    color: #4b5563;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================================= */
/* ESTRUCTURA PRINCIPAL                                      */
/* Más horizontal y menos centrada.                         */
/* ========================================================= */

.tpl21-hero {
    width: 100%;
    max-width: 1280px;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.62fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: start;
}

.tpl21-symbols-column {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 17px;
}

/* ========================================================= */
/* TARJETAS DE SIGNIFICADO                                   */
/* ========================================================= */

.tpl21-symbol-card {
    position: relative;
    display: grid;
    grid-template-columns: 35px 45px minmax(0, 1fr);
    gap: 13px;
    width: 100%;
    min-width: 0;
    padding: 18px 22px 20px 16px;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid #ddd8ca;
    border-left: 3px solid #881313;
    border-radius: 2px;
    box-shadow: 0 5px 16px rgba(24, 31, 49, 0.055);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-left-color 0.22s ease;
}

.tpl21-symbol-card:hover {
    transform: translateX(4px);
    border-left-color: #876B3A;
    box-shadow: 0 9px 22px rgba(24, 31, 49, 0.09);
}

.tpl21-symbol-number {
    padding-top: 4px;
    color: #876B3A;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.tpl21-symbol-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    color: #fff;
    background: #881313;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #c8b483;
    font-size: 0.82rem;

    transition: background 0.22s ease, transform 0.22s ease;
}

.tpl21-symbol-card:hover .tpl21-symbol-icon {
    background: #1a2238;
    transform: scale(1.04);
}

.tpl21-symbol-content {
    min-width: 0;
}

.tpl21-symbol-short {
    margin-bottom: 3px;
    color: #876B3A;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1.25px;
    line-height: 1.3;
    text-transform: uppercase;
}

.tpl21-symbol-title {
    margin: 0 0 9px;
    color: #1a2238;
    font-family: 'Oswald', system-ui, sans-serif;
    font-size: 1.10rem;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.tpl21-symbol-text {
    min-width: 0;
    color: #36383d;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
    overflow-wrap: anywhere;
}

.tpl21-symbol-text p {
    margin: 0 0 9px;
}

.tpl21-symbol-text p:last-child {
    margin-bottom: 0;
}

.tpl21-symbol-text strong {
    color: #1a2238;
}

.tpl21-symbol-text ul,
.tpl21-symbol-text ol {
    margin: 9px 0;
    padding-left: 22px;
}

.tpl21-symbol-text li {
    margin-bottom: 5px;
}

/* ========================================================= */
/* IMAGEN DEL SIGNIFICADO                                   */
/* ========================================================= */

.tpl21-symbol-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 235px);
    gap: 23px;
    align-items: center;
}

.tpl21-symbol-detail.no-image {
    display: block;
}

.tpl21-symbol-image {
    width: 100%;
    min-width: 0;
    min-height: 155px;
    padding: 7px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #faf9f5;
    border: 1px solid #e4dfd3;
}

.tpl21-symbol-image img {
    display: block;
    width: 100%;
    max-width: 220px;
    max-height: 210px;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
}

/* ========================================================= */
/* ESCUDO PRINCIPAL                                          */
/* ========================================================= */

.tpl21-emblem-column {
    min-width: 0;
    position: sticky;
    top: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tpl21-emblem-frame {
    position: relative;
    width: min(100%, 330px);
    padding: 15px;
    box-sizing: border-box;

    background: #fdfcf8;
    border: 1px solid #876B3A;
    box-shadow:
        0 8px 24px rgba(24, 31, 49, 0.08),
        inset 0 0 0 4px #fdfcf8,
        inset 0 0 0 5px #ded1b1;
}

.tpl21-emblem-inner {
    width: 100%;
    min-height: 385px;
    padding: 14px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 1px solid #ebe6da;
    overflow: hidden;
}

.tpl21-emblem-image {
    display: block;
    width: 100%;
    max-width: 245px;
    max-height: 290px;
    height: auto;
    object-fit: contain;
}

.tpl21-emblem-placeholder {
    width: 100%;
    min-height: 255px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: #f8f6ef;
    color: #876B3A;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.tpl21-emblem-placeholder i {
    color: #881313;
    font-size: 2.20rem;
}

.tpl21-emblem-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 2;
    pointer-events: none;
}

.tpl21-corner-tl {
    top: 6px;
    left: 6px;
    border-top: 2px solid #881313;
    border-left: 2px solid #881313;
}

.tpl21-corner-tr {
    top: 6px;
    right: 6px;
    border-top: 2px solid #881313;
    border-right: 2px solid #881313;
}

.tpl21-corner-bl {
    bottom: 6px;
    left: 6px;
    border-bottom: 2px solid #881313;
    border-left: 2px solid #881313;
}

.tpl21-corner-br {
    bottom: 6px;
    right: 6px;
    border-bottom: 2px solid #881313;
    border-right: 2px solid #881313;
}

.tpl21-emblem-caption {
    width: min(100%, 330px);
    margin-top: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #876B3A;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.52rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.tpl21-caption-line {
    width: 18px;
    height: 1px;
    flex: 0 0 18px;
    background: #bca97b;
}

/* ========================================================= */
/* LEMA                                                        */
/* ========================================================= */

.tpl21-motto {
    width: 100%;
    max-width: 1280px;
    margin: 38px 0 0;
    padding: 23px 27px;
    box-sizing: border-box;

    background: #1a2238;
    border-left: 4px solid #876B3A;
    border-top: 1px solid #2b3651;
    border-bottom: 3px solid #881313;
    box-shadow: 0 8px 22px rgba(24, 31, 49, 0.09);
}

.tpl21-motto-decoration {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    margin-bottom: 9px;
}

.tpl21-motto-decoration span {
    width: 35px;
    height: 1px;
    background: #876B3A;
}

.tpl21-motto-decoration i {
    color: #d9c59a;
    font-size: 0.65rem;
}

.tpl21-motto-title {
    margin: 0 0 7px;
    color: #fff;
    font-family: 'Oswald', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.tpl21-motto-text {
    max-width: 900px;
    color: #e7e9ed;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.90rem;
    line-height: 1.65;
}

.tpl21-motto-text p {
    margin: 0 0 8px;
}

.tpl21-motto-text p:last-child {
    margin-bottom: 0;
}

/* ========================================================= */
/* DECORACIÓN FINAL                                          */
/* ========================================================= */

.tpl21-footer-decoration {
    width: 100%;
    max-width: 1280px;
    margin: 30px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
}

.tpl21-footer-line {
    width: 65px;
    height: 1px;
    background: #c9bb99;
}

.tpl21-footer-diamond {
    width: 9px;
    height: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #881313;
    border: 1px solid #876B3A;
    transform: rotate(45deg);
}

.tpl21-footer-diamond span {
    width: 3px;
    height: 3px;
    background: #d9c59a;
}

/* ========================================================= */
/* TABLET                                                     */
/* ========================================================= */

@media (max-width: 1050px) {
    .tpl21-container {
        padding: 30px 22px 45px;
    }

    .tpl21-hero {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 28px;
    }

    .tpl21-symbol-card {
        grid-template-columns: 30px 42px minmax(0, 1fr);
        padding-right: 17px;
    }

    .tpl21-symbol-detail {
        grid-template-columns: minmax(0, 1fr) 190px;
        gap: 17px;
    }

    .tpl21-emblem-frame {
        width: 270px;
    }

    .tpl21-emblem-inner {
        min-height: 245px;
    }
}

/* ========================================================= */
/* MÓVIL                                                      */
/* ========================================================= */

@media (max-width: 768px) {
    .tpl21-container {
        padding: 25px 14px 40px;
    }

    .tpl21-header {
        margin-bottom: 27px;
    }

    .tpl21-kicker {
        font-size: 0.66rem;
        letter-spacing: 1.2px;
    }

    .tpl21-title {
        font-size: 1.48rem;
        line-height: 1.16;
    }

    .tpl21-intro {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .tpl21-hero {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .tpl21-emblem-column {
        position: static;
        order: -1;
        width: 100%;
        align-items: center;
    }

    .tpl21-emblem-frame {
        width: min(100%, 300px);
    }

    .tpl21-emblem-inner {
        min-height: 245px;
    }

    .tpl21-emblem-caption {
        width: min(100%, 300px);
    }

    .tpl21-symbols-column {
        gap: 14px;
    }

    .tpl21-symbol-card {
        grid-template-columns: 28px 38px minmax(0, 1fr);
        gap: 9px;
        padding: 15px 12px;
    }

    .tpl21-symbol-number {
        font-size: 0.58rem;
    }

    .tpl21-symbol-icon {
        width: 36px;
        height: 36px;
        font-size: 0.74rem;
    }

    .tpl21-symbol-short {
        font-size: 0.50rem;
        letter-spacing: 0.9px;
    }

    .tpl21-symbol-title {
        font-size: 0.98rem;
        margin-bottom: 7px;
    }

    .tpl21-symbol-detail,
    .tpl21-symbol-detail.has-image {
        grid-template-columns: 1fr;
    }

    .tpl21-symbol-text {
        font-size: 0.88rem;
        line-height: 1.63;
        text-align: left;
    }

    .tpl21-symbol-image {
        max-width: 235px;
        min-height: 125px;
        margin: 2px auto 0;
    }

    .tpl21-symbol-image img {
        max-height: 190px;
    }

    .tpl21-motto {
        margin-top: 30px;
        padding: 20px 17px;
    }

    .tpl21-motto-title {
        font-size: 1.05rem;
    }

    .tpl21-motto-text {
        font-size: 0.86rem;
    }

    .tpl21-footer-decoration {
        margin-top: 25px;
    }
}

/* ========================================================= */
/* MÓVIL PEQUEÑO                                             */
/* ========================================================= */

@media (max-width: 480px) {
    .tpl21-container {
        padding-left: 9px;
        padding-right: 9px;
    }

    .tpl21-title {
        font-size: 1.30rem;
    }

    .tpl21-symbol-card {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .tpl21-symbol-number {
        padding-top: 0;
    }

    .tpl21-symbol-icon {
        width: 34px;
        height: 34px;
    }

    .tpl21-symbol-title {
        font-size: 0.92rem;
    }

    .tpl21-symbol-text {
        font-size: 0.84rem;
    }

    .tpl21-emblem-frame {
        width: 100%;
        max-width: 275px;
        padding: 13px;
    }

    .tpl21-emblem-inner {
        min-height: 220px;
    }

    .tpl21-emblem-caption {
        font-size: 0.49rem;
    }

    .tpl21-motto {
        padding: 18px 13px;
    }

    .tpl21-motto-decoration span {
        width: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpl21-symbol-card,
    .tpl21-symbol-icon {
        transition: none;
    }

    .tpl21-symbol-card:hover {
        transform: none;
    }
}

/* ============================================================
   TPL22 - CONTENIDO INSTITUCIONAL + IMAGEN / VIDEO
   Colegio Militar Francisco Bolognesi
   ============================================================ */

.tpl22-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 38px clamp(20px, 4vw, 58px) 52px;
    box-sizing: border-box;
    color: #1f2933;
    font-family: 'Lato', sans-serif;
}

.tpl22-header {
    width: 100%;
    margin: 0PX;
}

.tpl22-kicker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 18px;
}

.tpl22-kicker-line {
    width: 28px;
    height: 2px;
    flex: 0 0 auto;
    background: #876b3a;
}

.tpl22-kicker {
    margin: 0 0 12px;
    color: #8f1d2c;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tpl22-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
    gap: clamp(34px, 5vw, 78px);
    align-items: start;
}

.tpl22-copy {
    min-width: 0;
    padding: 2px 0 0;
}

.tpl22-subtitle {
    margin: 0 0 12px;
    color: #881313;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 1.7px;
    line-height: 1.5;
    text-transform: uppercase;
}

.tpl22-title {
    margin: 0 0 22px;
    color: #1a1a1a;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.70rem, 2.5vw, 2.20rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.tpl22-content {
    max-width: 650px;
    margin-top: 22px;
    color: #202938;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
    line-height: 1.78;
    text-align: left;
}

.tpl22-content p {
    margin: 0 0 12px;
}

.tpl22-content p:last-child {
    margin-bottom: 0;
}

.tpl22-content strong {
    color: #1a1a1a;
}

.tpl22-content ul,
.tpl22-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.tpl22-content li {
    margin-bottom: 6px;
}

.tpl22-bottom-info {
    max-width: 650px;
    margin-top: 34px;
    padding-top: 13px;
    border-top: 1px solid #bda978;
}

.tpl22-bottom-label {
    margin-bottom: 8px;
    color: #876b3a;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: 1.4;
    text-transform: uppercase;
}

.tpl22-bottom-text {
    color: #4b5563;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.92rem;
    line-height: 1.65;
}

.tpl22-media-column {
    min-width: 0;
    padding-top: 36px;
}

.tpl22-media-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #171717;
    border: 1px solid #876b3a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    aspect-ratio: 16 / 9;
}

.tpl22-image,
.tpl22-video,
.tpl22-media-embed,
.tpl22-media-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.tpl22-image {
    width: 100%;
    height: 100%;
    object-fit: cover;


}

.tpl22-video {
    object-fit: cover;
    background: #111;
}

.tpl22-media-embed iframe {
    border: 0;
}

.tpl22-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #d9c59a;
    background: linear-gradient(135deg, #1b1b1b, #292929);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.62rem;
    letter-spacing: 2px;
}

.tpl22-media-placeholder i {
    font-size: 2.2rem;
    opacity: 0.9;
}

.tpl22-media-caption {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    color: #687386;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.52rem;
    letter-spacing: 1.4px;
    line-height: 1.4;
    text-transform: uppercase;
}

.tpl22-media-caption span {
    width: 24px;
    height: 1px;
    flex: 0 0 auto;
    background: #876b3a;
}

.tpl22-footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 42px;
}

.tpl22-footer-decoration > span {
    width: 46px;
    height: 1px;
    background: #d2c29e;
}

.tpl22-footer-decoration i {
    width: 7px;
    height: 7px;
    display: block;
    background: #876b3a;
    transform: rotate(45deg);
}

@media (max-width: 1050px) {
    .tpl22-media-column {
        padding-top: 30px;
    }

    .tpl22-container {
        padding: 32px 24px 46px;
    }

    .tpl22-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
        gap: 34px;
    }

    .tpl22-title {
        font-size: clamp(2rem, 4vw, 2.9rem);
    }

    .tpl22-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 800px) {
    .tpl22-media-column {
        padding-top: 0;
    }

    .tpl22-container {
        padding: 28px 16px 40px;
    }

    .tpl22-header {
        margin-bottom: 26px;
    }

    .tpl22-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .tpl22-copy,
    .tpl22-media-column {
        width: 100%;
    }

    .tpl22-title {
        font-size: 2.15rem;
    }

    .tpl22-content {
        max-width: none;
        font-size: 0.92rem;
        line-height: 1.67;
    }

    .tpl22-bottom-info {
        max-width: none;
        margin-top: 28px;
    }

    .tpl22-media-frame {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tpl22-container {
        padding: 24px 12px 34px;
    }

    .tpl22-kicker {
        font-size: 0.58rem;
        letter-spacing: 1.7px;
    }

    .tpl22-subtitle {
        font-size: 0.59rem;
        letter-spacing: 1.3px;
    }

    .tpl22-title {
        font-size: 1.82rem;
        line-height: 1.05;
    }

    .tpl22-content {
        margin-top: 18px;
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .tpl22-media-caption {
        font-size: 0.48rem;
    }

    .tpl22-footer-decoration {
        margin-top: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpl22-container * {
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   TPL22 - MARCO EDITORIAL INSTITUCIONAL
   Mismo lenguaje visual de TPL21: línea lateral + línea inferior.
   El fondo continúa siendo exclusivamente el de .inst-main.
   ============================================================ */

.tpl22-content {
    position: relative;
    border-left: 1px solid rgba(160, 126, 64, 0.72);
    border-bottom: 1px solid rgba(160, 126, 64, 0.42);
    padding: 4px 0 34px 34px;
}

.tpl22-content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 54px;
    height: 2px;
    background: #a07e40;
}

.tpl22-media {
    position: relative;
}

.tpl22-media::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: rgba(160, 126, 64, 0.42);
    pointer-events: none;
}

@media (max-width: 900px) {
    .tpl22-content {
        border-left: 1px solid rgba(160, 126, 64, 0.72);
        border-bottom: 1px solid rgba(160, 126, 64, 0.42);
        padding: 2px 0 28px 24px;
    }

    .tpl22-title {
        font-size: 1.48rem;
        line-height: 1.08;
    }

    .tpl22-kicker {
        font-size: 0.66rem;
    }
}

@media (max-width: 600px) {
    .tpl22-content {
        padding-left: 18px;
    }

    .tpl22-title {
        font-size: 1.30rem;
    }
}


/* ============================================================
   TPL23 - PREGUNTAS FRECUENTES
   Colegio Militar Francisco Bolognesi
   ============================================================
   El fondo NO se define aquí.
   .inst-main conserva el fondo institucional.
   ============================================================ */

.inst-main.tpl23-container {
    box-sizing: border-box;
    color: #202938;
}

/* CONTENEDOR */
.tpl23-container {
    padding-top: 4px;
}

/* CABECERA */
.tpl23-header {
    margin-bottom: 34px;
}

.tpl23-kicker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tpl23-kicker-line {
    width: 36px;
    height: 1px;
    background: #876b3a;
    flex: 0 0 auto;
}

.tpl23-kicker {
    color: #687386;
    font: 600 .72rem/1.15 'IBM Plex Mono', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tpl23-title {
    margin: 0;
    color: #1a1a1a;
    font: 700 clamp(2.45rem, 4.25vw, 3.65rem)/1.02 'Oswald', sans-serif;
    letter-spacing: .1px;
    text-transform: uppercase;
}

.tpl23-intro {
    max-width: 760px;
    margin-top: 15px;
    color: #17253a;
    font: .96rem/1.62 'Source Serif 4', Georgia, serif;
}

.tpl23-intro p {
    margin: 0 0 9px;
}

.tpl23-intro p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   DOS COLUMNAS
   Izquierda = FAQ
   Derecha = imagen / video
   ============================================================ */
.tpl23-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 365px;
    gap: 30px;
    align-items: start;
}

.tpl23-faq-column {
    min-width: 0;
}

.tpl23-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* CAJAS FAQ: apariencia de la referencia */
.tpl23-faq-item {
    overflow: hidden;
    border: 1px solid #d4cba1;
    border-left: 3px solid #1b2d46;
    border-radius: 2px;
    background: rgba(223, 218, 203, .78);
    box-shadow: 0 2px 8px rgba(35, 43, 54, .045);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tpl23-faq-item:hover {
    background: rgba(223, 218, 203, .94);
    border-left-color: #881313;
    box-shadow: 0 4px 12px rgba(35, 43, 54, .07);
}

.tpl23-faq-item.is-open {
    background: rgba(255, 255, 255, .52);
    border-left-color: #881313;
}

.tpl23-faq-question {
    width: 100%;
    min-height: 62px;
    padding: 0 18px 0 21px;
    border: 0;
    background: transparent;
    color: #17253a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    cursor: pointer;
    font: 600 .91rem/1.3 'Oswald', sans-serif;
}

.tpl23-faq-question:hover {
    color: #881313;
}

.tpl23-faq-question-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.tpl23-faq-number {
    flex: 0 0 auto;
    color: #876b3a;
    font: 700 .58rem/1 'IBM Plex Mono', monospace;
    letter-spacing: 1px;
}

.tpl23-faq-label {
    min-width: 0;
}

.tpl23-faq-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #17253a;
    transition: transform .25s ease, color .2s ease;
}

.tpl23-faq-icon i {
    font-size: .65rem;
}

.tpl23-faq-item.is-open .tpl23-faq-icon {
    transform: rotate(180deg);
    color: #881313;
}

.tpl23-faq-answer[hidden] {
    display: none;
}

.tpl23-faq-answer-inner {
    padding: 0 42px 18px 50px;
    color: #263348;
    font: .91rem/1.7 'Source Serif 4', Georgia, serif;
}

.tpl23-faq-answer-inner p {
    margin: 0 0 10px;
}

.tpl23-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.tpl23-faq-answer-inner ul,
.tpl23-faq-answer-inner ol {
    margin: 8px 0;
    padding-left: 22px;
}

.tpl23-faq-answer-inner li {
    margin-bottom: 4px;
}

.tpl23-faq-answer-inner strong {
    color: #17253a;
}

.tpl23-faq-answer-inner a {
    color: #881313;
    font-weight: 700;
}

/* ============================================================
   MULTIMEDIA LATERAL
   Se muestra SIEMPRE para que el editor tenga un espacio visible
   aunque todavía no se haya cargado una imagen o video.
   ============================================================ */
.tpl23-media-column {
    width: 365px;
    min-width: 0;
    position: sticky;
    top: 24px;
}

.tpl23-media-card {
    width: 100%;
}

.tpl23-media-frame {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    border: 1px solid #d4cba1;
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 5px 16px rgba(15, 23, 42, .045);
}

.tpl23-image,
.tpl23-video,
.tpl23-media-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.tpl23-image {
    object-fit: cover;
    object-position: center;
}

.tpl23-video {
    object-fit: contain;
    background: #111;
}

.tpl23-media-frame iframe {
    background: #111;
}

/* Estado vacío: espacio limpio, no una caja gris moderna */
.tpl23-media-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #b9a97d;
    background: rgba(243, 239, 230, .32);
    font: 600 .55rem/1.4 'IBM Plex Mono', monospace;
    letter-spacing: 1.6px;
    text-align: center;
}

.tpl23-media-empty i {
    font-size: 1.7rem;
    opacity: .7;
}

.tpl23-media-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 9px;
    color: #687386;
    text-align: center;
    font: 500 .53rem/1.4 'IBM Plex Mono', monospace;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.tpl23-media-caption span {
    width: 24px;
    height: 1px;
    background: #876b3a;
    flex: 0 0 auto;
}

/* ESTADO SIN PREGUNTAS */
.tpl23-empty {
    padding: 42px 24px;
    border: 1px dashed #bda978;
    text-align: center;
    background: rgba(255, 255, 255, .18);
}

.tpl23-empty i {
    color: #876b3a;
    font-size: 1.8rem;
}

.tpl23-empty h2 {
    margin: 11px 0 5px;
    color: #1b2d46;
    font: 700 1.15rem 'Oswald', sans-serif;
    text-transform: uppercase;
}

.tpl23-empty p {
    margin: 0;
    color: #64748b;
    font: .86rem/1.5 'Source Serif 4', Georgia, serif;
}

/* DECORACIÓN INSTITUCIONAL */
.tpl23-footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.tpl23-footer-decoration span {
    width: 38px;
    height: 1px;
    background: #d2c29e;
}

.tpl23-footer-decoration i {
    color: #1b2d46;
    font-size: .48rem;
    transform: rotate(45deg);
}

/* TABLET */
@media (max-width: 1050px) {
    .tpl23-layout {
        grid-template-columns: minmax(0, 1fr) 315px;
        gap: 24px;
    }

    .tpl23-media-column {
        width: 315px;
    }

    .tpl23-media-frame {
        height: 540px;
    }
}

/* MÓVIL */
@media (max-width: 780px) {
    .tpl23-layout {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .tpl23-media-column {
        position: static;
        order: 2;
        width: 100%;
    }

    .tpl23-media-frame {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .tpl23-faq-list {
        gap: 9px;
    }

    .tpl23-faq-question {
        min-height: 56px;
        padding: 0 13px 0 15px;
        font-size: .84rem;
    }

    .tpl23-faq-answer-inner {
        padding: 0 16px 17px 39px;
        font-size: .88rem;
    }
}

@media (max-width: 480px) {
    .tpl23-title {
        font-size: 1.9rem;
    }

    .tpl23-kicker {
        font-size: .62rem;
        letter-spacing: 1.5px;
    }

    .tpl23-intro {
        font-size: .88rem;
    }

    .tpl23-faq-question {
        min-height: 53px;
        font-size: .79rem;
    }

    .tpl23-faq-question-main {
        gap: 9px;
    }

    .tpl23-faq-answer-inner {
        padding-left: 31px;
        padding-right: 12px;
        font-size: .85rem;
    }
}


/* ==========================================================
   TPL 24 - DIRECTORIO INSTITUCIONAL
   No define fondo global propio para respetar .inst-main.
   ========================================================== */

.tpl24-main {
    width: 100%;
    padding: 16px 0 38px;
}

.tpl24-wrapper {
    width: min(1170px, calc(100% - 34px));
    margin: 0 auto;
}

.tpl24-title-box {
    width: min(1200px, 100%);
    margin: 0 auto 30px;
    padding: 15px 24px 16px;
    background: #034d08;
    border-top: 1px solid rgba(255,255,255,.18);
    box-sizing: border-box;
}

.tpl24-title-box h1 {
    margin: 0;
    text-align: center;
    color: #fff;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: .2px;
}

.tpl24-table-shell {
    width: 100%;
    border: 1px solid #d5d5d5;
    background: #fff;
    box-sizing: border-box;
}

.tpl24-table-scroll {
    width: 100%;
    max-height: 100%;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #8d8d8d #f4f4f4;
}

.tpl24-table-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.tpl24-table-scroll::-webkit-scrollbar-track {
    background: #f4f4f4;
}

.tpl24-table-scroll::-webkit-scrollbar-thumb {
    background: #8d8d8d;
    border-radius: 8px;
}

.tpl24-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.tpl24-table th,
.tpl24-table td {
    border-right: 1px solid #d3d3d3;
    border-bottom: 1px solid #d3d3d3;
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
}

.tpl24-table th:last-child,
.tpl24-table td:last-child {
    border-right: 0;
}

.tpl24-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #a90000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .93rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.tpl24-table th:nth-child(1) { width: 15%; }
.tpl24-table th:nth-child(2) { width: 15%; }
.tpl24-table th:nth-child(3) { width: 11%; }
.tpl24-table th:nth-child(4) { width: 12%; }
.tpl24-table th:nth-child(5) { width: 14%; }
.tpl24-table th:nth-child(6) { width: 33%; }

.tpl24-table td {
    min-height: 74px;
    color: #005b12;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .91rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tpl24-table tbody tr:hover td {
    background: #fafafa;
}

.tpl24-table td:nth-child(2) {
    color: #005b12;
}

.tpl24-table td:nth-child(6) a {
    color: #007313;
    text-decoration: none;
}

.tpl24-table td:nth-child(6) a:hover {
    text-decoration: underline;
}

.tpl24-empty-row td {
    padding: 34px 15px;
    color: #64748b;
    font-style: italic;
}

@media (max-width: 800px) {
    .tpl24-main {
        padding-top: 12px;
    }

    .tpl24-wrapper {
        width: calc(100% - 18px);
    }

    .tpl24-title-box {
        margin-bottom: 18px;
        padding: 13px 12px;
    }

    .tpl24-title-box h1 {
        font-size: 1.55rem;
    }

    .tpl24-table-scroll {
        max-height: 100%;
    }

    .tpl24-table {
        min-width: 930px;
    }
}


/* ============================================================
   TPL25 - MESA DE PARTES 2025
   Compatible con institucional.css + plantillas_extra.css

   Fuentes utilizadas por el sistema:
   - Oswald
   - Lato
   - Source Serif 4
   - IBM Plex Mono

   No modifica .inst-main ni define un fondo institucional nuevo.
   ============================================================ */


/* ============================================================
   CONTENEDOR
   ============================================================ */

.tpl25-container {
    box-sizing: border-box;
}

.tpl25-container *,
.tpl25-container *::before,
.tpl25-container *::after {
    box-sizing: border-box;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */

.tpl25-breadcrumb {
    margin-bottom: 22px;
    gap: 10px;
    flex-wrap: wrap;
}

.tpl25-breadcrumb-mark {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--border-gold-strong, #876B3A);
    flex: 0 0 auto;
}

.tpl25-breadcrumb-separator {
    color: var(--border-gold-strong, #876B3A);
    font-weight: 700;
}


/* ============================================================
   ENCABEZADO
   ============================================================ */

.tpl25-header {
    margin-bottom: 30px;
    max-width: 100%;
}

.tpl25-header-kicker {
    margin-bottom: 8px;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: .68rem;
    line-height: 1.4;
    letter-spacing: .20em;
    color: var(--text-gray, #888);
    text-transform: uppercase;
}

.tpl25-page-title {
    margin: 0;
    font-family: "Oswald", system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .015em;
    color: var(--text-dark, #111);
    text-transform: uppercase;
}

.tpl25-title-rule {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 17px;
}

.tpl25-title-rule::before {
    content: "";
    width: 22px;
    height: 3px;
    background: var(--border-gold-strong, #876B3A);
    flex: 0 0 auto;
}

.tpl25-title-rule span {
    width: 100%;
    max-width: 100px;
    height: 1px;
    background: var(--border-gold-light, #d4cba1);
}


/* ============================================================
   BLOQUE PRINCIPAL
   ============================================================ */

.tpl25-hero {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(330px, .83fr);
    background: #fff;
    border: 1px solid rgba(135, 107, 58, .20);
    box-shadow:
        0 18px 45px rgba(26, 34, 56, .10),
        0 3px 10px rgba(0, 0, 0, .04);
    overflow: hidden;
}


/* ============================================================
   IMAGEN
   ============================================================ */

.tpl25-hero-media {
    position: relative;
    min-width: 0;
    min-height: 500px;
    overflow: hidden;
    background: #172235;
}

.tpl25-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .7s ease;
}

.tpl25-hero:hover .tpl25-hero-image {
    transform: scale(1.025);
}

.tpl25-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(9, 20, 36, .02) 20%,
            rgba(9, 20, 36, .18) 48%,
            rgba(9, 20, 36, .88) 100%
        );
}

.tpl25-image-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 30px;
    background:
        linear-gradient(135deg, #1a2238, #2c4a6e);
    color: rgba(255,255,255,.72);
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: .72rem;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

.tpl25-image-placeholder i {
    font-size: 3rem;
    color: var(--border-gold-light, #d4cba1);
}


/* ============================================================
   TEXTO SOBRE IMAGEN
   ============================================================ */

.tpl25-hero-copy {
    position: absolute;
    z-index: 2;
    left: clamp(28px, 5vw, 58px);
    right: 35px;
    bottom: 46px;
}

.tpl25-hero-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 13px;
    padding: 6px 10px;
    border-left: 3px solid var(--border-gold-strong, #876B3A);
    background: rgba(15, 24, 39, .65);
    color: #eee7d7;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.tpl25-institution {
    max-width: 900px;
    color: #f4d98b;
    font-family: "Oswald", system-ui, sans-serif;
    font-size: clamp(1.65rem, 3.1vw, 2.45rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.tpl25-subtitle {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 850px;
    margin-top: 15px;
    color: #fff;
    font-family: "Oswald", system-ui, sans-serif;
    font-size: clamp(.95rem, 1.6vw, 1.25rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .025em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.tpl25-subtitle-line {
    display: block;
    width: 4px;
    min-width: 4px;
    min-height: 31px;
    margin-top: 1px;
    background: #a71818;
}


/* ============================================================
   TARJETA DE INFORMACIÓN
   ============================================================ */

.tpl25-info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(30px, 4vw, 48px);
    background: #fff;
}

.tpl25-info-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.tpl25-heading-line {
    width: 31px;
    height: 2px;
    background: var(--border-gold-strong, #876B3A);
    flex: 0 0 auto;
}

.tpl25-heading-label {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: #881313;
    text-transform: uppercase;
}

.tpl25-info-list {
    display: flex;
    flex-direction: column;
}

.tpl25-info-item {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e7e1d5;
}

.tpl25-info-item:last-child {
    margin-bottom: 0;
}

.tpl25-info-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 3px;
    color: #a71818;
    font-size: 1rem;
}

.tpl25-pdf-icon {
    color: #a71818;
}

.tpl25-info-content {
    min-width: 0;
}

.tpl25-info-label {
    display: block;
    margin-bottom: 5px;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: .60rem;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.4;
    color: #8a8a84;
    text-transform: uppercase;
}

.tpl25-info-value {
    display: block;
    color: #1a2238;
    font-family: "Oswald", system-ui, sans-serif;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.42;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.tpl25-info-link {
    text-decoration: none;
    transition: color .2s ease;
}

.tpl25-info-link:hover {
    color: #881313;
}

.tpl25-external-icon {
    margin-left: 5px;
    font-size: .68rem;
    color: var(--border-gold-strong, #876B3A);
}


/* ============================================================
   HORARIO
   ============================================================ */

.tpl25-schedule {
    margin-top: auto;
    padding: 21px 0 0;
}

.tpl25-schedule-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: #881313;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.tpl25-schedule-title i {
    color: var(--border-gold-strong, #876B3A);
}

.tpl25-schedule-text {
    color: #1a2238;
    font-family: "Oswald", system-ui, sans-serif;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
}


/* ============================================================
   BOTÓN FUT
   ============================================================ */

.tpl25-action {
    margin-top: 26px;
}

.tpl25-button {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 54px;
    padding: 0 15px;
    overflow: hidden;
    color: #fff !important;
    background: #a71818;
    border: 1px solid #a71818;
    box-shadow: 0 9px 22px rgba(135, 19, 19, .18);
    font-family: "Oswald", system-ui, sans-serif;
    font-size: .93rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.tpl25-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255,255,255,.10) 45%,
        transparent 70%
    );
    transform: translateX(-110%);
    transition: transform .5s ease;
}

.tpl25-button:hover {
    background: #881313;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 13px 27px rgba(135, 19, 19, .25);
}

.tpl25-button:hover::before {
    transform: translateX(110%);
}

.tpl25-button-icon,
.tpl25-button-arrow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpl25-button-icon {
    width: 34px;
    height: 34px;
    color: #f4d98b;
    border-right: 1px solid rgba(255,255,255,.22);
}

.tpl25-button-text {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tpl25-button-arrow {
    color: #f4d98b;
    font-size: .75rem;
}


/* ============================================================
   DECORACIÓN FINAL
   ============================================================ */

.tpl25-footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

.tpl25-footer-decoration span {
    display: block;
    width: min(230px, 28%);
    height: 1px;
    background: var(--border-gold-light, #d4cba1);
}

.tpl25-footer-decoration i {
    color: var(--border-gold-strong, #876B3A);
    font-size: .85rem;
    transform: rotate(45deg);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .tpl25-hero {
        grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
    }

    .tpl25-info-card {
        padding: 30px;
    }

    .tpl25-institution {
        font-size: 1.85rem;
    }
}


/* ============================================================
   MÓVIL
   ============================================================ */

@media (max-width: 850px) {

    .tpl25-header {
        margin-bottom: 24px;
    }

    .tpl25-page-title {
        font-size: 2rem;
    }

    .tpl25-hero {
        display: flex;
        flex-direction: column;
    }

    .tpl25-hero-media {
        min-height: 470px;
    }

    .tpl25-info-card {
        padding: 30px 24px 28px;
    }

    .tpl25-hero-copy {
        left: 25px;
        right: 25px;
        bottom: 30px;
    }

    .tpl25-institution {
        font-size: 1.65rem;
    }

    .tpl25-subtitle {
        font-size: .95rem;
    }
}


@media (max-width: 520px) {

    .tpl25-page-title {
        font-size: 1.75rem;
    }

    .tpl25-header-kicker {
        font-size: .58rem;
        letter-spacing: .13em;
    }

    .tpl25-hero-media {
        min-height: 390px;
    }

    .tpl25-hero-copy {
        left: 18px;
        right: 18px;
        bottom: 22px;
    }

    .tpl25-hero-label {
        font-size: .54rem;
        letter-spacing: .10em;
    }

    .tpl25-institution {
        font-size: 1.35rem;
        line-height: 1.08;
    }

    .tpl25-subtitle {
        gap: 10px;
        margin-top: 12px;
        font-size: .82rem;
    }

    .tpl25-subtitle-line {
        min-width: 3px;
        width: 3px;
        min-height: 26px;
    }

    .tpl25-info-card {
        padding: 25px 18px 24px;
    }

    .tpl25-info-item {
        grid-template-columns: 23px minmax(0, 1fr);
        gap: 10px;
    }

    .tpl25-info-value {
        font-size: .90rem;
    }

    .tpl25-button {
        grid-template-columns: 34px minmax(0, 1fr) 20px;
        padding: 0 10px;
        font-size: .78rem;
    }

    .tpl25-footer-decoration {
        gap: 12px;
        margin-top: 30px;
    }

    .tpl25-footer-decoration span {
        width: 25%;
    }
}

/* =========================================================
   TPL20 - VISOR PDF CMFB
   Mantener separado del resto de plantillas.
   No modifica la lógica ni el cifrado del TPL20.
   ========================================================= */
.t20-pdf-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-sizing: border-box;
    background: rgba(45, 4, 12, 0.94);
    backdrop-filter: blur(7px);
}

.t20-pdf-window {
    width: min(1400px, 96vw);
    height: min(94vh, 950px);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f3efe6;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 14px;
    box-shadow: 0 28px 70px rgba(0,0,0,.45);
}

.t20-pdf-header {
    flex: 0 0 auto;
    min-height: 72px;
    padding: 10px 16px 10px 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, #7b1020 0%, #96152a 55%, #6b0c1a 100%);
    color: #fff;
}

.t20-pdf-title-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.t20-pdf-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 1.15rem;
}

.t20-pdf-kicker {
    margin-bottom: 2px;
    font-family: "IBM Plex Mono", monospace;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: rgba(255,255,255,.72);
    text-transform: uppercase;
}

.t20-pdf-title {
    max-width: calc(96vw - 180px);
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.t20-pdf-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #7b1020;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.t20-pdf-close:hover {
    background: #f3efe6;
    color: #560814;
    transform: scale(1.05);
}

.t20-pdf-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #f3efe6;
}

.t20-pdf-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.t20-pdf-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f3efe6;
    color: #7b1020;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    pointer-events: none;
}

.t20-pdf-loader {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(123,16,32,.16);
    border-top-color: #7b1020;
    border-radius: 50%;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .t20-pdf-modal { padding: 8px; }
    .t20-pdf-window {
        width: 100%;
        height: 96vh;
        min-height: 0;
        border-radius: 10px;
    }
    .t20-pdf-header { min-height: 64px; padding: 9px 10px 9px 12px; }
    .t20-pdf-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .t20-pdf-title { max-width: calc(100vw - 135px); font-size: .88rem; }
    .t20-pdf-kicker { font-size: .55rem; }
    .t20-pdf-close { width: 36px; height: 36px; flex-basis: 36px; }
}

/* ==========================================================
   TPL4 · INFORMACIÓN Y RESULTADOS DE ADMISIÓN
   ========================================================== */
.tpl4-admission-info{width:100%;margin:0 0 60px;padding:28px;box-sizing:border-box;background:#d9d4d5;border:1px solid rgba(128,104,60,.22);box-shadow:0 12px 30px rgba(15,23,42,.07)}
.tpl4-admission-info-inner{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:42px;align-items:center}
.tpl4-admission-info-details{display:flex;flex-direction:column;align-items:center;text-align:center;padding:8px 10px}
.tpl4-admission-info-kicker{display:flex;align-items:center;justify-content:center;gap:9px;margin-bottom:12px;color:#7b252c;font-family:'Lato',sans-serif;font-size:1rem;line-height:1.4}
.tpl4-admission-info-kicker i,.tpl4-admission-info-line i,.tpl4-admission-info-address-title i{color:#7b252c}
.tpl4-admission-info-line{display:flex;align-items:center;justify-content:center;gap:9px;margin-bottom:8px;color:#5b2027;font-family:'Lato',sans-serif;font-size:.96rem;line-height:1.45;text-decoration:none;transition:color .2s}
.tpl4-admission-info-line:hover{color:#304d6d}
.tpl4-admission-info-hours{margin:8px 0 22px;color:#304d6d;font-family:'Oswald',sans-serif;font-size:1.12rem;font-weight:700;line-height:1.35;text-transform:uppercase;letter-spacing:.02em}
.tpl4-admission-info-address{width:100%;margin-bottom:22px}
.tpl4-admission-info-address-title{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:8px;color:#7b252c;font-family:'Lato',sans-serif;font-size:.96rem;font-weight:700}
.tpl4-admission-info-address-text{color:#5b3034;font-family:'Source Serif 4',Georgia,serif;font-size:.98rem;line-height:1.6}
.tpl4-admission-info-actions{display:flex;flex-direction:column;width:min(100%,395px);gap:10px}
.tpl4-admission-info-btn{display:flex;align-items:center;justify-content:center;min-height:43px;padding:10px 18px;box-sizing:border-box;border-radius:3px;font-family:'Lato',sans-serif;font-size:.86rem;font-weight:900;text-align:center;text-transform:uppercase;text-decoration:none;letter-spacing:.02em;transition:transform .2s,box-shadow .2s,background .2s}
.tpl4-admission-info-btn:hover{transform:translateY(-2px)}
.tpl4-admission-info-btn--primary{background:#a90f12;color:#fff;border:1px solid #8d0d10;box-shadow:0 5px 14px rgba(123,37,44,.18)}
.tpl4-admission-info-btn--primary:hover{background:#7b252c;color:#fff}
.tpl4-admission-info-btn--secondary{background:transparent;color:#285b38;border:1px solid #285b38}
.tpl4-admission-info-btn--secondary:hover{background:#285b38;color:#fff}
.tpl4-admission-info-visual{min-width:0}
.tpl4-admission-info-visual img,.tpl4-admission-info-placeholder{width:100%;aspect-ratio:16/9;display:block;object-fit:cover;border:1px solid rgba(128,104,60,.22);background:#111827}
.tpl4-admission-info-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#cbd5e1;font-family:'Lato',sans-serif;font-size:.82rem;text-align:center}
.tpl4-admission-info-placeholder i{font-size:2rem;color:#80683c}
.tpl4-admission-info-visual h2{margin:18px 0 0;font-family:'Oswald',sans-serif;font-size:clamp(1.45rem,2.2vw,2.05rem);font-weight:700;line-height:1.15;text-align:center;text-transform:uppercase}
@media(max-width:850px){.tpl4-admission-info{padding:22px 18px}.tpl4-admission-info-inner{grid-template-columns:1fr;gap:28px}.tpl4-admission-info-details{order:2}.tpl4-admission-info-visual{order:1}}
@media(max-width:520px){.tpl4-admission-info{margin-bottom:40px;padding:16px 12px}.tpl4-admission-info-kicker,.tpl4-admission-info-line{font-size:.88rem}.tpl4-admission-info-hours{font-size:1rem}.tpl4-admission-info-address-text{font-size:.9rem}.tpl4-admission-info-btn{font-size:.78rem;min-height:40px;padding:9px 12px}}



/* ============================================================
   TPL27 - DETALLE DE EVENTO CMFB
   ============================================================ */

.tpl27-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 0 40px;
}

.tpl27-breadcrumb {
    margin: 0 0 22px;
    color: #8c7a60;
    font-family: "Courier New", monospace;
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tpl27-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
    align-items: start;
}

.tpl27-main {
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    padding: 34px 38px;
    border-top: 4px solid #a8874a;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.tpl27-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #a8874a;
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
}

.tpl27-back:hover {
    color: #6f0b14;
}

.tpl27-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tpl27-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a8874a;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tpl27-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 6px;
    background: #6f0b14;
    color: #fff;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tpl27-title {
    margin: 0 0 24px;
    color: #13233b;
    font-family: "Oswald", sans-serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.06;
    font-weight: 900;
    text-transform: uppercase;
}

.tpl27-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.tpl27-meta-card {
    padding: 16px 18px;
    border: 1px solid #e4dac5;
    border-radius: 12px;
    background: #f8f5ee;
}

.tpl27-meta-card span {
    display: block;
    margin-bottom: 7px;
    color: #6f0b14;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .11em;
}

.tpl27-meta-card strong {
    display: block;
    color: #172033;
    font-size: .95rem;
    line-height: 1.5;
}

.tpl27-meta-card i {
    margin-right: 5px;
    color: #a8874a;
}

.tpl27-content-card {
    border: 1px solid #e8e1d4;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff 0%, #fbfaf7 100%);
    box-shadow: 0 8px 24px rgba(26, 34, 56, .055);
    overflow: hidden;
}

.tpl27-content-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid #ece6da;
}

.tpl27-content-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #172033;
    color: #fff;
    font-size: 19px;
}

.tpl27-content-kicker {
    display: block;
    margin-bottom: 2px;
    color: #a8874a;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tpl27-content-head h2 {
    margin: 0;
    color: #172033;
    font-family: "Oswald", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.tpl27-rich-content {
    padding: 24px 26px 28px;
    color: #334155;
    font-size: .94rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.tpl27-rich-content > *:first-child {
    margin-top: 0;
}

.tpl27-rich-content > *:last-child {
    margin-bottom: 0;
}

.tpl27-rich-content p {
    margin: 0 0 14px;
}

.tpl27-rich-content h1,
.tpl27-rich-content h2,
.tpl27-rich-content h3,
.tpl27-rich-content h4,
.tpl27-rich-content h5,
.tpl27-rich-content h6 {
    margin: 18px 0 9px;
    color: #13233b;
    font-family: "Oswald", sans-serif;
    line-height: 1.25;
}

.tpl27-rich-content ul,
.tpl27-rich-content ol {
    margin: 10px 0 16px 22px;
}

.tpl27-rich-content li {
    margin-bottom: 5px;
}

.tpl27-rich-content a {
    color: #7b1020;
    font-weight: 800;
    text-decoration: underline;
}

.tpl27-rich-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 18px 0;
    border-radius: 10px;
}

.tpl27-rich-content iframe,
.tpl27-rich-content video {
    width: 100%;
    max-width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 10px;
    margin: 18px 0;
}

.tpl27-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.tpl27-rich-content th,
.tpl27-rich-content td {
    padding: 9px 10px;
    border: 1px solid #ddd6c8;
    vertical-align: top;
}

.tpl27-rich-content th {
    background: #7b1020;
    color: #fff;
}

.tpl27-empty-content {
    padding: 36px 26px;
    color: #64748b;
    text-align: center;
}

.tpl27-empty-content i {
    display: block;
    margin-bottom: 10px;
    color: #a8874a;
    font-size: 1.8rem;
}

.tpl27-empty-content p {
    margin: 0;
}

.tpl27-actions {
    display: flex;
    margin-top: 22px;
}

.tpl27-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 8px;
    background: #0f1a27;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease;
}

.tpl27-button:hover {
    background: #6f0b14;
    color: #fff;
    transform: translateY(-1px);
}

.tpl27-sidebar {
    min-width: 0;
}

.tpl27-widget {
    margin-bottom: 26px;
}

.tpl27-event-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.tpl27-event-link:hover {
    color: inherit;
}

.tpl27-event-link .widget-content-white {
    transition: transform .18s ease, box-shadow .18s ease;
}

.tpl27-event-link:hover .widget-content-white {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.tpl27-event-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: #7b1020;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tpl27-convenio-empty {
    display: grid;
    place-items: center;
    min-height: 130px;
    color: #a8874a;
    font-size: 2rem;
}

.tpl27-convenio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    padding: 9px 14px;
    border-radius: 7px;
    background: #262626;
    color: #fff;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 800;
}

.tpl27-convenio-button:hover {
    color: #fff;
    background: #6f0b14;
}

@media (max-width: 1020px) {
    .tpl27-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .tpl27-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .tpl27-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 720px) {
    .tpl27-main {
        padding: 26px 20px;
    }

    .tpl27-meta {
        grid-template-columns: 1fr;
    }

    .tpl27-sidebar {
        grid-template-columns: 1fr;
    }

    .tpl27-title {
        font-size: 2rem;
    }

    .tpl27-rich-content {
        padding: 20px;
    }

    .tpl27-rich-content iframe,
    .tpl27-rich-content video {
        min-height: 230px;
    }
}
