/*!
Theme Name: Kadence
Theme URI: https://www.artech.cl/
Author: Artech SpA.
Author URI: https://www.artech.cl/
Description: Artech Corporate Theme for institutions
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ARtech
Requires at least: 5.0
Tested up to: 5.7
Tags: translation-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce
Requires PHP: 7.0

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share
what you've learned with others.
*/
/*--------------------------------------------------CARTELERA DE CONCURSOS--------------------------------------------*/
.grid-eventos-ce {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.card-evento-ce {
    width: 350px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
}

.card-evento-ce:hover {
    transform: translateY(-5px);
}

.card-img-ce {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-etiqueta-ce {
    background-color: #528F88;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin: 8px auto 0;
    border-radius: 12px;
    max-width: 90%;
}

.card-contenido-ce {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-titulo-ce {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.card-fechas-ce p {
    margin: 2px 0 !important;
    line-height: 1.4;
    font-size: 14px;
}

.card-vermas-ce {
    margin-top: 15px;
}

.card-vermas-ce a {
    text-decoration: none;
    font-weight: bold;
    color: #000;
    border: 1px solid #000;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.card-vermas-ce a:hover {
    background-color: #083854;
    color: #fff;
    border-color: #083854;
}

/* FORMULARIO DE BÚSQUEDA */
.form-busqueda-ce {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 24px;
}

/* Contenedor de cada campo */
.campo-busqueda {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    min-width: 150px;
}

/* Etiquetas */
.campo-busqueda label {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    min-height: 16px;
}

/* Inputs y selects uniformes */
.campo-busqueda input[type="text"],
.campo-busqueda input[type="date"],
.campo-busqueda select {
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    width: 250px;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Botón buscar */
.form-busqueda-ce button {
    background-color: #528F88;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    height: 42px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.form-busqueda-ce button:hover {
    background-color: #083854;
}

.fila-filtros-superiores,
.fila-fechas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.fila-fechas .campo-busqueda {
    min-width: 180px;
}

/* Convocatorias cerradas, en evaluación, anuladas, etc. */
.card-convocatoria-ce.cerrada .card-img-ce,
.card-convocatoria-ce.adjudicada .card-img-ce,
.card-convocatoria-ce.evaluacion .card-img-ce,
.card-convocatoria-ce.resultados .card-img-ce,
.card-convocatoria-ce.anulado .card-img-ce,
.card-convocatoria-ce.preparacion .card-img-ce,
.card-convocatoria-ce.suspendido .card-img-ce {
    filter: grayscale(100%) brightness(70%);
    opacity: 0.7;
}

/*----------------------------------------------FIN CARTELERA DE CONCURSOS--------------------------------------------*/

/*--------------------------------------------------CARTELERA DE EVENTOS----------------------------------------------*/

/* ==== CARTELERA DE EVENTOS ==== */
.grid-ev {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.card-ev {
    width: 350px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
    position: relative;       /* importante para botón */
    min-height: 300px;        /* ajusta al alto que tienen los concursos */
}

.card-ev:hover {
    transform: translateY(-5px);
}

.card-img-ev {
    width: 100%;
    object-fit: contain;
    aspect-ratio: 7 / 3;
    background-color: #f5f5f5;
}


.contenido-ev {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}

.titulo-ev {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
    color: #000000;
}

.info-ev {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 4px;
}

.info-ev p {
    font-size: 14px;
    margin: 0 !important;
    line-height: 1.3;
    color: #003366;
    display: flex;
    align-items: center;
}

.icono-ev {
    margin-right: 6px;
    font-size: 14px;
    line-height: 1;
    min-width: 16px;
    text-align: center;
}

.vermas-ev {
    text-align: center;
    margin-top: 12px;
}

.btn-vermas-ev {
    text-decoration: none;
    font-weight: bold;
    color: #000000;
    border: 1px solid #000000;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.btn-vermas-ev:hover {
    background-color: #083854;
    color: #ffffff;
    border-color: #083854;
}

/* Filtros */
.fila-filtros-unificada {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 8px;
}

.fila-filtros-unificada .campo-busqueda {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.fila-boton-buscar {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.fila-boton-buscar button {
    background-color: #528F88;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fila-boton-buscar button:hover {
    background-color: #083854;
}

/* Datos con etiqueta + valor */
.fecha-ev,
.hora-ev,
.lugar-ev {
    font-size: 14px;
    margin: 1px 0;
    line-height: 1.3;
    color: #000000;
    display: flex;
    align-items: center;
}

.fecha-ev .icono-ev,
.hora-ev .icono-ev,
.lugar-ev .icono-ev {
    margin-right: 6px;
    font-size: 14px;
    min-width: 16px;
    text-align: center;
}

.datos-ev {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 4px;
}

.dato-ev {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px;
    line-height: 1.3; /* más compacto */
    color: #333333;
}

.dato-ev .label-ev {
    font-weight: 700;
    color: #083854;
    margin-right: 4px;
}

.dato-ev .valor-ev {
    font-weight: 400;
    color: #333333;
}

.dato-ev .label-ev,
.dato-ev .valor-ev {
    display: inline;
}

/* ==== EVENTOS EN INICIO ==== */
.grid-eventos-inicio {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-evento-fecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    border-top: 4px solid #083854;
    border-radius: 4px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    text-align: center;
}

.card-evento-fecha .fecha-dia {
    font-size: 18px;
    font-weight: bold;
    color: #083854;
    line-height: 1;
}

.card-evento-fecha .fecha-mes {
    font-size: 11px;
    text-transform: uppercase;
    color: #333333;
    line-height: 1;
}

.card-evento-detalle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-evento-categoria {
    display: inline-block;
    background-color: #083854;
    color: #ffffff;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    width: fit-content;
}

.card-evento-titulo {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    line-height: 1.3;
}

.card-evento-info {
    font-size: 13px;
    color: #333333;
}

.card-evento-info i {
    margin-right: 5px;
    color: #083854;
}

.card-evento-info a {
    color: #083854;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .card-evento-agenda {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-evento-fecha {
        flex-direction: row;
        gap: 4px;
        width: auto;
        height: auto;
        padding: 6px 10px;
    }
}
/*----------------------------------------------FIN CARTELERA DE EVENTOS----------------------------------------------*/
/*--------------------------------------------------CARTA GANTT-------------------------------------------------------*/

/* === Tabla base === */
.gantt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    margin-bottom: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow-x: auto;
    table-layout: fixed;
}

/* === Celdas generales === */
.gantt-table th,
.gantt-table td {
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
    padding: 10px 6px;
    line-height: 1.2;
    height: 40px;
}

/* === Encabezado (meses) === */
.gantt-table thead th {
    background-color: #888888;
    color: white;
    font-weight: bold;
    text-align: center;
    border-right: 2px solid #ffffff;
    letter-spacing: 0.5px;
    border-top: 8px solid transparent;
    border-radius: 6px;
}

/* === Encabezado: primera celda ("Concurso") === */
.gantt-table thead th:first-child {
    background-color: #888888;
    color: white;
    font-size: 15px;
    text-align: left;
    border-radius: 10px 0 0 0;
    border-right: none;
}

.gantt-table thead th.th-concurso.direcciondeinnovacion {
    background-color: #5D9BD4;
}

.gantt-table thead th.th-concurso.direcciondeinvestigacionycreacionartistica {
    background-color: #75C7D0;
}

.gantt-table thead th.th-concurso.direcciondepostgrado {
    background-color: #324D75;
}
/* === Colores por dirección === */
.gantt-table td.activo-direcciondeinnovacion {
    background-color: #5D9BD4;
}
.gantt-table td.activo-direcciondeinvestigacionycreacionartistica {
    background-color: #75C7D0;
}
.gantt-table td.activo-direcciondepostgrado {
    background-color: #324D75;
}

/* === Encabezado: última celda para redondear extremo derecho === */
.gantt-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

/* === Primera columna (nombre del concurso) === */
.gantt-table th:first-child,
.gantt-table td:first-child {
    font-weight: 500;
    text-align: left;
    background-color: #f5f5f5;
    padding-left: 10px;
    white-space: normal;
    width: 25%;
}

/* === Celdas activas (bloques de meses) === */
.gantt-table td[class^="activo"] {
    color: white;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    border-left: none;
    border-right: none;
}

/* Redondeo de bordes del bloque activo */
.gantt-table td[class^="activo"]:first-of-type {
    border-left: 1px solid #ccc;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.gantt-table td[class^="activo"]:last-of-type {
    border-right: 1px solid #ccc;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* ------ Texto "VENTANILLA ABIERTA" ------ */
.gantt-table td:has(span.ventanilla) {
    white-space: normal;
    overflow-wrap: break-word;
}
.gantt-table td span.ventanilla {
    white-space: nowrap;
    font-weight: bold;
    display: inline-block;
}

.gantt-table-wrapper {
    margin-bottom: 30px;
}

/*------ Leyenda ------ */
.leyenda-gantt {
    margin-top: 24px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.leyenda-gantt .color {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 4px;
}

@media (min-width: 1024px) {
    .gantt-table th:first-child,
    .gantt-table td:first-child {
        width: 500px;
        min-width: 500px;
    }
}

.gantt-table td .detalle-fecha-ext {
    font-size: 11px;
    color: #e6e6e6;
    font-weight: normal;
    display: inline;
    white-space: nowrap;
    margin-left: 4px;
}

/* Dirección de Innovación */
.gantt-table tbody tr:hover td.activo-direcciondeinnovacion {
    background-color: #397bb1;
}

/* Dirección de Investigación y Creación Artística */
.gantt-table tbody tr:hover td.activo-direcciondeinvestigacionycreacionartistica {
    background-color: #4da6ac;
}

/* Dirección de Postgrado */
.gantt-table tbody tr:hover td.activo-direcciondepostgrado {
    background-color: #1f355a;
}

.leyenda-gantt-final {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    display: inline-block;
    font-size: 13px;
    color: #333;
    background-color: #f9f9f9;
    font-weight: 500;
}

.gantt-table td[colspan] {
    text-align: center;
    vertical-align: middle;
}
/*-----------------------------------------------FIN CARTA GANTT------------------------------------------------------*/

/*-----------------------------------------CONVOCATORIAS PÁGINA INICIO-------------------------------------------------*/
.contenedor-convocatorias {
    max-width: 1250px;
    margin: 0 auto;
}

.grid-convocatorias-4 {
    display: grid;
    grid-template-columns: 1fr; /* por defecto móvil */
    gap: 18px;
}

@media (min-width: 768px) {
    .grid-convocatorias-4 {
        grid-template-columns: repeat(2, 1fr); /* tablet */
    }
}

@media (min-width: 1024px) {
    .grid-convocatorias-4 {
        grid-template-columns: repeat(4, 1fr); /* escritorio */
    }
}

/* Tablet: oculta la última tarjeta → de 4 se ven 3 */
@media (max-width: 1260px) {
    .grid-convocatorias-4 .card-convocatoria-ce:last-child {
        display: none !important;
    }
}

/* Móvil: oculta las 2 últimas → de 4 se ven 2 */
@media (max-width: 767px) {
    .grid-convocatorias-4 .card-convocatoria-ce:nth-last-child(-n+2) {
        display: none !important;
    }
}

/* iPad / Tablet (768–1023px): 2 columnas, tarjetas fluidas y -2 concursos */
@media (min-width: 768px) and (max-width: 1023.98px) {
    /* Asegura 2 columnas 100% fluidas */
    .grid-convocatorias-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-items: stretch;
    }

    /* Quita el ancho fijo que rompe el grid en iPad Air */
    .grid-convocatorias-4 .card-convocatoria-ce {
        width: auto !important;
        max-width: 100% !important;
    }

    /* Opcional: imágenes consistentes dentro de la tarjeta */
    .grid-convocatorias-4 .card-convocatoria-ce .card-img-ce {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    /* Mostrar 2 menos (oculta los dos últimos elementos) */
    .grid-convocatorias-4 .card-convocatoria-ce:nth-last-child(-n+2) {
        display: none !important;
    }
}

.card-convocatoria-ce {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
}

/* Centrar tarjetas de convocatorias en móviles */
@media (max-width: 767px) {
    .grid-convocatorias-4 {
        justify-items: center; /* centra elementos en la grilla */
    }

    .grid-convocatorias-4 .card-convocatoria-ce {
        width: 100% !important;       /* ocupa todo el ancho de la columna */
        max-width: 350px;             /* ancho máximo para que no se vean exageradas */
        margin: 0 auto;               /* centra horizontalmente */
    }
}

.card-convocatoria-ce:hover {
    transform: translateY(-5px);
}

.card-etiquetas-ce {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
    margin-bottom: 4px;
}

.card-etiqueta-ce {
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1;
    margin-left: 0;
    margin-right: 0;
}
/*-----tipo concurso--------*/
.card-etiqueta-ce.tipo {
    margin-left: 0;
    margin-right: 0;
}

.card-etiqueta-ce.tipo.interno {
    background-color: #083854;
}

.card-etiqueta-ce.tipo.externo {
    background-color: #006BA4;
}
/*-----estados convocatorias--------*/
.estado-abierta {
    background-color: #75c7d0;
    color: white;
}

.estado-cerrada {
    background-color: #888888;
    color: white;
}

.estado-evaluacion {
    background-color: #265A9B;
    color: white;
}

.estado-resultados {
    background-color: #71C1BB;
    color: white;
}

.estado-anulada {
    background-color: #E94D4B;
    color: white;
}

.estado-preparacion {
    background-color: #EAA115;
    color: white;
}

.estado-suspendida {
    background-color: #7B7B7B;
    color: white;
}

/* La tarjeta debe ser posicionada para poder superponer el botón */
.card-convocatoria-ce { position: relative; }

/* Botón compacto superpuesto */
.card-detalle-compacto {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    border-radius: 16px;
    background: #3A9188;
    color: #fff;
    text-decoration: none;
    border: 0;
    opacity: 1;                 /* oculto por defecto */
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

/* Mostrar en hover/focus sin cambiar altura */
.card-convocatoria-ce:hover .card-detalle-compacto,
.card-detalle-compacto:focus {
    opacity: 1;
    transform: translateY(0);
}

.card-detalle-compacto:hover {
    background: #083854;
    color: #fff;
    opacity: 1;
    transform: translateY(0);
}

/* Variante mini-icono (si quieres reducir aún más) */
.card-detalle-compacto.mini {
    padding: 6px;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
}

/*----------------------------------------- FIN CONVOCATORIAS PÁGINA INICIO-------------------------------------------*/

/*----------------------------------------------EVENTOS PÁGINA INICIO-------------------------------------------------*/
.grid-eventos-inicio {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-left: 0;
    padding-left: 0;
}

/* Carrusel */
.carrusel-ev {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    position: relative;
    margin-left: 0;
    padding-left: 0;
}

.ev-viewport {
    overflow: hidden;
    width: 100%;
}

.ev-slider {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 16px;
}


/* ===== Eventos en móviles: solo 1 fijo, sin carrusel ===== */
@media (max-width: 600px) {
    /* Mostrar solo el primer evento y ocultar los demás */
    .ev-slider .card-evento-agenda:not(:first-child) {
        display: none !important;
    }

    /* Asegurar que el primer evento ocupe todo el ancho */
    .ev-slider .card-evento-agenda:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Desactivar carrusel en móviles */
    .ev-viewport,
    .ev-slider {
        overflow: visible !important;
        transform: none !important;
    }

    /* Ocultar flechas de navegación y los indicadores (dots) */
    .ev-prev,
    .ev-next,
    .ev-indicadores {
        display: none !important;
    }
}

/* ===== Eventos: en móviles mostrar solo 1 (sin carrusel) ===== */
@media (max-width: 600px) {
    /* Oculta todos los eventos excepto el primero */
    .ev-slider .card-evento-agenda:not(:first-child) {
        display: none !important;
    }

    /* Asegura que el primero ocupe todo el ancho */
    .ev-slider .card-evento-agenda:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Oculta también flechas y dots del carrusel */
    .ev-prev,
    .ev-next,
    .ev-indicadores {
        display: none !important;
    }
}

.ev-prev,
.ev-next {
    background-color: #528F88;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-self: center;
    height: 34px;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ev-prev:hover,
.ev-next:hover {
    background-color: #083854 !important;
}

.ev-prev:active,
.ev-next:active,
.ev-prev:focus,
.ev-next:focus {
    background-color: #528F88;
    outline: none; /* quita borde de enfoque si aparece */
}

/* Tarjeta */
.card-evento-agenda {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
    flex: 0 0 100%;
    max-width: 100%;
}

.card-evento-agenda:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Parte superior: fecha y categoría */
.card-encabezado-agenda {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Fecha */
.card-evento-fecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    border-left: 4px solid #083854;
    padding: 4px 6px;
    border-radius: 4px;
    width: 48px;
    text-align: center;
}

.fecha-dia {
    font-size: 16px;
    font-weight: bold;
    color: #083854;
    line-height: 1;
}

.fecha-mes {
    font-size: 11px;
    font-weight: 500;
    color: #7B7B7B;
    text-transform: uppercase;
    margin-top: -2px;
}

/* Categoría */
.card-evento-categoria {
    background-color: #083854;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
}

/* Ocultar categoría en eventos: mobile y tablet (≤1024px) */
@media (max-width: 1024px) {
    .card-evento-categoria {
        display: none !important;
    }

    /* Ajuste fino del encabezado cuando no hay categoría */
    .card-encabezado-agenda {
        gap: 8px; /* un poco menos de espacio */
    }
}

/* Título */
.card-evento-titulo {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    line-height: 1.3;
}

/* Info */
.card-evento-info {
    font-size: 13px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-evento-info i {
    margin-right: 5px;
    color: #083854;
    width: 16px;
    text-align: center;
}

/* Enlace */
.card-evento-info a {
    color: #083854;
    text-decoration: underline;
}

/* Botón */
.card-vermas-ce {
    margin-top: 8px;
}

.card-vermas-ce a {
    padding: 6px 14px;
    border: 1px solid #083854;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #083854;
    display: inline-block;
    transition: all 0.2s ease;
}

.card-vermas-ce a:hover {
    background-color: #083854;
    color: #fff;
}

@media (max-width: 600px) {
    .card-evento-agenda {
        flex-direction: column;
        align-items: flex-start;
    }

    .ev-slider {
        flex-direction: column;
    }

    .ev-prev,
    .ev-next {
        display: none;
    }
}

.ev-indicadores {
    text-align: center;
    margin-top: 12px;
}

.ev-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #083854;
    border-radius: 50%;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s;
}

.ev-dot.active {
    opacity: 1;
}

/* Botón superpuesto en eventos */
.card-ev .btn-detalle-ev {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 16px;
    background: #083854;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

.card-ev:hover .btn-detalle-ev {
    opacity: 1;
    transform: translateY(0);
}

.card-ev .btn-detalle-ev:hover {
    background: #3A9188;
}

.card-evento-agenda {
    position: relative; /* necesario para botón superpuesto */
}

.card-detalle-ev {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 16px;
    background: #083854;
    color: #fff;
    text-decoration: none;
    opacity: 0; /* oculto por defecto */
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

.card-evento-agenda:hover .card-detalle-ev {
    opacity: 1;
    transform: translateY(0);
}

.card-detalle-ev:hover {
    background: #3A9188;
}

/* Contenedor etiquetas (categoría + botón) */
.card-evento-etiquetas {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Categoría (ya lo tienes definido) */
.card-evento-categoria {
    background-color: #083854;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
}

/* Botón "Ver detalle" inline */
.card-detalle-inline {
    background-color: #3A9188;   /* diferente color al de categoría */
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.card-detalle-inline:hover {
    background-color:  #083854;
    color: #fff;
}

/*------------------------------------------FIN EVENTOS PÁGINA INICIO-------------------------------------------------*/

/*---------------------------------- ------FICHA DETALLE CONVOCATORIA-------------------------------------------------*/
.detalle-concurso-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tablets: apila las columnas en una sola */
@media (max-width: 1024px) {
    .detalle-concurso-layout {
        grid-template-columns: 1fr;
    }

    /* Opcional: puedes usar clases para dar orden */
    .detalle-main {
        order: 1;
    }

    .detalle-aside {
        order: 2;
        margin-top: 24px;
    }
}


.detalle-main {
    padding: 10px 24px;
}

.detalle-aside {
    padding: 10px 16px;
}

.bloque-convocatorias-relacionadas {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 14px;
    background-color: #f9f9f9;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    margin-top: 10px
}

.bloque-convocatorias-relacionadas ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-top: 3px !important;
}

.bloque-convocatorias-relacionadas li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 20px;
}

.bloque-convocatorias-relacionadas a {
    color: #083854;
    text-decoration: none;
    font-weight: 500;
}

.bloque-convocatorias-relacionadas li::before {
    content: "▸";        /* el símbolo de bullet */
    position: absolute;
    left: 0;
    top: 0;
    color: #083854;      /* azul institucional */
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
}

.bloque-convocatorias-relacionadas a:hover {
    text-decoration: underline;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.tab-btn {
    white-space: nowrap;
    text-align: center;
    padding: 8px 14px;
    border: none;
    background-color: #f2f2f2;
    color: #333;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.tab-btn.active {
    background-color: #083854;
    color: white;
}
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-btn:hover {
    background-color: #528F88;
    color: white;
}

.bloque-contacto {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 14px;
    background-color: #f9f9f9;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    display: flex;
    gap: 10px;
}

.bloque-contacto p {
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.5;
}

.bloque-contacto strong {
    display: inline;
    margin: 0;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
}

.etiqueta-ventanilla {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    text-align: center;
    background-color: #84BFBA;
}

.btn-postula {
    display: block;
    background-color: #083854;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    padding: 16px 24px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, transform 0.2s;
}

.btn-postula:hover {
    background-color: #0d4e6f;
    color: white;
    transform: scale(1.03);
}

.boton-bases {
    display: block;
    background-color: #083854;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.boton-bases:hover {
    background-color: #0c496b;
    color: white;
}

.etiqueta-categoria {
    background-color: #224281;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 14px;
}

/*-----------------------------------------FICHA DETALLE CONVOCATORIA-------------------------------------------------*/

/* --------------------------------------------FICHA DETALLE EVENTO--------------------------------------------------- */
/* Contenedor general */
.contenedor-detalle-evento {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    max-width: 1250px;
    margin: 0 auto;
    padding: 1em;
    font-family: 'Segoe UI', sans-serif;
    color: #222;
}

@media (max-width: 768px) {
    .contenedor-detalle-evento {
        flex-direction: column;
    }
}

/* Columna principal */
.evento-main {
    flex: 1 1 60%;
}

/* Título */
.evento-titulo {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0.5em;
    text-align: center;
}

/* Descripción del evento */
.evento-descripcion {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Imagen del afiche */
.evento-afiche {
    text-align: center;
    margin: 1.5em 0;
}
.evento-afiche img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Sidebar */
.evento-sidebar-detalle {
    flex: 0 0 300px;
    max-width: 300px;
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1em;
    font-size: 0.95em;
}

.evento-sidebar-detalle {
    align-self: flex-start;
}

/* Secciones dentro del sidebar */
.sidebar-box {
    border-bottom: 1px solid #e1e1e1;
    padding: 0.8em 0;
}

.sidebar-box:last-child {
    border-bottom: none;
}

.sidebar-box h4 {
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.2em;
    color: #444;
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.sidebar-box p {
    margin: 0.2em 0;
    line-height: 1.4;
}

.icon {
    font-size: 1.1em;
}

/* Categorías individuales */
.cat-item {
    margin-left: 1em;
    font-style: italic;
    color: #333;
}

/* Botón volver */
.btn-volver-eventos {
    display: inline-block;
    margin-top: 2em;
    padding: 0.5em 1em;
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}
.btn-volver-eventos:hover {
    background-color: #005f8c;
}

.evento-adjuntos {
    margin-top: 1em !important;
}

.evento-adjuntos h4 {
    font-size: 1em;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 600;
    color: #222;
}

.adjunto-lista {
    list-style: none;
    padding: 0;
    margin: 0.5em 0 0 0 !important;
}

.adjunto-lista li {
    margin: 0.2em 0;
    font-size: 0.95em;
}

.adjunto-lista a {
    text-decoration: none;
    color: #0073aa;
}

.adjunto-lista a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contenedor-detalle-evento {
        flex-direction: column;
    }

    .evento-main,
    .evento-sidebar-detalle {
        flex: 1 1 100%;
    }

    .evento-afiche img {
        width: 100%;
        max-height: none;
    }

    .evento-sidebar-detalle {
        margin-top: 1.5em;
        padding: 1em;
    }
}