﻿/*@font-face {
    font-family: "Tusker Grotesk 5700 Bold";
    src: url("/fonts/TuskerGrotesk-5700Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url("/fonts/GothamBook.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url("/fonts/GothamMedium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url("/fonts/GothamBold.ttf") format("truetype");
    font-weight: 700;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    background-color: #ececec;
}

:root {
    --site-blue:#253775;
    --font-display: "Tusker Grotesk 5700 Bold", "Arial Narrow", Arial, sans-serif;
    --font-body: "Gotham", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.navbar,
.btn,
.site-brand-text,
.site-nav-link,
.home-kicker,
.estrado-card__title {
    font-family: var(--font-display);
    text-transform: none;
}

.btn,
.home-shortcuts button {
    font-family: 'Gotham', sans-serif !important;
    font-weight: 700;
}

p,
small,
span,
label,
input,
textarea,
select,
table,
td,
th,
.form-control,
.text-muted,
.estrado-card__text,
.estrado-card__meta,
.estrado-card__filename {
    font-family: var(--font-body);
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    margin-top: auto;
    background-color: #253775;
    color: #fff;
    padding: 2.5rem 0 1rem;
}

.site-footer-top {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr minmax(220px, 260px);
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-row {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .footer-col {
        min-width: 250px;
    }
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

@media (min-width: 769px) {
    .table-hint {
        display: none;
    }
}


.table-hint {
    text-align: right;
    font-size: 13px;
    color: #6c757d;
    margin-top: 25px;
    margin-bottom: 5px;
    opacity: 0.8;
}

    .table-hint span {
        display: inline-block;
        animation: mover 1s infinite alternate;
    }

@keyframes mover {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(6px);
    }
}


.site-footer-side {
    display: flex;
    flex-direction: column;
    align-content: center;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
}

.site-footer-image {
    height: 160px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-footer-image {
        height: 110px;
    }
}


.site-footer-link {
    text-decoration: none;
}

.site-footer-qr {
    width: 100px;
}

.site-app-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-store-badge {
    width: 120px;
}

.site-footer-contact {
    text-align: center;
}

.site-footer-title {
    font-family: "Gotham", Helvetica, Arial, sans-serif !important;
    margin-bottom: 0.75rem;
    color: #fff;
}

.site-footer-text {
    color: rgba(255, 255, 255, 0.92);
}

.site-footer-bottom {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
}*/

/* Descripción resumida en administración */
/*.estrado-descripcion-resumen {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    margin-bottom: 0.5rem;
}*/

/* Descripción completa inicialmente no visible */
/*.estrado-descripcion-completa {
    margin-top: 0.75rem;
    margin-bottom: 0;
    text-align: justify;
}*/

/* Botón Ver más / Ver menos */
/*.estrado-toggle-descripcion {
    display: inline-block;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    list-style: none;
}*/

    /* Quitamos la flecha automática de details */
    /*.estrado-toggle-descripcion::-webkit-details-marker {
        display: none;
    }

    .estrado-toggle-descripcion::marker {
        display: none;
        content: "";
    }

    .estrado-toggle-descripcion:hover {
        opacity: 0.75;
    }*/

/* Ver menos oculto inicialmente */
/*.texto-ver-menos {
    display: none;
}*/

/* Cuando está abierto */
/*.estrado-descripcion-details[open] .texto-ver-mas {
    display: none;
}

.estrado-descripcion-details[open] .texto-ver-menos {
    display: inline;
}*/

/* Cuando se despliega, ocultamos el resumen */
/*.estrado-descripcion-admin:has(.estrado-descripcion-details[open])
.estrado-descripcion-resumen {
    display: none;
}*/
/*
.estrado-card__text--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .estrado-card__text--collapsed.is-expanded {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

.estrado-toggle-descripcion {
    font-family: var(--font-body) !important;
    color: #fff !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: -0.75rem;
}

    .estrado-toggle-descripcion:hover {
        color: #fff !important;
        opacity: 0.75;
    }*/

