/* ============================================================
   pages-static.css — Vistas estáticas · Umbral CMS
   Bootstrap 5.3 companion stylesheet
   Variables en scope .static-page — NO colisionan con CSS global
   ============================================================ */

/* ── Todas las variables con prefijo --sp- dentro del scope ── */
.static-page {
    --sp-orange:        #f47920;
    --sp-orange-dark:   #d4620a;
    --sp-blue:          #1a3a5c;
    --sp-blue-mid:      #2d6096;
    --sp-bg-light:      #f5f6f8;   /* gris claro — distinto a --umbral-gray global */
    --sp-text:          #333d47;
    --sp-muted:         #6c7a89;
    --sp-border:        #dde3ea;
    --sp-white:         #ffffff;
    --sp-radius-card:   12px;
    --sp-radius-btn:    6px;
    --sp-shadow-card:   0 2px 16px rgba(26,58,92,.10);
    --sp-shadow-hover:  0 6px 28px rgba(26,58,92,.18);
    --sp-transition:    .25s ease;

    padding: 2.5rem 0 3.5rem;
    color: var(--sp-text);
    font-size: .975rem;
    line-height: 1.75;
}

/* ── Títulos de sección ─────────────────────────────────────── */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sp-blue);
    margin-bottom: 1.5rem;
    padding-bottom: .6rem;
    border-bottom: 3px solid var(--sp-orange);
    display: inline-block;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--sp-muted);
    margin-top: -.75rem;
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════════════════════ */

.contact-info-card {
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    box-shadow: var(--sp-shadow-card);
    overflow: hidden;
    height: 100%;
}

.contact-info-card__header {
    background: var(--sp-blue);
    color: #fff;
    padding: .9rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.contact-info-card__body {
    padding: 1.25rem 1.4rem;
}

.members-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.members-list__item {
    padding: .55rem 0;
    border-bottom: 1px solid var(--sp-border);
}

.members-list__item:last-child {
    border-bottom: none;
}

.members-list__role {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--sp-blue-mid);
    margin-bottom: .1rem;
}

.members-list__name {
    display: block;
    font-size: .88rem;
    color: var(--sp-text);
}

.members-list__badge {
    font-size: .68rem;
    color: var(--sp-orange);
    font-style: italic;
    margin-right: .25rem;
}

.contact-phone-img {
    width: 100%;
    border-radius: var(--sp-radius-card);
    margin-top: 1.25rem;
    box-shadow: var(--sp-shadow-card);
}

.contact-form-card {
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    box-shadow: var(--sp-shadow-card);
    padding: 2rem 2.2rem;
    height: 100%;
}

.contact-form-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sp-blue);
    margin-bottom: .35rem;
}

.contact-form-card__subtitle {
    font-size: .88rem;
    color: var(--sp-muted);
    margin-bottom: 1.6rem;
}

.contact-form-card .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--sp-blue);
    margin-bottom: .3rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 1.5px solid var(--sp-border);
    border-radius: var(--sp-radius-btn);
    font-size: .9rem;
    color: var(--sp-text);
    transition: border-color var(--sp-transition), box-shadow var(--sp-transition);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--sp-orange);
    box-shadow: 0 0 0 3px rgba(244,121,32,.15);
    outline: none;
}

.contact-form-card .form-control.is-invalid {
    border-color: #dc3545;
}

.contact-form-card textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.btn-umbral-submit {
    background: var(--sp-orange);
    color: #fff;
    border: none;
    border-radius: var(--sp-radius-btn);
    padding: .65rem 2rem;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background var(--sp-transition), transform var(--sp-transition), box-shadow var(--sp-transition);
    width: 100%;
}

.btn-umbral-submit:hover,
.btn-umbral-submit:focus {
    background: var(--sp-orange-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(244,121,32,.35);
}

.btn-umbral-submit:active {
    transform: translateY(0);
}

.contact-alert-success {
    background: #eaf7f0;
    border-left: 4px solid #28a745;
    border-radius: var(--sp-radius-btn);
    color: #1a6633;
    padding: 1rem 1.25rem;
    font-size: .92rem;
    margin-bottom: 1.25rem;
}

.contact-alert-error {
    background: #fff4f4;
    border-left: 4px solid #dc3545;
    border-radius: var(--sp-radius-btn);
    color: #9b1c1c;
    padding: 1rem 1.25rem;
    font-size: .92rem;
    margin-bottom: 1.25rem;
}

.contact-email-bar {
    background: var(--sp-bg-light);
    border-radius: var(--sp-radius-card);
    padding: 1.1rem 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-email-bar__label {
    font-size: .85rem;
    color: var(--sp-muted);
    font-weight: 600;
}

.contact-email-bar__link {
    color: var(--sp-blue);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 2px solid var(--sp-orange);
    transition: color var(--sp-transition);
}

.contact-email-bar__link:hover {
    color: var(--sp-orange);
}

/* ═══════════════════════════════════════════════════════════
   LINKS
═══════════════════════════════════════════════════════════ */

.links-page-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--sp-text);
    margin-bottom: 0;
}

