/*  INICIO DEL HEADER   */
:root {
    --color-primary: #202B3D;
    --color-accent: #C2E76B;
    --color-white: #FFFFFF;
    --color-cta: #FF8F00; /* Ventana Activa*/
    --color-cta-hover: #E68100; /*Fondo Activo*/
    --radius-nav: 10px;
}
body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: #CBD8E8;
    font-family: 'Inter', sans-serif;

}
header nav .brand, 
header nav a, 
footer h3, 
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif; /* Para menús y títulos */
}

header {
    background: var(--color-primary);
    color: var(--color-white);
    width: 100%;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
}

header nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    box-sizing: border-box;
}

/* Marca (logo + nombre) */
header nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    padding: 6px 10px;
    color: var(--color-accent);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    border-radius: var(--radius-nav);
    transition: background-color 180ms ease;
}

header nav .brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    /* Si tu logo es oscuro, considera un fondo claro */
    /* background: var(--color-white); padding: 4px; border-radius: 8px; */
}

header nav .brand span {
    white-space: nowrap;
}

/* Enlaces del nav */
header nav a:not(.brand) {
    color: var(--color-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 12px;
    border-radius: var(--radius-nav);
    white-space: nowrap;
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

header nav a:not(.brand):hover,
header nav a:not(.brand):focus-visible {
    background: rgb(255 255 255 / 14%);
    color: var(--color-accent);
    outline: none;
}

header nav a:not(.brand):focus-visible {
    box-shadow: 0 0 0 2px var(--color-accent);
}

header nav .brand:hover,
header nav .brand:focus-visible {
    background: rgb(255 255 255 / 8%);
    outline: none;
}

/*  Tablets y móviles   */
@media (max-width: 768px) {
    header nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 12px 14px;
        justify-content: stretch;
    }

    /* La marca ocupa toda la fila superior */
    header nav .brand {
        grid-column: 1 / -1;
        margin: 0 0 8px;
        justify-content: center;
        font-size: 16px;
        padding: 8px;
    }

    header nav .brand img {
        width: 36px;
        height: 36px;
    }

    /* Enlaces en 2 columnas, texto centrado */
    header nav a:not(.brand) {
        font-size: 12px;
        padding: 10px 8px;
        text-align: center;
        background: rgb(255 255 255 / 6%);
    }
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Móviles muy pequeños: 1 columna */
@media (max-width: 420px) {
    header nav {
        grid-template-columns: 1fr;
    }

    header nav a:not(.brand) {
        font-size: 12px;
        padding: 11px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    header nav a,
    header nav .brand {
        transition: none;
    }
}
/*  FIN DEL HEADER  */

/*  INICIO DEL FOOTER   */
footer {
    background: var(--color-primary);
    color: var(--color-white);
    width: 100%;
    padding: 40px 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

footer > div {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 400px;
}

footer section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

footer h3 {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgb(194 231 107 / 40%);
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer li {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-white);
    opacity: 0.9;
}

/*  Opcional para agergar: enlaces dentro del footer */
footer a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 180ms ease;
}

footer a:hover,
footer a:focus-visible {
    color: var(--color-accent);
    outline: none;
}

/* Tablets y moviles */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        padding: 32px 20px;
    }

    footer > div {
        max-width: 100%;
        width: 100%;
    }

    footer h3 {
        font-size: 13px;
    }

    footer li,
    footer a {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    footer a {
        transition: none;
    }
}
/*  FIN DEL FOOTER  */
/*  BODY COMPLETO    */
html, body {
    margin: 0;
    min-height: 100%;
}
/*  BODY DE CADA PAGINA */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/*  El contenido principal empuja el footer hacia abajo 
    No modificar esta area (para no romper la interfaz) */
main,
#contenido,
.contenido {
    flex: 1;
}

footer {
    background: var(--color-primary);
    color: var(--color-white);
    width: 100%;
    padding: 40px 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}
/*  FIN DEL FOOTER  */

/*===============================================================*/
/*  PAGINA INICIO   */
/* SECCION 1 */
.info-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    color: var(--color-primary);
    font-size: 28px;
    margin-bottom: 8px;
}

/* Grilla Responsiva */
.info-grid {
    display: grid;
    /* En PC genera 4 columnas iguales, si no caben se ajustan automáticamente */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Tarjeta Individual */
.info-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

/* Iconos */
.card-icon {
    width: 48px;  /* Ancho fijo de icono */
    height: 48px; /* Alto fijo de icono */
    font-size: 32px;
    margin-bottom: 12px;
    display: flex;
    padding: 12px;
    background: #F0F7E6; /* Fondo verde muy suave de palta */
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}
.card-icon img.svg-icon {
    width: 45px;  /* Forzamos el tamaño del SVG */
    height: 45px;
    object-fit: contain;
}

.info-card h3 {
    color: var(--color-primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.info-card p {
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
/*  SECCION 2  */
/* Contenedor principal de la sección */
.participantes-section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.participantes-header {
    text-align: center;
    margin-bottom: 30px;
}

.participantes-etiqueta {
    display: inline-block;
    color: #2E7D32;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.participantes-header h2 {
    color: var(--color-primary);
    font-size: 26px;
    margin: 0 0 10px 0;
}

.participantes-header p {
    color: #555555;
    font-size: 15px;
    margin: 0;
}

/* Grilla de 2 columnas para las opciones */
.participantes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Tarjeta individual de cada tipo de organización */
.participante-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;    /* Centra verticalmente icono y texto */
    gap: 16px;             /* Separación fija entre el ícono verde y el texto */
    box-sizing: border-box;
    width: 100%;           /* Ocupa todo el espacio de su columna */
}

.participante-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Contenedor del ícono SVG */
.participante-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start; /* <--- CAMBIA 'center' por 'flex-start' */
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
}
.part-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;        /* OBLIGATORIO: Evita que el icono se aplaste */
    min-height: 48px;
    flex-shrink: 0;         /* OBLIGATORIO: Impide que flexbox reduzca el icono */
    background-color: #EAF4D3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.part-icon img {
    width: 35px !important;
    height: 35px !important;
    object-fit: contain;
    display: block;
}

/* Textos internos de la tarjeta */
.part-info {
    display: flex;
    flex-direction: column; /* Coloca el H3 arriba y el P abajo de forma natural */
    justify-content: center;
    flex: 1;                /* Le da todo el ancho restante de la tarjeta */
    min-width: 0;           /* IMPORTANTE: Permite que los textos largos se adapten */
    position: static;       /* Asegura que no haya posiciones absolutas que monten el texto */
}
.part-info h3 {
    color: #1A2836;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;      /* Margen inferior pequeño para empujar el texto en paréntesis */
    padding: 0;
    line-height: 1.3;
    white-space: normal;    /* Permite saltos de palabra normales, no letra por letra */
    word-break: normal;     /* Evita romper palabras individuales */
}

.part-info h3 {
    color: #1A2836;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    word-wrap: break-word;  /* Asegura saltos de línea limpios */
}
.part-info p {
    color: #626D7A;
    font-size: 13px;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    white-space: normal;
    position: static;       /* Evita encimarse sobre el H3 */
}

/* Adaptación automática para Celulares / Móviles */
@media (max-width: 768px) {
    .participantes-grid {
        grid-template-columns: 1fr; /* Pasa a 1 sola columna en pantallas chicas */
    }
}

/*===============================================================*/

/*  TABLA   */
#contenido {
    padding: 20px;
    box-sizing: border-box;
}
.cadenas-section {
    width: 100%;
    margin: 0 auto;
    color: var(--color-primary);
}

.cadenas-header {
    margin-bottom: 20px;
}

.cadenas-header h2 {
    color: var(--color-primary);
    margin-bottom: 8px;
}

.cadenas-header p {
    margin: 0;
}

/* Buscador */
.tabla-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.tabla-toolbar input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-nav);
    background: var(--color-white);
    color: var(--color-primary);
    font: inherit;
}