/*.card {
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.estrado-card__text {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.75;
    white-space: pre-line;
    text-align: justify;
}

.estrado-card__text--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .estrado-card__text--collapsed.is-expanded {
        display: block;
        overflow: visible;
    }

.estrado-toggle-descripcion {
    font-family: var(--font-body);
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.estrado-documentos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.estrado-documento-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

    .estrado-documento-link:hover {
        color: #fff;
        opacity: 0.75;
    }

.estrado-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.estrado-archivo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .card:hover {
        transform: translateY(-5px);
    }

.site-header-navbar {
    background-color: #fff;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    color: var(--site-blue);
    text-decoration: none;
}

.site-brand:hover {
    color: var(--site-blue);
}

.site-brand-logo {
    max-height: 85px;
    width: auto;
    object-fit: contain;
}

.site-brand-text {
    display: none;
    align-items: center;
    color: var(--site-blue);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-brand-text.is-visible {
    display: inline-flex;
}

.site-nav-link {
    color: var(--site-blue);
    font-weight: 500;
    letter-spacing: 0.02em;
    font-size: 1rem;
}

.site-nav-link:hover,
.site-nav-link:focus,
.site-nav-link.active {
    color: var(--site-blue);
}

.btn-afiliacion {
    background-color: #253775;
    color: white;
    border: none;
}

    .btn-afiliacion:hover {
        background-color: #00b8f0;
        color: white;
    }


.btn-padron {
    background-color: #0043A1;
    color: white;
    border: none;
}

    .btn-padron:hover {
        background-color: #00b8f0;
        color: white;
    }

.btn-comites {
    background-color: #1f2f6b;
    color: white;
    border: none;
}

    .btn-comites:hover {
        background-color: #00b8f0;
        color: white;
    }

.btn-capacitacion {
    background-color: #ffffff;
    color: #0043A1;
    border-color: #0043A1;
}

    .btn-capacitacion:hover {
        background-color: #00b8f0;
        color: white;
    }

.site-navbar-toggler {
    border-color: rgba(37, 55, 77, 0.35);
}

.site-navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2837,55,77,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.home-hero {
    background-image: url('/images/bg-desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .home-hero {
        background-image: url('/images/bg-mobile.png');
        background-position: center;
    }
}

.home-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #e3f2fd;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.display-5,
.display-6,
.h1,
.h2,
.h3,
.h4 {
    letter-spacing: 0.01em;
}

.home-subtitle {
    max-width: 46rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.home-shortcuts {
    border-radius: 24px;
    font-family: 'Gotham', sans-serif;
    font-weight: bold;
}

.login-page {
    background:
        radial-gradient(circle at top, rgba(30, 136, 229, 0.12), transparent 35%),
        linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.login-card {
    border-radius: 28px;
}

.estrados-section {
    background:
        linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.estrados-form-card {
    position: sticky;
    top: 1.5rem;
    border-radius: 24px;
}

.estrado-card {
    padding: 1.75rem;
    border-radius: 24px;
    background-image: url('/images/bg-card.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    color: white;
    box-shadow: 0 18px 45px rgba(13, 71, 161, 0.16);
}

.estrado-card__meta {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.estrado-card__title {
    margin-bottom: 0.3rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.estrado-card__text {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.75;
    white-space: pre-line;
}

.estrado-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.estrado-card__button {
    padding-inline: 1.35rem;
    border-radius: 999px;
    font-weight: 700;
}

.estrado-card__filename {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.users-card {
    border-radius: 22px;
}

@media (max-width: 1199.98px) {
    .estrados-form-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .site-footer-top {
        grid-template-columns: 220px 1fr 220px;
        overflow-x: auto;
    }
}


.tabla-padron thead th {
    background-color: #253775;
    color: white;
    border: none;
    text-align: center;
    align-content: center
}

    footer a:hover {
    color: #0d6efd;
    transform: scale(1.2);
}

    .site-footer-image {
    transition: transform 0.2s ease;
}

    .site-footer-image:hover {
        transform: scale(1.1);
    }

.nav-logout {
    color: inherit;  usa el mismo azul del menú 
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

    .nav-logout:hover {
        color: #dc3545;  rojo solo en hover 
        text-decoration: none;
    }

.d-grid div {
    text-align: center;
}

.d-grid p {
    font-size: 24px;
    font-weight: bold;
    color: #0d47a1;
    margin: 0;
}

.busqueda-card {
    margin-top: -45px; 
}

.busqueda-tab .row {
    margin-top: -25px;
}

.totales-box {
    text-align: center;
    margin-bottom: 25px;
}

.titulo-total {
    font-family: var(--font-display);
    font-size: 26px;
}

.numero-total {
    font-size: 36px;
    font-weight: bold;
    color: #0d47a1;
}

.site-footer-side .site-footer-title {
    font-family: "Gotham",  Helvetica, Arial, sans-serif !important;
    font-weight: 700;
    white-space: nowrap;
    font-size: 1.6rem;
    line-height: 1.1;
}

.comites-page {
    background:
        radial-gradient(circle at top left, rgba(37, 55, 117, 0.08), transparent 30%),
        linear-gradient(180deg, #f5f7fb 0%, #ececec 100%);
}

.comites-shell {
    max-width: 1140px;
    margin: 0 auto;
}

.comites-hero {
    background: linear-gradient(135deg, rgba(37, 55, 117, 0.08), rgba(255, 255, 255, 0.92));
    border-radius: 28px;
    padding: 3rem 2rem;
    margin-bottom: 1.75rem;
}

.comites-eyebrow {
    color: #4b5f9f;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comites-title {
    font-family: var(--font-body);
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1;
    color: #2c313d;
}

.comites-filters {
    border-radius: 24px;
}

.comites-results {
    display: grid;
    gap: 1.25rem;
}

.comite-card {
    border-radius: 24px;
    background-color: rgba(255, 255, 255, 0.94);
}

.comite-kicker {
    color: #5d6f9f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.comite-card__title {
    font-family: var(--font-display);
    color: #22346d;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.comite-card__meta {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #33415c;
    line-height: 1.6;
}

.comite-card__meta i {
    color: #22346d;
    margin-top: 0.2rem;
}

.comite-card__meta a {
    color: #1b67c9;
    text-decoration: none;
}

.comite-card__meta a:hover {
    text-decoration: underline;
}

.comite-card__details summary {
    cursor: pointer;
    color: #22346d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.comite-card__details-body {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.comite-card__extra-list {
    display: grid;
    gap: 0.9rem;
}

.comite-card__extra-list dt {
    font-weight: 700;
    color: #22346d;
}

.comite-card__extra-list dd {
    margin-bottom: 0;
    color: #5c6577;
}

.comite-card__socials {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.comite-card__leaders {
    display: grid;
    gap: 0.7rem;
}

.comite-card__leader-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 1rem;
    align-items: start;
}

.comite-card__leader-label {
    font-weight: 700;
    color: #22346d;
}

.comite-card__leader-value {
    color: #33415c;
}

.comite-card__map {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(34, 52, 109, 0.12);
    margin-top: 0.35rem;
}

.comite-card__map iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

.comite-card__socials a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34, 52, 109, 0.35);
    border-radius: 999px;
    color: #22346d;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.comite-card__socials a:hover {
    background-color: #22346d;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .comites-hero {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .comite-card__leader-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .comite-card__map iframe {
        min-height: 280px;
    }
}*/