.links-page-title strong {
    color: var(--sp-blue);
    font-weight: 700;
}

.link-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    overflow: hidden;
    background: var(--sp-white);
    box-shadow: var(--sp-shadow-card);
    text-decoration: none;
    transition: box-shadow var(--sp-transition), transform var(--sp-transition);
    height: 100%;
}

.link-card:hover {
    box-shadow: var(--sp-shadow-hover);
    transform: translateY(-3px);
}

.link-card--pending {
    cursor: default;
    pointer-events: none;
    opacity: .88;
}

.link-card__img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem .75rem;
    min-height: 110px;
    background: var(--sp-white);
}

.link-card__img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.link-card__bar {
    height: 6px;
    background: var(--sp-orange);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   UMBRAL — Quiénes somos
═══════════════════════════════════════════════════════════ */

.umbral-intro {
    background: var(--sp-bg-light);
    border-left: 4px solid var(--sp-orange);
    border-radius: 0 var(--sp-radius-card) var(--sp-radius-card) 0;
    padding: 1.4rem 1.75rem;
}

.umbral-intro__text {
    font-size: 1rem;
    margin-bottom: .65rem;
    color: var(--sp-text);
}

.umbral-intro__list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--sp-text);
    font-size: .95rem;
    line-height: 1.8;
}

.umbral-accent {
    color: var(--sp-orange);
    font-weight: 700;
}

.umbral-card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    overflow: hidden;
    box-shadow: var(--sp-shadow-card);
    background: var(--sp-white);
    transition: box-shadow var(--sp-transition);
}

.umbral-card:hover {
    box-shadow: var(--sp-shadow-hover);
}

.umbral-card__header {
    padding: .75rem 1.25rem;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.umbral-card__header--blue      { background: var(--sp-blue); }
.umbral-card__header--orange    { background: var(--sp-orange); }
.umbral-card__header--yellow    { background: #e6a817; }
.umbral-card__header--green     { background: #5aab2e; }
.umbral-card__header--turquoise { background: #2ab5b5; }
.umbral-card__header--purple    { background: #8b5cf6; }

.umbral-card__body {
    padding: 1.1rem 1.35rem;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--sp-text);
}

.umbral-card__body ul {
    padding-left: 1.2rem;
    margin: 0;
}

.umbral-card__body ul li {
    margin-bottom: .35rem;
}

.umbral-card__body ul li:last-child {
    margin-bottom: 0;
}

.umbral-card__body--center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
}

.umbral-card__vision-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--sp-blue);
    line-height: 1.4;
    margin: 0;
}

.umbral-contact-banner {
    display: inline-block;
    border-radius: var(--sp-radius-card);
    overflow: hidden;
    box-shadow: var(--sp-shadow-card);
    transition: box-shadow var(--sp-transition), transform var(--sp-transition);
}

.umbral-contact-banner:hover {
    box-shadow: var(--sp-shadow-hover);
    transform: translateY(-3px);
}

.umbral-contact-banner__img {
    display: block;
    max-width: 560px;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   AUTODETECTION TESTS — Index
═══════════════════════════════════════════════════════════ */

.tests-page-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--sp-muted);
    margin-bottom: .3rem;
}

.tests-page-title strong {
    color: var(--sp-blue);
    font-weight: 700;
}

.tests-page-subtitle {
    font-size: .9rem;
    color: var(--sp-muted);
    max-width: 520px;
    margin: 0 auto;
}

.test-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    background: var(--sp-white);
    box-shadow: var(--sp-shadow-card);
    text-decoration: none;
    color: var(--sp-text);
    transition: box-shadow var(--sp-transition), transform var(--sp-transition);
    height: 100%;
    overflow: hidden;
}

.test-card:hover {
    box-shadow: var(--sp-shadow-hover);
    transform: translateY(-3px);
    color: var(--sp-text);
}