.tabla-toolbar input:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Contenedor responsive */
.tabla-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-nav);
}

/* Tabla */
.tabla-cadenas {
    width: 100%;
    min-width: 650px;/*700*/
    border-collapse: collapse;
    background: var(--color-white);
    color: var(--color-primary);
    table-layout: auto;
}
.tabla-cadenas th {
    text-align: center;
    vertical-align: middle;
}
.tabla-cadenas th,
.tabla-cadenas td {
    padding: 12px;
    border: 1px solid #D8DDE5;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* Encabezado */
.tabla-cadenas th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

/* Filas alternas */
.tabla-cadenas tbody tr:nth-child(even) {
    background: #F3F5F7;
}

/* Resaltado */
.tabla-cadenas tbody tr:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

#sinResultados {
    margin-top: 12px;
    color: var(--color-primary);
}

/* Móviles */
@media (max-width: 600px) {
    #contenido {
        padding: 12px;
    }
    .tabla-cadenas th,
    .tabla-cadenas td {
        padding: 8px;
        font-size: 14px;
    }
     
}


/* ========================================
   PROCOMPITE SAMEGUA 2026
   Documentos de convocatoria
======================================== */

.convocatoria-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px;
    color: var(--color-primary);
    padding: 0;
    box-sizing: border-box;
}
.convocatoria-hero,
.documentos-acordeon,
.documento-categoria {
    width: 100%;
    box-sizing: border-box;
}

