/* ========================================= */
/* 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; }

/* 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: 800px; }
.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: 0.75rem; 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: #1a2238; 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: 1100px; 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-bottom: 30px; font-weight: 700; letter-spacing: -0.5px; }

.tpl17-filter-box { background: #fff; padding: 25px; border-radius: 12px; border: 1px solid #e5e7eb; margin-bottom: 40px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: center; }
.tpl17-select { padding: 12px 20px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; font-weight: bold; color: #0f172a; background: #f8fafc; outline: none; cursor: pointer; min-width: 200px; }
.tpl17-btn-buscar { background: #2C4A6E; color: #fff; border: none; padding: 12px 25px; border-radius: 8px; font-weight: bold; cursor: pointer; text-transform: uppercase; font-family: 'Oswald', sans-serif; letter-spacing: 1px; transition: background 0.2s; }
.tpl17-btn-buscar:hover { background: #1a2f4c; }

.tpl17-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.tpl17-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; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.tpl17-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(44, 74, 110, 0.15); border-color: #876B3A; }
.tpl17-card-img { width: 100%; height: 240px; background-size: cover; background-position: center; border-bottom: 3px solid #876B3A; }
.tpl17-card-body { padding: 25px; background: #162235; color: #fff; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.tpl17-card-title { font-family: 'Oswald', system-ui, sans-serif; font-size: 1.3rem; margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.tpl17-card-desc { font-size: 0.9rem; color: #cbd5e1; line-height: 1.5; margin: 0 0 15px 0; }
.tpl17-card-footer { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: #876B3A; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }

/* ========================================= */
/* 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; }