.test-card__icon {
    background: var(--sp-orange);
    color: #fff;
    font-size: 1.6rem;
    padding: 1rem 1.25rem .75rem;
    line-height: 1;
}

.test-card__body {
    padding: 1.1rem 1.25rem;
    flex: 1;
}

.test-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sp-blue);
    margin-bottom: .4rem;
    line-height: 1.35;
}

.test-card__desc {
    font-size: .85rem;
    color: var(--sp-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.test-card__footer {
    padding: .65rem 1.25rem;
    border-top: 1px solid var(--sp-border);
    background: var(--sp-bg-light);
}

.test-card__cta {
    font-size: .82rem;
    font-weight: 600;
    color: var(--sp-orange);
    letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════
   AUTODETECTION TESTS — View (detalle / preguntas)
═══════════════════════════════════════════════════════════ */

.test-detail-card {
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    box-shadow: var(--sp-shadow-card);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.test-detail-card__header {
    background: var(--sp-blue);
    color: #fff;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.test-detail-card__desc {
    padding: 1rem 1.5rem .5rem;
    font-size: .9rem;
    color: var(--sp-muted);
    margin-bottom: 0;
    border-bottom: 1px solid var(--sp-border);
}

.test-questions-list {
    list-style: none;
    padding: 1rem 1.5rem;
    margin: 0;
}

.test-questions-list__item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--sp-bg-light);
    font-size: .93rem;
    line-height: 1.5;
}

.test-questions-list__item:last-child {
    border-bottom: none;
}

.test-questions-list__bullet {
    color: var(--sp-orange);
    font-size: .45rem;
    margin-top: .45rem;
    flex-shrink: 0;
}

.test-questions-list__text {
    color: var(--sp-text);
}

.test-detail-card__conclusion {
    background: var(--sp-bg-light);
    border-top: 1px solid var(--sp-border);
    padding: .9rem 1.5rem;
    font-size: .88rem;
    color: var(--sp-blue-mid);
    font-style: italic;
}

.btn-umbral-back {
    display: inline-flex;
    align-items: center;
    background: #6abf4b;
    color: #fff;
    border: none;
    border-radius: var(--sp-radius-btn);
    padding: .45rem 1.1rem;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--sp-transition), transform var(--sp-transition);
}

.btn-umbral-back:hover {
    background: #58a83a;
    color: #fff;
    transform: translateX(-2px);
}

.tests-footer {
    border-top: 1px solid var(--sp-border);
    padding-top: 1.5rem;
}

.tests-footer__cta-text {
    font-size: 1.3rem;
    color: var(--sp-blue);
    line-height: 1.3;
    margin-bottom: 0;
}

.tests-footer__img {
    max-width: 300px;
    width: 100%;
    border-radius: var(--sp-radius-card);
    box-shadow: var(--sp-shadow-card);
}

/* ═══════════════════════════════════════════════════════════
   REGISTRO — Newsletter radio buttons
═══════════════════════════════════════════════════════════ */

.reg-newsletter-opts {
    display: flex;
    gap: 1.25rem;
}

.reg-newsletter-opt {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

.reg-newsletter-opt input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--sp-orange);
    cursor: pointer;
    flex-shrink: 0;
}

.reg-newsletter-opt__label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--sp-text);
}

/* Sobreescribir el color de Bootstrap cuando está seleccionado */
.reg-newsletter-opt .form-check-input:checked {
    background-color: var(--sp-orange) !important;
    border-color: var(--sp-orange) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 165, 0, 0.25); /* Opcional: brillo naranja al enfocar */
}

/* Si prefieres usar accent-color, primero quita el estilo de Bootstrap */
.reg-newsletter-opt .form-check-input {
    appearance: auto; /* Esto anula el diseño custom de Bootstrap y usa el nativo con tu accent-color */
    background-image: none;
}

/* ═══════════════════════════════════════════════════════════
   STAFF
═══════════════════════════════════════════════════════════ */

.staff-page-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--sp-muted);
    margin-bottom: .3rem;
}

.staff-page-title strong {
    color: var(--sp-blue);
    font-weight: 700;
}

.staff-page-subtitle {
    font-size: .9rem;
    color: var(--sp-muted);
}

/* Tarjeta de miembro */
.staff-card {
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    box-shadow: var(--sp-shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--sp-transition), transform var(--sp-transition);
    text-align: center;
}

.staff-card:hover {
    box-shadow: var(--sp-shadow-hover);
    transform: translateY(-4px);
}