@font-face {
    font-family: "Tusker Grotesk 5700 Bold";
    src: url("/fonts/TuskerGrotesk-5700Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url("/fonts/GothamBook.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url("/fonts/GothamMedium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url("/fonts/GothamBold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --site-blue: #253775;
    --font-display: "Tusker Grotesk 5700 Bold", "Arial Narrow", Arial, sans-serif;
    --font-body: "Gotham", "Helvetica Neue", Helvetica, Arial, sans-serif;
}


/* =========================================================
   GENERAL
   ========================================================= */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    background-color: #ececec;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.btn,
.site-brand-text,
.site-nav-link,
.home-kicker,
.estrado-card__title {
    font-family: var(--font-display);
    text-transform: none;
}

.btn,
.home-shortcuts button {
    font-family: "Gotham", sans-serif !important;
    font-weight: 700;
}

p,
small,
span,
label,
input,
textarea,
select,
table,
td,
th,
.form-control,
.text-muted,
.estrado-card__text,
.estrado-card__meta,
.estrado-card__filename {
    font-family: var(--font-body);
}

.site-main {
    flex: 1 0 auto;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: auto;
    background-color: #253775;
    color: #fff;
    padding: 2.5rem 0 1rem;
}

/* Escritorio: Logo | Contacto | Descarga APP */
.site-footer-top {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr minmax(220px, 260px);
    gap: 2rem;
    align-items: center;
}

/* Columnas laterales */
.site-footer-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Imágenes del footer */
.site-footer-image {
    display: block;
    height: 160px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

    .site-footer-image:hover {
        transform: scale(1.1);
    }

/* Contacto */
.site-footer-contact {
    text-align: center;
}

.site-footer-title {
    font-family: "Gotham", Helvetica, Arial, sans-serif !important;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: #fff;
}

.site-footer-text {
    color: rgba(255, 255, 255, 0.92);
}

/* Enlaces */
.site-footer-link {
    text-decoration: none;
}

.site-footer a {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .site-footer a:hover {
        color: #fff;
        opacity: 0.8;
    }

/* QR */
.site-footer-qr {
    width: 100px;
    height: auto;
}

/* Google Play / App Store */
.site-app-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.site-store-badge {
    width: 120px;
    height: auto;
}

/* Pie inferior */
.site-footer-bottom {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
}


/* =========================================================
   FOOTER - MÓVIL
   Logo
   Contacto
   Descarga APP
   ========================================================= */

@media (max-width: 768px) {

    .site-footer {
        padding: 2rem 0 1rem;
    }

    .site-footer-top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
    }

        /* 1. Logo */
        .site-footer-top > .site-footer-side:first-child {
            order: 1;
        }

    /* 2. Contacto */
    .site-footer-contact {
        order: 2;
        width: 100%;
        text-align: center;
    }

    /* 3. Descarga APP */
    .site-footer-top > .site-footer-side:last-child {
        order: 3;
    }

    .site-footer-side {
        width: 100%;
        white-space: normal;
    }

    .site-footer-image {
        height: auto;
        max-height: 130px;
        max-width: 180px;
        margin: 0 auto;
    }

    .site-footer-qr {
        width: 110px;
        max-width: 110px;
        height: auto;
    }

    .site-footer-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .site-footer-text {
        line-height: 1.5;
    }

    .site-footer-bottom {
        margin-top: 2rem;
        padding-top: 1rem;
    }
}


/* =========================================================
   TABLAS RESPONSIVAS
   ========================================================= */

.table-container {
    overflow-x: auto;
    width: 100%;
}

.table-hint {
    text-align: right;
    font-size: 13px;
    color: #6c757d;
    margin-top: 25px;
    margin-bottom: 5px;
    opacity: 0.8;
}

    .table-hint span {
        display: inline-block;
        animation: mover 1s infinite alternate;
    }

@media (min-width: 769px) {
    .table-hint {
        display: none;
    }
}

@keyframes mover {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(6px);
    }
}


/* =========================================================
   ESTRADOS - ADMINISTRACIÓN
   ========================================================= */

/* Descripción resumida */
.estrado-descripcion-resumen {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    margin-bottom: 0.5rem;
}

/* Descripción completa */
.estrado-descripcion-completa {
    margin-top: 0.75rem;
    margin-bottom: 0;
    text-align: justify;
}

/* Botón Ver más / Ver menos */
.estrado-toggle-descripcion {
    display: inline-block;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    list-style: none;
}

    .estrado-toggle-descripcion::-webkit-details-marker {
        display: none;
    }

    .estrado-toggle-descripcion::marker {
        display: none;
        content: "";
    }

    .estrado-toggle-descripcion:hover {
        color: #fff;
        opacity: 0.75;
    }

/* Ver menos oculto inicialmente */
.texto-ver-menos {
    display: none;
}

/* Cuando está abierto */
.estrado-descripcion-details[open] .texto-ver-mas {
    display: none;
}

.estrado-descripcion-details[open] .texto-ver-menos {
    display: inline;
}

/* Cuando se despliega, ocultamos el resumen */
.estrado-descripcion-admin:has(.estrado-descripcion-details[open])
.estrado-descripcion-resumen {
    display: none;
}


/* =========================================================
   CARDS GENERALES
   ========================================================= */

.card {
    border-radius: 16px;
    transition: transform 0.2s ease;
}

    .card:hover {
        transform: translateY(-5px);
    }


/* =========================================================
   ESTRADOS
   ========================================================= */

.estrado-card__text {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.75;
    white-space: pre-line;
    text-align: justify;
}

.estrado-card__text--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .estrado-card__text--collapsed.is-expanded {
        display: block;
        overflow: visible;
    }

.estrado-documentos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.estrado-documento-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

    .estrado-documento-link:hover {
        color: #fff;
        opacity: 0.75;
    }

.estrado-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.estrado-archivo {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* =========================================================
   HEADER / NAVBAR
   ========================================================= */

.site-header-navbar {
    background-color: #fff;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    color: var(--site-blue);
    text-decoration: none;
}

    .site-brand:hover {
        color: var(--site-blue);
    }

.site-brand-logo {
    max-height: 85px;
    width: auto;
    object-fit: contain;
}

.site-brand-text {
    display: none;
    align-items: center;
    color: var(--site-blue);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

    .site-brand-text.is-visible {
        display: inline-flex;
    }

.site-nav-link {
    color: var(--site-blue);
    font-weight: 500;
    letter-spacing: 0.02em;
    font-size: 1rem;
}

    .site-nav-link:hover,
    .site-nav-link:focus,
    .site-nav-link.active {
        color: var(--site-blue);
    }

.site-navbar-toggler {
    border-color: rgba(37, 55, 77, 0.35);
}

    .site-navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2837,55,77,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }


/* =========================================================
   BOTONES
   ========================================================= */

.btn-afiliacion {
    background-color: #253775;
    color: white;
    border: none;
}

    .btn-afiliacion:hover {
        background-color: #00b8f0;
        color: white;
    }

.btn-padron {
    background-color: #0043A1;
    color: white;
    border: none;
}

    .btn-padron:hover {
        background-color: #00b8f0;
        color: white;
    }

.btn-comites {
    background-color: #1f2f6b;
    color: white;
    border: none;
}

    .btn-comites:hover {
        background-color: #00b8f0;
        color: white;
    }

.btn-capacitacion {
    background-color: #ffffff;
    color: #0043A1;
    border-color: #0043A1;
}

    .btn-capacitacion:hover {
        background-color: #00b8f0;
        color: white;
    }


/* =========================================================
   HOME
   ========================================================= */

.home-hero {
    background-image: url("/images/bg-desktop.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .home-hero {
        background-image: url("/images/bg-mobile.png");
        background-position: center;
    }
}

.home-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #e3f2fd;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.display-5,
.display-6,
.h1,
.h2,
.h3,
.h4 {
    letter-spacing: 0.01em;
}

.home-subtitle {
    max-width: 46rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.home-shortcuts {
    border-radius: 24px;
    font-family: "Gotham", sans-serif;
    font-weight: bold;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    background: radial-gradient(circle at top, rgba(30, 136, 229, 0.12), transparent 35%), linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.login-card {
    border-radius: 28px;
}


/* =========================================================
   ESTRADOS - FRONTEND
   ========================================================= */

.estrados-section {
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.estrados-form-card {
    position: sticky;
    top: 1.5rem;
    border-radius: 24px;
}

.estrado-card {
    padding: 1.75rem;
    border-radius: 20px;
    background-image: url("/images/bg-card.png");
    background-size: cover;
    background-position: center;
    color: white;
    box-shadow: 0 18px 45px rgba(13, 71, 161, 0.16);
}

.estrado-card__meta {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.estrado-card__title {
    margin-bottom: 0.3rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.estrado-card__button {
    padding-inline: 1.35rem;
    border-radius: 999px;
    font-weight: 700;
}

.estrado-card__filename {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.users-card {
    border-radius: 22px;
}

@media (max-width: 1199.98px) {
    .estrados-form-card {
        position: static;
    }
}


/* =========================================================
   PADRÓN
   ========================================================= */

.tabla-padron thead th {
    background-color: #253775;
    color: white;
    border: none;
    text-align: center;
    align-content: center;
}

.d-grid div {
    text-align: center;
}

.d-grid p {
    font-size: 24px;
    font-weight: bold;
    color: #0d47a1;
    margin: 0;
}

.busqueda-card {
    margin-top: -45px;
}

.busqueda-tab .row {
    margin-top: -25px;
}

.totales-box {
    text-align: center;
    margin-bottom: 25px;
}

.titulo-total {
    font-family: var(--font-display);
    font-size: 26px;
}

.numero-total {
    font-size: 36px;
    font-weight: bold;
    color: #0d47a1;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.nav-logout {
    color: inherit; /* usa el mismo azul del menú */
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

    .nav-logout:hover {
        color: #dc3545; /* rojo solo en hover */
        text-decoration: none;
    }


/* =========================================================
   LOCALIZA TU COMITÉ
   ========================================================= */

.comites-page {
    background: radial-gradient(circle at top left, rgba(37, 55, 117, 0.08), transparent 30%), linear-gradient(180deg, #f5f7fb 0%, #ececec 100%);
}

.comites-shell {
    max-width: 1140px;
    margin: 0 auto;
}

.comites-hero {
    background: linear-gradient( 135deg, rgba(37, 55, 117, 0.08), rgba(255, 255, 255, 0.92) );
    border-radius: 28px;
    padding: 3rem 2rem;
    margin-bottom: 1.75rem;
}

.comites-eyebrow {
    color: #4b5f9f;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comites-title {
    font-family: var(--font-body);
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1;
    color: #2c313d;
}

.comites-filters {
    border-radius: 24px;
}

.comites-results {
    display: grid;
    gap: 1.25rem;
}

.comite-card {
    border-radius: 24px;
    background-color: rgba(255, 255, 255, 0.94);
}

.comite-kicker {
    color: #5d6f9f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.comite-card__title {
    font-family: var(--font-display);
    color: #22346d;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.comite-card__meta {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #33415c;
    line-height: 1.6;
}

    .comite-card__meta i {
        color: #22346d;
        margin-top: 0.2rem;
    }

    .comite-card__meta a {
        color: #1b67c9;
        text-decoration: none;
    }

        .comite-card__meta a:hover {
            text-decoration: underline;
        }

.comite-card__details summary {
    cursor: pointer;
    color: #22346d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.comite-card__details-body {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.comite-card__extra-list {
    display: grid;
    gap: 0.9rem;
}

    .comite-card__extra-list dt {
        font-weight: 700;
        color: #22346d;
    }

    .comite-card__extra-list dd {
        margin-bottom: 0;
        color: #5c6577;
    }

.comite-card__socials {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.comite-card__leaders {
    display: grid;
    gap: 0.7rem;
}

.comite-card__leader-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 1rem;
    align-items: start;
}

.comite-card__leader-label {
    font-weight: 700;
    color: #22346d;
}

.comite-card__leader-value {
    color: #33415c;
}

.comite-card__map {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(34, 52, 109, 0.12);
    margin-top: 0.35rem;
}

    .comite-card__map iframe {
        width: 100%;
        min-height: 360px;
        border: 0;
        display: block;
    }

.comite-card__socials a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34, 52, 109, 0.35);
    border-radius: 999px;
    color: #22346d;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

    .comite-card__socials a:hover {
        background-color: #22346d;
        color: #fff;
        transform: translateY(-1px);
    }


/* =========================================================
   LOCALIZA TU COMITÉ - MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    .comites-hero {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .comite-card__leader-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .comite-card__map iframe {
        min-height: 280px;
    }
}