/* Cabecera */
.convocatoria-hero {
    background: transparent; /* Quita la caja y el fondo oscuro */
    text-align: center;       /* Centra el título y texto */
    max-width: 800px;
    margin: 40px auto 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.convocatoria-hero h1 {
    margin: 10px 0;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.2;
}
.convocatoria-hero h2 {
    color: #1A2836;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

/* El texto secundario */
.convocatoria-hero p {
    color: #626D7A; /* Gris elegante de buena lectura */
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}
/* La pastilla/etiqueta superior verde */
.convocatoria-etiqueta {
    display: inline-block;
    background-color: #EAF4D3; /* Fondo verde claro sutil */
    color: #2E7D32;            /* Texto verde institucional */
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
/* Responsivo para móviles */
@media (max-width: 768px) {
    .convocatoria-hero {
        margin: 25px auto 20px auto;
    }
    .convocatoria-hero p {
        font-size: 14px;
    }
}

/* Categorías desplegables */
.documentos-acordeon {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.documento-categoria {
    border: 1px solid #D8DDE5;
    border-radius: var(--radius-nav);
    background: var(--color-white);
    overflow: hidden;
}

.documento-categoria[open] {
    border-color: var(--color-primary);
}

.documento-categoria summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    cursor: pointer;
    list-style: none;
}

.documento-categoria summary::-webkit-details-marker {
    display: none;
}

.documento-categoria summary:hover {
    background: #F4F6F8;
}

.categoria-icono {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--color-primary);
    color: var(--color-accent);
}

.categoria-icono svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.categoria-texto {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.categoria-texto strong {
    font-size: 1rem;
    color: var(--color-primary);
}

.categoria-texto small {
    color: #626D7A;
    font-size: 0.85rem;
    line-height: 1.4;
}

.categoria-flecha {
    flex-shrink: 0;
    font-size: 1.6rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.documento-categoria[open] .categoria-flecha {
    transform: rotate(180deg);
}

/* Lista de archivos */
.lista-documentos {
    border-top: 1px solid #E0E4E9;
    padding: 0 18px;
}

.documento-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.documento-item + .documento-item {
    border-top: 1px solid #E0E4E9;
}

.documento-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.documento-tipo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 42px;
    padding: 6px;
    border-radius: 5px;
    background: #F1F3F6;
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 800;
}

.documento-info h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.documento-info p {
    margin: 0;
    color: #626D7A;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Acciones de ver y descargar */
.documento-acciones {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.accion-documento {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #D8DDE5;
    border-radius: 7px;
    color: var(--color-primary);
    background: var(--color-white);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box; /* Vital para que padding y border no alteren el tamaño */
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.accion-documento:hover {
    border-color: var(--color-primary);
    background: var(--color-accent);
}

.accion-documento:focus-visible,
.documento-categoria summary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.accion-documento svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Tablets y móviles */

@media (max-width: 650px) {
    .convocatoria-section {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 28px;
        padding: 0;
        box-sizing: border-box;
    }

    .convocatoria-hero {
        width: 100%;
        max-width: 100%;
        padding: 22px 18px;
        margin: 0 0 18px;
        box-sizing: border-box;
    }

    .documentos-acordeon {
        width: 100%;
        max-width: 100%;
        gap: 10px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .documento-categoria {
        width: 100%;
        box-sizing: border-box;
    }

    .documento-categoria summary {
        gap: 10px;
        padding: 15px 12px;
    }

    .categoria-icono {
        width: 38px;
        height: 38px;
    }

    .categoria-texto strong {
        font-size: 0.92rem;
    }

    .categoria-texto small {
        font-size: 0.78rem;
    }

    .lista-documentos {
        padding: 0 12px;
    }

    .documento-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 16px 0;
    }

    .documento-info {
        width: 100%;
    }

    .documento-acciones {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .accion-documento {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 6px;
        font-size: 0.82rem;
    }
}
/* Encabezado de cadenas productivas */
.cadenas-hero {
    width: 100%;
    box-sizing: border-box;
    padding: 28px;
    margin-bottom: 24px;
    border-radius: var(--radius-nav);
    background: var(--color-primary);
    color: var(--color-white);
}

.cadenas-etiqueta {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.cadenas-hero h1 {
    margin: 0 0 10px;
    color: var(--color-white);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.2;
}

.cadenas-hero p {
    margin: 0;
    max-width: 650px;
    color: #E1E6ED;
    line-height: 1.6;
}

/* Adaptación para móviles */
@media (max-width: 650px) {
    .cadenas-hero {
        padding: 22px 18px;
        margin-bottom: 18px;
    }

    .cadenas-etiqueta {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

/* Sección activa del menú */
header nav a.activo {
    background-color: rgb(255 255 255 / 10%); /* Un fondo sutil semi-transparente */
    color: var(--color-accent); /* Usa tu verde lima para el texto */
    font-weight: 700;
    border-radius: var(--radius-nav);
}

/* Evita que el resaltado desaparezca en móvil */
header nav a.activo:hover { 
    background-color: rgb(255 255 255 / 14%);
    color: var(--color-accent);
}
/*=================================================================0*/
/*      INICIO - SECCION 3*/
/*=================================================================0*/
.categorias-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.etiqueta-oficial {
    display: inline-block;
    background-color: #EAF4D3;
    color: #2E7D32;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-header h2 {
    color: #1A2836;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.section-header p {
    color: #626D7A;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.categoria-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.categoria-card:hover {
    transform: translateY(-4px);
    border-color: #2E7D32;
}

.categoria-card.popular {
    border: 2px solid #2E7D32;
}

.cat-badge {
    align-self: flex-start;
    background-color: #F1F5F9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cat-badge.highlight {
    background-color: #EAF4D3;
    color: #2E7D32;
}

.categoria-card h3 {
    color: #1A2836;
    font-size: 17px;
    margin: 0 0 4px 0;
    font-weight: 700;
}

/* Estilo para resaltar el monto del cofinanciamiento */
.cat-monto {
    color: #2E7D32;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    background-color: #F7FAFC;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px dashed #CBD5E1;
}

.cat-desc {
    color: #626D7A;
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: auto 0 0 0;
    border-top: 1px solid #F1F5F9;
    padding-top: 14px;
}

.cat-list li {
    font-size: 13px;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .categorias-grid {
        grid-template-columns: 1fr;
    }
}
/* ========================================== */
/* ESTILOS DE CADENAS PRODUCTIVAS PRIORIZADAS */
/* ========================================== */
.cadenas-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Grilla responsiva de 3 columnas en escritorio */
.cadenas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Cuadritos / Tarjetas de Cadenas */
.cadena-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cadena-card:hover {
    transform: translateY(-3px);
    border-color: #2E7D32;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Contenedor de la imgaen */
.cadena-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;          /* Impide compresión */
    min-height: 48px;
    flex-shrink: 0;           /* OBLIGATORIO: Evita que el flexbox lo aplaste */
    background-color: #EAF4D3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;         /* Garantiza que nada sobresalga de la caja verde */
    box-sizing: border-box;
}
.cadena-icon img {
    width: 26px !important;    /* Ajusta este valor si quieres el ícono más grande o más chico */
    height: 26px !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;       /* Escala el SVG manteniendo su relación de aspecto */
    display: block;
}

.cadena-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cadena-sector {
    font-size: 11px;
    font-weight: 700;
    color: #2E7D32;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cadena-info h3 {
    color: #1A2836;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.cadena-info p {
    color: #626D7A;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Banner de Llamado a la Acción (CTA) */
.cadenas-cta {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 5px solid #2E7D32;
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box; /* Importante para que el padding no rompa anchos */
}

/* Contenedor del video que se adapta al espacio flexible de flexbox */
.cta-content {
    flex: 1;
    min-width: 0; /* Vital para que los elementos hijos flexibles no fuercen desbordamientos */
}

.cta-video-container {
    width: 100%;
    max-width: 440px; /* Tamaño máximo deseado en escritorio */
}

/* El video se vuelve 100% responsivo */
.cta-video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Opcional: le da un toque más estético */
}

.btn-cta-cadenas {
    background-color: #2E7D32;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.btn-cta-cadenas:hover {
    background-color: #235d27;
    transform: translateY(-2px);
}

/* Responsivo para Celulares y Tablets */
@media (max-width: 900px) {
    .cadenas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cadenas-grid {
        grid-template-columns: 1fr;
    }

    .cadenas-cta {
        flex-direction: column;
        align-items: stretch; /* Se estira al 100% del ancho del contenedor padre */
    }

    .cta-gif {
        max-width: 100%; /* Ocupa el ancho completo disponible en celular sin desbordar */
    }

    .btn-cta-cadenas {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
/*=============================================*/
/*  PAGINA DE ESPERA*/
/*=============================================*/
.construccion-container {
    /*min-height: 80vh;*/
    min-height: calc(100vh - 346px); /* CALCULADO EN PANTALLA DE 16" Y MOVIL */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.construccion-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 30px 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: #EAF4D3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 32px;
}

.construccion-card h1 {
    color: #1A2836;
    font-size: 22px;
    margin: 0 0 10px 0;
}
.construccion-card h2 {
    color: #1A2836;
    font-size: 24px;
    font-weight: 800;
    margin: 12px 0 8px 0;
}

.construccion-card p {
    color: #626D7A;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.btn-volver {
    display: inline-block;
    background-color: #2E7D32;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.btn-volver:hover {
    background-color: #235d27;
}


/* ========================================== */
/* ESTILOS DE FASES OFICIALES (3 COLUMNAS) */
/* ========================================== */
.fases-oficiales-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.fases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* Columna individual de cada Fase */
.fase-columna {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cabecera roja/institucional con el número */
.fase-cabecera {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-top: 4px solid #DC2626; /* Color rojo institucional de la imagen */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.fase-numero-badge {
    width: 42px;
    height: 42px;
    background-color: #DC2626;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
}

.fase-cabecera h3 {
    color: #1A2836;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.fase-duracion {
    color: #626D7A;
    font-size: 13px;
    font-weight: 600;
}

/* Lista de cajitas / pasos dentro de la fase */
.fase-pasos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paso-card {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px 16px;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.paso-card:hover {
    background-color: #FFFFFF;
    border-color: #CBD5E1;
}

.paso-card.paso-destacado {
    background-color: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
    font-weight: 600;
}

/* Responsivo para Tablets y Celulares */
@media (max-width: 900px) {
    .fases-grid {
        grid-template-columns: 1fr; /* Pasa a 1 columna en pantallas pequeñas */
    }
}
/*============================================*/


/* ===================================================== */
/* SECCIÓN PREGUNTAS FRECUENTES (FAQ)         */
/* ===================================================== */
.faq-section {
    max-width: 850px;
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

/* Tarjeta individual con etiqueta HTML <details> */
.faq-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Cabecera / Pregunta clickeable */
.faq-question {
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #1A2836;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Oculta la flecha por defecto del navegador */
}

/* Ocultar marcador por defecto en navegadores webkit */
.faq-question::-webkit-details-marker {
    display: none;
}

/* Icono de flechita interactivo */
.faq-icon {
    font-size: 12px;
    color: #64748B;
    transition: transform 0.3s ease;
}

/* Rota la flecha cuando el acordeon se abre (<details open>) */
.faq-card[open] .faq-icon {
    transform: rotate(180deg);
    color: #2E7D32;
}

.faq-card[open] .faq-question {
    color: #2E7D32;
    border-bottom: 1px solid #F1F5F9;
}

/* Contenido / Respuesta */
.faq-answer {
    padding: 16px 20px 20px 20px;
    background-color: #FAFAFA;
}

.faq-answer p {
    color: #626D7A;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/*  =============================================================== */
/*  ESTILOS DEL MODAL EMERGENTE (JSONBin): AVISO, NOTICIAS,ETC      */
/*  =============================================================== */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65); /* Fondo oscuro semitransparente (Cortina) */
    backdrop-filter: blur(5px);          /* Desenfoque elegante de la página de fondo */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647 !important;     /* Por encima de todo (menús y footers) */
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

/* Tarjeta limpia y centrada */
.modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

/* Botón de cierre X sutil */
.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #F1F5F9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    color: #64748B;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
    background: #E2E8F0;
    color: #1A2836;
}

/* CABECERA SUAVE Y CLARA CON ICONO */
.modal-header-banner {
    padding: 28px 20px 10px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #FFFFFF; /* Fondo blanco limpio */
}

/* Círculo contenedor para el SVG (Icono verde o rojo) */
.modal-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Variantes del círculo según urgencia */
.modal-header-banner.banner-con_tiempo .modal-icon-wrapper {
    background-color: #EAF4D3;
    color: #2E7D32;
}

.modal-header-banner.banner-ultimo_dia .modal-icon-wrapper {
    background-color: #FEE2E2;
    color: #DC2626;
}

.modal-icon-wrapper img,
.modal-icon-wrapper svg {
    width: 30px;
    height: 30px;
}

/* Etiqueta / Badge pequeño */
.modal-badge-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.modal-header-banner.banner-con_tiempo .modal-badge-label {
    background: #EAF4D3;
    color: #2E7D32;
}

.modal-header-banner.banner-ultimo_dia .modal-badge-label {
    background: #FEE2E2;
    color: #DC2626;
}

/* CUERPO DEL MODAL */
.modal-body {
    padding: 10px 24px 20px 24px;
    text-align: center;
}

.modal-title {
    color: #1A2836;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.modal-description {
    color: #626D7A;
    font-size: 14.5px;
    line-height: 1.5;
    margin: 0;
}

/* ACCIONES (BOTONES) */
.modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
}

.btn-modal-action {
    flex: 1;
    background-color: #8CBA26;
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(140, 186, 38, 0.3);
    transition: background-color 0.2s;
}

.btn-modal-action:hover {
    background-color: #7ab318;
}

.btn-modal-ghost {
    flex: 1;
    background-color: #F1F5F9;
    color: #64748B;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-modal-ghost:hover {
    background-color: #E2E8F0;
    color: #334155;
}

/* RESPONSIVO EN MÓVIL */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 16px;
    }
    .modal-footer {
        flex-direction: column-reverse;
    }
    .btn-modal-action, .btn-modal-ghost {
        width: 100%;
    }
    a.btn-modal-action {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}
.modal-icon-wrapper img.modal-svg-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

/* Estado AMARILLO (3 días de plazo) */
.modal-header-banner.banner-atencion .modal-icon-wrapper {
    background-color: #FEF9C3; /* Amarillo pastel suave */
    color: #CA8A04;            /* Amarillo oscuro / ámbar */
}

.modal-header-banner.banner-atencion .modal-badge-label {
    background: #FEF9C3;
    color: #854D0E;
}

/**/
#newsModal {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Asegúrate de que cubra toda la pantalla y esté por encima de todo */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* 2. Cuando el JS añade la clase 'active', se muestra obligatoriamente en PC y móvil */
#newsModal.active {
    display: flex !important; /* El !important fuerza a que aparezca en la compu sí o sí */
    opacity: 1;
}


/* ==========================================
   ESTILOS PARA EL CRONOGRAMA PROCOMPITE 2026
   ========================================== */

.cronograma-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
}

/* ENCABEZADO DE SECCIÓN */
.cronograma-header {
  background: var(--bg-card, #ffffff);
  border-radius: var(--radius, 12px);
  padding: 24px;
  box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.05));
  border-left: 6px solid var(--primary, #0f2d59);
  margin-bottom: 24px;
}

.cronograma-header h2 {
  color: var(--primary, #0f2d59);
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cronograma-header p {
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
}

/* BLOQUE DE ETAPA */
.etapa-block {
  background: var(--bg-card, #ffffff);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.05));
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
}

.etapa-title {
  background: var(--primary, #0f2d59);
  color: #ffffff;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.etapa-title span.number {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* TABLA RESPONSIVA */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table.cronograma-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.cronograma-table th {
  background-color: #f1f5f9;
  color: var(--primary, #0f2d59);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border, #e5e7eb);
}

table.cronograma-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  font-size: 0.92rem;
  vertical-align: top;
  color: var(--text-main, #1f2937);
}

table.cronograma-table tr:last-child td {
  border-bottom: none;
}

table.cronograma-table tr:hover {
  background-color: #f8fafc;
}

/* BADGES Y TEXTOS */
.proceso-nombre {
  font-weight: 600;
  color: var(--primary-light, #1e4a87);
  display: block;
  margin-bottom: 4px;
}

.fecha-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 1px solid #bfdbfe;
}

.lugar-text {
  color: var(--text-muted, #6b7280);
  font-size: 0.88rem;
  line-height: 1.4;
}

.lugar-text a {
  color: #2563eb;
  text-decoration: none;
  word-break: break-all;
}

.lugar-text a:hover {
  text-decoration: underline;
}

/* ADAPTACIÓN MÓVIL (TRANSFORMACIÓN A VISTA DE TARJETAS) */
@media (max-width: 768px) {
  table.cronograma-table, 
  table.cronograma-table thead, 
  table.cronograma-table tbody, 
  table.cronograma-table th, 
  table.cronograma-table td, 
  table.cronograma-table tr {
    display: block;
  }

  table.cronograma-table thead {
    display: none; /* Oculta los encabezados tradicionales en celulares */
  }

  table.cronograma-table tr {
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding: 16px;
    position: relative;
  }

  table.cronograma-table td {
    padding: 6px 0;
    border: none;
  }

  table.cronograma-table td:nth-child(1) {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  table.cronograma-table td:nth-child(2) {
    margin-bottom: 8px;
  }

  table.cronograma-table td:nth-child(3)::before {
    content: "📍 Lugar / Horario:";
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
    margin-bottom: 2px;
  }
}

/* =============================================================== */
/* ESTILOS DEL LOGIN DE ADMINISTRACIÓN (CMS)                        */
/* =============================================================== */

.admin-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 340px); /* Toma casi toda la altura de la pantalla descontando menús si los hay */
    padding: 20px;
    box-sizing: border-box;
    /*background: #F8FAFC;*/ /* Fondo sutilmente grisáceo elegante */
}

.login-card {
    background: #FFFFFF;
    padding: 40px 32px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #E2E8F0;
}

.login-card h2 {
    color: #1A2836;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.login-card p {
    color: #64748B;
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Grupos de formulario */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    color: #1A2836;
    background: #F8FAFC;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8CBA26; /* Color verde institucional ProCompite */
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(140, 186, 38, 0.15);
}

/* Botón de ingreso */
.btn-login {
    width: 100%;
    background-color: #8CBA26;
    color: #FFFFFF;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(140, 186, 38, 0.3);
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 10px;
    box-sizing: border-box;
}

.btn-login:hover {
    background-color: #7ab318;
}

.btn-login:active {
    transform: scale(0.98);
}

/* Mensaje de error */
.error-msg {
    background-color: #FEE2E2;
    color: #DC2626 !important;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 16px !important;
}

/* Adaptabilidad móvil estricta */
@media (max-width: 480px) {
    .admin-login-container {
        padding: 16px;
        align-items: flex-start; /* Permite scroll cómodo si el teclado del celular se levanta */
        padding-top: 40px;
    }
    
    .login-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
}
/*  ====================================================    */
/*      CREAR AVISO     */
/*  ====================================================    */
/* Contenedor principal en Grid */
.cms-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
    align-items: start;
}
.form-column {
    grid-column: 1;
}
.preview-column {
    grid-column: 2;
}

/* Columna de la tarjeta de preview fija al hacer scroll en PC */
.preview-sticky-box {
    position: sticky;
    top: 20px;
    background: #F1F5F9;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
}

.preview-subtitle {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 16px;
}

/* Tarjeta simulada del modal (estética idéntica a la real) */
.mock-modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #E2E8F0;
    text-align: center;
}

.mock-modal-body {
    padding: 20px 24px 10px 24px;
}

.mock-modal-body h4 {
    font-size: 18px;
    color: #1A2836;
    margin-bottom: 8px;
    font-weight: 800;
}

.mock-modal-body p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.4;
    margin: 0;
}

.mock-modal-footer {
    padding: 10px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Adaptabilidad estricta para celulares (Formulario arriba, Preview abajo) */
@media (max-width: 900px) {
    .cms-wrapper {
        grid-template-columns: 1fr;
    }
    .form-column {
        grid-column: 1;
        order: 1; /* Primero el formulario */
    }
    .preview-column {
        grid-column: 1;
        order: 2; /* Después la vista previa */
    }
    .preview-sticky-box {
        position: static;
    }
}
/* Tarjeta de formulario con estilo moderno */
.card-formulario-pro {
    background: #FFFFFF;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.03);
    box-sizing: border-box;
}

.card-formulario-pro .input-group {
    margin-bottom: 20px;
}

.card-formulario-pro label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-formulario-pro input[type="text"],
.card-formulario-pro input[type="date"],
.card-formulario-pro input[type="number"],
.card-formulario-pro textarea,
.card-formulario-pro select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    color: #1A2836;
    background: #F8FAFC;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: inherit;
}

.card-formulario-pro input:focus,
.card-formulario-pro textarea:focus,
.card-formulario-pro select:focus {
    outline: none;
    border-color: #8CBA26;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(140, 186, 38, 0.15);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .input-group {
    flex: 1;
}

/* Estilo para los botones de acción del CMS */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-primary {
    flex: 1;
    background: #8CBA26;
    color: #FFFFFF;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(140, 186, 38, 0.3);
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #7ab318;
}

.btn-secondary {
    flex: 1;
    background: #FFFFFF;
    color: #64748B;
    border: 2px solid #E2E8F0;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #F1F5F9;
    color: #1A2836;
}

/* Estilo para el Checkbox / Toggle activo */
.checkbox-row {
    background: #F8FAFC;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
}

.checkbox-row label {
    margin-bottom: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600 !important;
    color: #1A2836 !important;
    text-transform: none !important;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8CBA26;
    cursor: pointer;
}

/* Responsivo para filas en móvil */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
/*  =================================================   */
/*      ADMIN PANEL     */
/*  =================================================   */
/* Contenedor Principal del Panel */
.admin-dashboard-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 20px;
    margin-top: 20px;
}
.admin-dashboard-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
}

.admin-welcome-header {
    text-align: center;
    margin-bottom: 35px;
}

.admin-welcome-header h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.admin-welcome-header p {
    color: #666;
    font-size: 1rem;
}

/* Rejilla Responsive de las Tarjetas */
.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* Estilo de cada Tarjeta / Botón */
.admin-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #007bff;
}

/* Iconos */
.admin-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.aviso-icon {
    background: #e3f2fd;
    color: #0d6efd;
}

.noticia-icon {
    background: #e8f5e9;
    color: #198754;
}

/* Textos dentro de la tarjeta */
.admin-card-info {
    flex-grow: 1;
}

.admin-card-info h3 {
    font-size: 1.15rem;
    margin: 0 0 6px 0;
    color: #212529;
}

.admin-card-info p {
    font-size: 0.88rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Flecha indicadora */
.admin-arrow {
    font-size: 1.4rem;
    color: #adb5bd;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.admin-card:hover .admin-arrow {
    transform: translateX(5px);
    color: #007bff;
}
/*  =============================================   */
/*      NOTICIAS    */
/*  =============================================   */
/* --- ESTILOS DE LA SECCIÓN DE NOTICIAS --- */
/* Contenedor general del CMS de Noticias */
/* Wrapper principal con máximo provecho del ancho */
.cms-noticias-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1100px; /* Ancho amplio de pantalla */
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.form-section-box, .preview-section-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
}

/* Forzamos a la grilla de vista previa a usar el 100% */
.preview-single-grid {
    width: 100% !important;
    max-width: 100% !important;
}

/* --- TARJETA ALARGADA Y COMPACTA (100% WIDE) --- */
.noticia-card-horizontal {
    display: flex;
    flex-direction: row;
    width: 100% !important; /* Estirado horizontal completo */
    min-height: 220px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Imagen en formato banner vertical a la izquierda */
.noticia-card-horizontal .noticia-img-container {
    position: relative;
    width: 30%; /* Ocupa el 30% a la izquierda */
    min-width: 260px;
    max-width: 340px;
    background: #f1f5f9;
}

.noticia-card-horizontal .noticia-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cuerpo estirado a la derecha */
.noticia-card-horizontal .noticia-body {
    width: 70%;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.noticia-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.noticia-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.noticia-date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.noticia-card-horizontal h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.noticia-card-horizontal p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 12px;
}

.noticia-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.noticia-lugar {
    font-size: 0.85rem;
    color: #0369a1;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* Adaptación responsive para pantallas de celular */
@media (max-width: 768px) {
    .noticia-card-horizontal {
        flex-direction: column; /* Se apila solo en celulares */
    }

    .noticia-card-horizontal .noticia-img-container {
        width: 100%;
        max-width: 100%;
        height: 180px;
    }

    .noticia-card-horizontal .noticia-body {
        width: 100%;
        padding: 15px;
    }
}

.modal-drive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-drive-container {
    background: #ffffff;
    width: 100%;
    max-width: 1150px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.modal-drive-header {
    background: #1e293b;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-cerrar-drive {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-ver-drive {
    /*background: none;
    border: none;*/
    cursor: pointer;
}

/*  ====================================    */
/* Contenedor Principal Centrado */
.admin-main-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    background-color: #f8fafc;
    min-height: 85vh;
}

/* Tarjeta del Formulario */
.card-formulario-moderno {
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: fadeInForm 0.3s ease-in-out;
}

@keyframes fadeInForm {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cabecera Pro */
.form-header-pro {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 30px;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.header-icon {
    font-size: 2rem;
    background: #eff6ff;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
}

.form-header-pro h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.form-header-pro p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 4px 0 0 0;
}

/* Cuerpo del Formulario */
.form-body-pro {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Filas en Grilla (2 Columnas) */
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row-grid {
        grid-template-columns: 1fr;
    }
}

/* Grupos de Inputs */
.input-group-pro {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group-pro label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.required {
    color: #ef4444;
}

.input-group-pro input,
.input-group-pro select,
.input-group-pro textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    transition: all 0.2s ease;
}

.input-group-pro input:focus,
.input-group-pro select:focus,
.input-group-pro textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Input con Icono incorporado (para la URL) */
.input-url-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.url-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
}

.input-url-wrapper input {
    padding-left: 40px;
}

/* Textarea específico */
.input-group-pro textarea {
    resize: vertical;
    min-height: 80px;
}

/* Textos de ayuda */
.form-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

/* Botones de Acción */
.form-actions-pro {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-cancelar-pro {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancelar-pro:hover {
    background: #e2e8f0;
}

.btn-submit-pro {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transition: background 0.2s, transform 0.1s;
}

.btn-submit-pro:hover {
    background: #1d4ed8;
}

.btn-submit-pro:active {
    transform: scale(0.98);
}