/* Avatar con ícono */
.staff-card__avatar {
    background: linear-gradient(135deg, var(--sp-blue) 0%, var(--sp-blue-mid) 100%);
    color: #fff;
    font-size: 2rem;
    padding: 1.4rem 1rem 1.1rem;
    line-height: 1;
}

/* Cuerpo */
.staff-card__body {
    padding: 1rem 1.1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
}

/* Rol */
.staff-card__rol {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--sp-blue-mid);
    background: var(--sp-bg-light);
    border-radius: 20px;
    padding: .2rem .75rem;
    margin-bottom: .15rem;
}

/* Badge (Coordinador, Asesor de juego, etc.) */
.staff-card__badge {
    font-size: .73rem;
    color: var(--sp-orange);
    font-style: italic;
}

/* Nombre */
.staff-card__nombre {
    font-size: .97rem;
    font-weight: 700;
    color: var(--sp-text);
    margin-top: .1rem;
}

/* Email */
.staff-card__email {
    font-size: .78rem;
    color: var(--sp-orange);
    text-decoration: none;
    word-break: break-all;
    transition: color var(--sp-transition);
    margin-top: .2rem;
}

.staff-card__email:hover {
    color: var(--sp-blue);
    text-decoration: underline;
}

/* Imagen pie de página */
.staff-footer-img {
    max-width: 420px;
    border-radius: var(--sp-radius-card);
    box-shadow: var(--sp-shadow-card);
}

/* ═══════════════════════════════════════════════════════════
   BIBLIOGRAFÍA
═══════════════════════════════════════════════════════════ */

.biblio-page-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--sp-muted);
    margin-bottom: .4rem;
}

.biblio-page-title strong {
    color: var(--sp-blue);
    font-weight: 700;
}

.biblio-page-subtitle {
    font-size: .9rem;
    color: var(--sp-muted);
    max-width: 540px;
    margin: 0 auto;
}

/* Lista contenedora */
.biblio-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

/* Cada ítem de referencia */
.biblio-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-left: 4px solid var(--sp-orange);
    border-radius: var(--sp-radius-card);
    padding: 1rem 1.25rem;
    box-shadow: var(--sp-shadow-card);
    text-decoration: none;
    color: var(--sp-text);
    transition: box-shadow var(--sp-transition), transform var(--sp-transition), border-color var(--sp-transition);
}

.biblio-item:hover {
    box-shadow: var(--sp-shadow-hover);
    transform: translateX(4px);
    border-left-color: var(--sp-blue);
    color: var(--sp-text);
}

/* Número de orden */
.biblio-item__number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: var(--sp-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
}

/* Contenido textual */
.biblio-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.biblio-item__label {
    font-size: .95rem;
    font-weight: 700;
    color: var(--sp-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.biblio-item__url {
    font-size: .78rem;
    color: var(--sp-orange);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
}

.biblio-item__desc {
    font-size: .83rem;
    color: var(--sp-muted);
    line-height: 1.4;
    margin-top: .1rem;
}

/* Ícono externo */
.biblio-item__arrow {
    flex-shrink: 0;
    color: var(--sp-muted);
    font-size: 1rem;
    transition: color var(--sp-transition), transform var(--sp-transition);
}

.biblio-item:hover .biblio-item__arrow {
    color: var(--sp-orange);
    transform: translateX(3px) translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════
   AVISO DE PRIVACIDAD
═══════════════════════════════════════════════════════════ */

/* Tarjeta de sección */
.privacy-card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    overflow: hidden;
    box-shadow: var(--sp-shadow-card);
    background: var(--sp-white);
}

.privacy-card__header {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: var(--sp-blue);
    color: #fff;
    padding: .75rem 1.25rem;
    font-size: .95rem;
    font-weight: 700;
}

.privacy-card__num {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    background: var(--sp-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
}

.privacy-card__body {
    padding: 1.25rem 1.5rem;
    font-size: .92rem;
    line-height: 1.75;
    color: var(--sp-text);
}

.privacy-card__body p { margin-bottom: .65rem; }
.privacy-card__body p:last-child { margin-bottom: 0; }

.privacy-card__body ul {
    padding-left: 1.3rem;
    margin: 0;
}

.privacy-card__body ul li {
    margin-bottom: .3rem;
}

/* Link dentro del aviso */
.privacy-link {
    color: var(--sp-orange);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--sp-transition);
}

.privacy-link:hover {
    border-bottom-color: var(--sp-orange);
    color: var(--sp-orange);
}

/* Cajas de tipos de datos */
.privacy-data-box {
    background: var(--sp-bg-light);
    border-radius: var(--sp-radius-btn);
    padding: 1rem 1.1rem;
    height: 100%;
    font-size: .88rem;
}

.privacy-data-box__title {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--sp-blue-mid);
    margin-bottom: .6rem;
}

.privacy-data-box ul {
    padding-left: 1.1rem;
    margin-bottom: .5rem;
}

.privacy-data-box__note {
    font-size: .78rem;
    color: var(--sp-muted);
    font-style: italic;
    margin-top: .5rem;
    margin-bottom: 0 !important;
    border-top: 1px solid var(--sp-border);
    padding-top: .5rem;
}

/* Label de finalidad */
.privacy-finality-label {
    font-size: .9rem;
    margin-bottom: .4rem !important;
}

/* Derechos ARCO */
.privacy-arco-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: var(--sp-bg-light);
    border-radius: var(--sp-radius-btn);
    padding: .85rem 1rem;
    height: 100%;
}

.privacy-arco-item__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.privacy-arco-item__title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--sp-blue);
    margin-bottom: .2rem;
}

.privacy-arco-item__desc {
    font-size: .8rem;
    color: var(--sp-muted);
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════
   GALERÍA
═══════════════════════════════════════════════════════════ */

/* Encabezado de sección */
.gallery-section__header {
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--sp-muted);
    padding-bottom: .6rem;
    border-bottom: 3px solid var(--sp-orange);
}

.gallery-section__header strong {
    color: var(--sp-blue);
    font-weight: 700;
}

/* ── Fotos ──────────────────────────────────────────────── */
.gallery-photo-card {
    display: block;
    border-radius: var(--sp-radius-card);
    overflow: hidden;
    box-shadow: var(--sp-shadow-card);
    text-decoration: none;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    transition: box-shadow var(--sp-transition), transform var(--sp-transition);
}

.gallery-photo-card:hover {
    box-shadow: var(--sp-shadow-hover);
    transform: translateY(-3px);
}

.gallery-photo-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--sp-bg-light);
}

.gallery-photo-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.gallery-photo-card:hover .gallery-photo-card__img {
    transform: scale(1.07);
}

/* Overlay con lupa */
.gallery-photo-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,58,92,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--sp-transition);
    color: #fff;
    font-size: 1.75rem;
}

.gallery-photo-card:hover .gallery-photo-card__overlay {
    opacity: 1;
}

/* Descripción debajo de la foto */
.gallery-photo-card__desc {
    padding: .5rem .75rem;
    font-size: .78rem;
    color: var(--sp-muted);
    line-height: 1.4;
    border-top: 1px solid var(--sp-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Modal lightbox ─────────────────────────────────────── */
.gallery-modal {
    background: #000;
    border: none;
    border-radius: var(--sp-radius-card);
    overflow: hidden;
}

.gallery-modal__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 10;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--sp-transition);
}

.gallery-modal__close:hover {
    background: rgba(255,255,255,.3);
}

.gallery-modal__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #000;
}

.gallery-modal__img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.gallery-modal__desc {
    padding: .65rem 1rem;
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    text-align: center;
    min-height: 1rem;
}

/* ── Videos ─────────────────────────────────────────────── */
.gallery-video-card {
    border-radius: var(--sp-radius-card);
    overflow: hidden;
    box-shadow: var(--sp-shadow-card);
    background: #000;
    transition: box-shadow var(--sp-transition);
}

.gallery-video-card:hover {
    box-shadow: var(--sp-shadow-hover);
}

.gallery-video-card__desc {
    padding: .6rem 1rem;
    font-size: .83rem;
    color: rgba(255,255,255,.7);
    background: #111;
}

/* ── Estado vacío ───────────────────────────────────────── */
.gallery-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--sp-muted);
}

.gallery-empty__icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
    opacity: .4;
}

.gallery-empty__text {
    font-size: 1rem;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .contact-form-card {
        padding: 1.5rem 1.25rem;
        margin-top: 1.5rem;
    }
    .contact-info-card {
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .contact-email-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
    }
    .link-card__img-wrap {
        min-height: 85px;
        padding: .75rem .5rem;
    }
    .link-card__img {
        max-height: 60px;
    }
}

/* Estilo cuando el botón está procesando */
.btn-umbral-submit:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* Espacio para el spinner si es necesario */
.spinner-border-sm {
    margin-right: 0.5rem;
    vertical-align: middle;
}