/* Portada personal: cabecera oscura y cuerpo claro. */

/* Barra de desplazamiento siempre visible: si no, el logo y el menú saltan entre páginas cortas y largas. */
html {
    overflow-y: scroll;
}

body {
    font-family: var(--site-font, "Inter", sans-serif);
    color: var(--site-text, #1c1f24);
    background: var(--site-bg, #f4f5f7);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 1400px) {
    .container {
        max-width: min(92vw, 1560px);
    }
}

.navbar-custom {
    background: var(--site-dark, #121418);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.navbar-custom .navbar-collapse {
    background: var(--site-dark, #121418);
}

.main-wrapper {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 92px;
}

.main-wrapper-home {
    padding-top: 0;
    background: var(--site-bg, #f4f5f7);
}

.home-hero {
    background: var(--site-dark, #121418);
    color: #f5f7fa;
    padding: 118px 0 64px;
}

.home-hero-logo {
    width: min(240px, 70vw);
    height: auto;
}

.home-hero-title {
    margin: 0 0 0.75rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
}

.home-hero-lead {
    max-width: 34rem;
    margin: 0 0 1.5rem;
    color: rgba(245, 247, 250, 0.78);
    font-size: 1.05rem;
    line-height: 1.55;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    border-radius: var(--site-radius-sm, 8px);
    font-weight: 600;
    text-decoration: none;
}

.home-btn-solid {
    background: var(--brand, #1d6fe0);
    color: #fff;
}

.home-btn-solid:hover {
    background: var(--brand-hover, #185fbf);
    color: #fff;
}

.home-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.home-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.home-interests {
    background: var(--site-bg, #f4f5f7);
    padding: 1.75rem 0 0.25rem;
}

.interest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 1.35rem 0.9rem 1.2rem;
    border: 1px solid #e6e8ee;
    border-radius: var(--site-radius, 16px);
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.interest-card:hover {
    border-color: var(--brand, #1d6fe0);
    color: inherit;
}

.interest-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.75rem;
    border-radius: var(--site-radius-sm, 12px);
    background: rgba(var(--brand-rgb, 29, 111, 224), 0.1);
    color: var(--brand, #1d6fe0);
    font-size: 1.15rem;
}

.interest-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.interest-text {
    margin-top: 0.25rem;
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.4;
}

.home-section {
    background: var(--site-bg, #f4f5f7);
    padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-kicker-dark {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--brand, #1d6fe0);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-section h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.home-link {
    color: var(--brand, #1d6fe0);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.home-link:hover {
    color: var(--brand-hover, #185fbf);
}

.home-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 14px);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-card:hover {
    border-color: rgba(var(--brand-rgb, 29, 111, 224), 0.35);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
    color: inherit;
    transform: translateY(-2px);
}

.home-card-media {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    background: #dfe6ee;
    overflow: hidden;
}

.home-card-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--brand-rgb, 29, 111, 224), 0.08);
    color: var(--brand, #1d6fe0);
    font-size: 2.25rem;
}

.home-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-card-media-contain {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    background: #eef2f6;
}

.home-card-media-contain img {
    width: auto;
    height: auto;
    max-width: 70%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--site-radius-sm, 12px);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
}

.home-feature {
    display: grid;
    grid-template-columns: 240px 1fr;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 16px);
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.home-feature:hover {
    border-color: #c5d8f6;
    color: inherit;
}

.home-feature-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #eef2f6;
}

.home-feature-media img {
    width: auto;
    max-width: 100%;
    max-height: 320px;
    border-radius: var(--site-radius, 18px);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.home-feature-body {
    padding: 1.5rem 1.6rem;
}

.home-feature-body h3 {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.home-feature-body p {
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.home-card-body {
    flex: 1 1 auto;
    padding: 1rem 1.05rem 1.15rem;
}

.home-card-meta {
    margin-bottom: 0.45rem;
    color: var(--brand, #1d6fe0);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-card h3 {
    margin: 0 0 0.4rem;
    color: var(--site-text, #1c1f24);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-card p {
    margin: 0;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.5;
}

.home-card h3,
.home-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.home-quick-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 14px);
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.home-quick-link:hover {
    border-color: var(--brand, #1d6fe0);
    color: inherit;
}

.home-quick-link h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.home-quick-link p {
    margin: 0.15rem 0 0;
    color: #667085;
    font-size: 0.86rem;
}

.site-footer {
    flex-shrink: 0;
    padding: 1.1rem 0;
    border-top: 1px solid #e4e7ec;
    background: #fff;
    color: #667085;
    font-size: 0.875rem;
}

.site-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1.75rem;
}

.site-footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    color: var(--site-text, #1c1f24);
    font-weight: 600;
}

.site-footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.site-footer-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-copyright {
    color: #667085;
    font-size: 0.8rem;
    font-weight: 400;
}

.footer-legal-nav,
.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.footer-legal-nav {
    gap: 0.25rem 1.1rem;
}

.site-footer-social {
    gap: 0.85rem;
    font-size: 1.05rem;
}

.footer-legal-link,
.footer-link {
    color: #667085;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-link:hover,
.footer-link:hover {
    color: var(--brand, #1d6fe0);
}

.footer-quote {
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 400;
}

/* Pie oscuro: cierra la página con el mismo tono que la portada. */
.site-footer-dark {
    position: relative;
    margin-top: 3.5rem;
    padding: 0;
    border-top: 0;
    background: var(--site-dark, #121418);
    color: rgba(255, 255, 255, 0.68);
    overflow: hidden;
}

.site-footer-dark::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand, #1d6fe0), transparent);
    opacity: 0.8;
}

.site-footer-stars::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 8% 22%, rgba(255, 255, 255, 0.75), transparent 60%),
        radial-gradient(1px 1px at 17% 71%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1.5px 1.5px at 29% 38%, rgba(255, 255, 255, 0.8), transparent 60%),
        radial-gradient(1px 1px at 41% 84%, rgba(255, 255, 255, 0.45), transparent 60%),
        radial-gradient(1px 1px at 52% 15%, rgba(255, 255, 255, 0.6), transparent 60%),
        radial-gradient(1.5px 1.5px at 63% 56%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(1px 1px at 74% 28%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1px 1px at 83% 77%, rgba(255, 255, 255, 0.65), transparent 60%),
        radial-gradient(1.5px 1.5px at 92% 44%, rgba(255, 255, 255, 0.75), transparent 60%),
        radial-gradient(1px 1px at 35% 60%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(1px 1px at 58% 92%, rgba(255, 255, 255, 0.4), transparent 60%),
        radial-gradient(1px 1px at 96% 10%, rgba(255, 255, 255, 0.5), transparent 60%);
    background-size: 380px 240px;
    animation: footer-twinkle 6s ease-in-out infinite alternate;
}

@keyframes footer-twinkle {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

.site-footer-dark .container {
    position: relative;
    z-index: 1;
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto auto;
    gap: 1.5rem 3rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.site-footer-dark .site-footer-brand {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.site-footer-dark .site-footer-logo {
    width: 40px;
    height: 40px;
}

.site-footer-lead {
    max-width: 26rem;
    margin: 0.6rem 0 0.85rem;
    line-height: 1.55;
}

.site-footer-dark .site-footer-social {
    gap: 0.6rem;
}

.site-footer-dark .footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-footer-dark .footer-link:hover {
    background: var(--brand, #1d6fe0);
    color: #fff;
    transform: translateY(-2px);
}

.site-footer-col h2 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-col ul {
    display: grid;
    gap: 0.4rem 1.5rem;
}

/* Muchos enlaces: en dos columnas para que el pie no crezca. */
.site-footer-col ul:has(> li:nth-child(5)) {
    grid-template-columns: repeat(2, max-content);
}

.site-footer-col a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-col a:hover {
    color: #fff;
}

.site-footer-bottom {
    position: relative;
    z-index: 1;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-dark .footer-copyright,
.site-footer-dark .footer-quote {
    color: rgba(255, 255, 255, 0.5);
}

/* Pie oscuro en una línea: bajo, con el mismo tono que la portada. */
.site-footer-line {
    margin-top: 0;
    padding: 1rem 0;
}

.site-footer-line .site-footer-brand {
    font-size: 0.95rem;
}

.site-footer-line .site-footer-logo {
    width: 32px;
    height: 32px;
}

.site-footer-line .footer-legal-link {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer-line .footer-legal-link:hover {
    color: #fff;
}

.site-footer-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.1rem;
}

.site-footer-line .footer-link {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
}

/* Hoja blanca: la página va enmarcada al ancho del contenido, con la portada oscura arriba y la hoja debajo. */
.home-sheet-wrap {
    position: relative;
    z-index: 2;
    padding-top: clamp(1rem, 2.5vw, 1.75rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.home-sheet-wrap > .container > .cms-section:first-child {
    overflow: hidden;
    border-radius: var(--site-radius, 16px) var(--site-radius, 16px) 0 0;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
}

.home-sheet-wrap > .container > .cms-section:first-child .container {
    max-width: none;
    padding-left: clamp(1rem, 3vw, 2.5rem);
    padding-right: clamp(1rem, 3vw, 2.5rem);
}

.home-sheet {
    padding: clamp(0.5rem, 1.5vw, 1rem) clamp(0.25rem, 1.5vw, 1rem) clamp(0.5rem, 1.5vw, 1rem);
    border: 1px solid #e6e8ee;
    border-top: 0;
    border-radius: 0 0 var(--site-radius, 16px) var(--site-radius, 16px);
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
}

.home-sheet .interest-card {
    background: #f8f9fb;
    box-shadow: none;
}

/* Secciones que aparecen al bajar (solo si el JS las marca). */
.scroll-reveal .reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal .reveal-item.is-visible {
    opacity: 1;
    transform: none;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: var(--brand, #1d6fe0);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    filter: brightness(1.1);
}

@media (prefers-reduced-motion: reduce) {
    .site-footer-stars::after {
        animation: none;
    }

    .scroll-reveal .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 767.98px) {
    .site-footer-row,
    .site-footer-brand,
    .footer-legal-nav {
        justify-content: center;
        text-align: center;
    }

    .site-footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer-col ul {
        justify-content: center;
    }

    .site-footer-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer-dark .site-footer-social {
        justify-content: center;
    }

    .site-footer-bottom,
    .site-footer-line {
        padding-bottom: 4.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.5rem 0 0.75rem;
    }

    .home-hero {
        padding-top: 104px;
        text-align: center;
    }

    .home-hero-lead,
    .home-hero-actions {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-feature {
        grid-template-columns: 1fr;
    }
}

.breadcrumb-custom {
    margin-bottom: 1.1rem;
    color: #667085;
}

.breadcrumb-custom a {
    color: #667085;
}

.breadcrumb-custom .active {
    color: var(--site-text, #1c1f24);
}

.page-section {
    padding: 0.25rem 0 2.75rem;
}

.page-head {
    margin-bottom: 1.35rem;
}

.page-head h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.page-head p {
    max-width: 40rem;
    margin: 0.55rem 0 0;
    color: #667085;
    font-size: 1.02rem;
    line-height: 1.55;
}

.page-block-title {
    margin: 0 0 0.9rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.35rem;
}

.page-toolbar .page-filters {
    margin-bottom: 0;
}

.page-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.35rem;
}

.page-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    background: #fff;
    color: var(--site-text, #1c1f24);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.page-filter:hover,
.page-filter.is-active {
    border-color: var(--brand, #1d6fe0);
    background: var(--brand, #1d6fe0);
    color: #fff;
}

.page-prose,
.page-article,
.page-form {
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 16px);
    background: #fff;
}

.page-prose,
.page-article {
    padding: 1.5rem 1.4rem 1.7rem;
}

.page-article h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    margin-bottom: 1.1rem;
    color: var(--brand, #1d6fe0);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-cover {
    overflow: hidden;
    margin-bottom: 1.25rem;
    border-radius: var(--site-radius-sm, 12px);
    background: #eef2f6;
}

.page-cover img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

.page-prose,
.page-article .content-html,
.page-article .lead {
    color: #3c4450;
    font-size: 1.02rem;
    line-height: 1.7;
}

.page-prose img,
.contact-aside img,
.page-article .content-html img {
    max-width: 100%;
    height: auto;
}

.page-section .home-feature-media {
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 16px);
}

.page-downloads {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 16px);
    background: #fff;
}

.page-downloads h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.page-downloads .home-btn {
    width: 100%;
}

.shot-card {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 14px);
    background: #eef2f6;
}

.shot-card img {
    display: block;
    width: 100%;
    height: auto;
}

.page-prose a {
    color: var(--brand, #1d6fe0);
}

.company-grid {
    margin-top: 1.25rem;
}

.company-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.35rem 1rem 1.2rem;
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 16px);
    background: #fff;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.company-tile:hover {
    border-color: var(--brand, #1d6fe0);
    color: inherit;
}

.company-tile img {
    max-width: 150px;
    max-height: 72px;
    object-fit: contain;
}

.company-tile h3 {
    margin: 0.85rem 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.company-tile p {
    margin: 0;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.45;
}

.page-form {
    max-width: 38rem;
    padding: 1.35rem 1.25rem 1.15rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
    gap: 2.25rem 2.5rem;
    align-items: start;
}

.contact-layout .page-form {
    max-width: none;
}

.contact-aside p {
    margin: 0;
    color: #3c4450;
    font-size: 1.05rem;
    line-height: 1.65;
}

.contact-mail {
    display: inline-flex;
    margin-top: 1rem;
    color: var(--brand, #1d6fe0);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-mail:hover {
    color: var(--brand-hover, #185fbf);
}

.contact-aside-note {
    margin-top: 1.15rem;
    color: #667085;
    font-size: 0.92rem;
}

.site-contact .form-label {
    font-size: 0.88rem;
    font-weight: 600;
}

.site-contact .form-control {
    border-color: #e4e7ec;
    border-radius: var(--site-radius-sm, 10px);
    padding: 0.6rem 0.75rem;
}

.site-contact .form-control:focus {
    border-color: var(--brand, #1d6fe0);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-rgb, 29, 111, 224), 0.15);
}

.contact-captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.contact-captcha img {
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius-sm, 8px);
}

.contact-captcha .form-control {
    max-width: 11rem;
}

.contact-legal {
    margin: 0.15rem 0 1rem;
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.55;
}

.contact-legal a,
.site-contact .form-check a {
    color: var(--brand, #1d6fe0);
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.page-section .btn-primary,
.page-form .btn-primary {
    background: var(--brand, #1d6fe0);
    border-color: var(--brand, #1d6fe0);
}

.page-section .btn-primary:hover,
.page-form .btn-primary:hover {
    background: var(--brand-hover, #185fbf);
    border-color: var(--brand-hover, #185fbf);
}

.navbar-custom .dropdown-menu {
    background: #1c2026;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--site-radius-sm, 12px);
    padding: 0.4rem;
    min-width: 12rem;
}

.navbar-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.92);
    border-radius: var(--site-radius-sm, 8px);
    font-weight: 500;
    padding: 0.5rem 0.85rem;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus,
.navbar-custom .dropdown-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.playlist-stage {
    background: #111;
    border-radius: var(--site-radius, 16px);
    overflow: hidden;
}

.playlist-stage > div,
.playlist-stage iframe {
    width: 100%;
    height: 100%;
}

.playlist-bar {
    margin-top: 0.9rem;
}

.playlist-now {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.playlist-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.playlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    background: #fff;
    color: var(--site-text, #1c1f24);
    font-size: 0.88rem;
    font-weight: 600;
}

.playlist-btn:hover,
.playlist-btn.is-active {
    border-color: var(--brand, #1d6fe0);
    background: var(--brand, #1d6fe0);
    color: #fff;
}

.playlist-btn-main {
    background: var(--brand, #1d6fe0);
    border-color: var(--brand, #1d6fe0);
    color: #fff;
}

.playlist-btn-main:hover {
    background: var(--brand-hover, #185fbf);
    border-color: var(--brand-hover, #185fbf);
}

.playlist-queue {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 16px);
    background: #fff;
    overflow: hidden;
}

.playlist-item {
    display: flex;
    align-items: stretch;
    border-top: 1px solid #eef0f3;
}

.playlist-item:first-child {
    border-top: 0;
}

.playlist-item.is-current {
    background: #f3f7fd;
}

.playlist-item-play {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.playlist-item-index {
    flex: 0 0 1.6rem;
    color: #667085;
    font-size: 0.85rem;
    font-weight: 700;
}

.playlist-item.is-current .playlist-item-index {
    color: var(--brand, #1d6fe0);
}

.playlist-item-text {
    min-width: 0;
}

.playlist-item-text strong,
.playlist-item-text small {
    display: block;
}

.playlist-item-text strong {
    font-size: 0.95rem;
}

.playlist-item-text small {
    color: #667085;
    font-size: 0.8rem;
}

.playlist-item-open {
    align-self: center;
    margin-right: 0.85rem;
    color: var(--brand, #1d6fe0);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.playlist-item-open:hover {
    text-decoration: underline;
}

/* Inicio */
.home-hero-latest {
    display: block;
    max-width: 26rem;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--site-radius, 14px);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f7fa;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.home-hero-latest:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.home-hero-latest-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.06);
    font-size: 2.25rem;
}

.home-hero-latest-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-latest-body {
    display: block;
    padding: 0.8rem 1rem 0.95rem;
}

.home-hero-latest-meta {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(245, 247, 250, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-hero-latest strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.interest-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: center;
    align-content: center;
    padding: 0.8rem 0.95rem;
    box-shadow: none;
    text-align: left;
}

.interest-card .interest-icon {
    grid-row: span 2;
    margin-bottom: 0;
}

.interest-card .interest-text {
    margin-top: 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.home-news-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1rem;
}

.home-news-feature.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.home-news-lead .home-card h3 {
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.home-news-rest {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 0.75rem;
}

.home-mini {
    display: flex;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 14px);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-mini:hover {
    border-color: rgba(var(--brand-rgb, 29, 111, 224), 0.35);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.07);
    color: inherit;
}

.home-mini-media {
    position: relative;
    flex: 0 0 36%;
    max-width: 11rem;
    min-height: 5.75rem;
    background: #dfe6ee;
}

.home-mini-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-mini-media.is-contain {
    background: #eef2f6;
}

.home-mini-media.is-contain img {
    padding: 0.45rem;
    object-fit: contain;
}

.home-mini-media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--brand-rgb, 29, 111, 224), 0.08);
    color: var(--brand, #1d6fe0);
    font-size: 1.6rem;
}

.home-mini-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0.7rem 0.9rem;
}

.home-mini-body .home-card-meta {
    margin-bottom: 0.25rem;
}

.home-mini h3 {
    margin: 0;
    color: var(--site-text, #1c1f24);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-mini p {
    margin: 0.2rem 0 0;
    color: #667085;
    font-size: 0.85rem;
    line-height: 1.4;
}

.home-mini h3,
.home-mini p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

@media (max-width: 991.98px) {
    .home-hero-latest {
        margin-right: auto;
        text-align: left;
    }

    .home-news-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-news-rest {
        grid-auto-rows: auto;
    }
}

@media (max-width: 575.98px) {
    .interest-card {
        column-gap: 0.55rem;
        padding: 0.6rem 0.7rem;
    }

    .interest-card .interest-icon {
        grid-row: auto;
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .interest-card .interest-title {
        font-size: 0.92rem;
        overflow-wrap: normal;
    }

    .interest-card .interest-text {
        display: none;
    }

    .cms-section-cards .col-6:last-child:nth-child(odd) {
        width: 100%;
    }
}

/* Noticia y vídeo: lectura cómoda y relacionados al lado */
.page-article .content-html,
.page-article .lead {
    max-width: 48rem;
}

.page-related {
    display: grid;
    gap: 0.6rem;
}

.page-item-aside .page-block-title {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.page-related-all {
    display: inline-block;
    margin-top: 0.85rem;
}

@media (min-width: 992px) {
    .page-item.has-aside {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 21rem;
        gap: 1.25rem;
        align-items: start;
    }

    .page-item-aside {
        position: sticky;
        top: 90px;
    }
}

@media (max-width: 991.98px) {
    .page-item-aside {
        margin-top: 1.5rem;
    }
}

/* Aviso de cookies */
.cookie-banner {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    display: none;
    width: min(25rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    padding: 1.15rem 1.2rem 1rem;
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius, 16px);
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.18);
    animation: cookie-banner-in 0.3s ease-out;
}

@keyframes cookie-banner-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

.cookie-banner-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
}

.cookie-banner-head .interest-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.cookie-banner-head h2 {
    margin: 0;
    color: var(--site-text, #1c1f24);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cookie-banner-text {
    margin: 0 0 0.85rem;
    color: #667085;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-options {
    margin: 0 0 0.85rem;
    padding: 0;
    border: 1px solid #e4e7ec;
    border-radius: var(--site-radius-sm, 10px);
    list-style: none;
}

.cookie-options li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: var(--site-text, #1c1f24);
    font-size: 0.85rem;
    font-weight: 500;
}

.cookie-options li + li {
    border-top: 1px solid #eef0f3;
}

.cookie-options label {
    margin: 0;
    cursor: pointer;
}

.cookie-options .form-check {
    flex: 0 0 auto;
    min-height: 0;
    margin: 0;
}

.cookie-options .form-check-input:checked {
    border-color: var(--brand, #1d6fe0);
    background-color: var(--brand, #1d6fe0);
}

.cookie-always {
    flex: 0 0 auto;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 400;
}

.cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.cookie-actions .home-btn {
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.cookie-actions .home-btn-solid {
    grid-column: 1 / -1;
}

.cookie-actions .cookie-btn-outline {
    border-color: #e4e7ec;
    background: #fff;
    color: var(--site-text, #1c1f24);
}

.cookie-actions .cookie-btn-outline:hover {
    border-color: var(--brand, #1d6fe0);
    color: var(--brand, #1d6fe0);
}

.cookie-policy-link {
    display: block;
    margin-top: 0.65rem;
    color: #667085;
    font-size: 0.8rem;
    text-align: center;
    text-underline-offset: 2px;
}

.cookie-policy-link:hover {
    color: var(--brand, #1d6fe0);
}

/* En móvil, un aviso compacto abajo que no tapa media pantalla. En ordenador queda como estaba. */
@media (max-width: 575.98px) {
    .cookie-banner {
        right: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
        width: auto;
        padding: 0.75rem 0.85rem 0.6rem;
    }

    .cookie-banner-head {
        margin-bottom: 0.25rem;
    }

    .cookie-banner-head .interest-icon {
        display: none;
    }

    .cookie-banner-head h2 {
        font-size: 0.9rem;
    }

    .cookie-banner-text {
        margin-bottom: 0.55rem;
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .cookie-options li {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .cookie-actions .home-btn {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
        font-size: 0.85rem;
    }

    .cookie-policy-link {
        margin-top: 0.35rem;
        font-size: 0.74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        animation: none;
    }
}

/* Cabecera clara */
.header-light .navbar-custom,
.header-light .navbar-custom .navbar-collapse {
    background: #fff;
}

.header-light .navbar-custom {
    border-bottom: 1px solid #e4e7ec;
}

.header-light .navbar-custom .nav-link,
.header-light .navbar-custom .navbar-brand,
.header-light .navbar-custom .navbar-toggler {
    color: var(--site-text, #1c1f24) !important;
}

.header-light .navbar-custom .nav-link:hover {
    background: rgba(16, 24, 40, 0.05);
}

.header-light .navbar-custom .nav-link.active {
    background: rgba(var(--brand-rgb, 29, 111, 224), 0.1);
    color: var(--brand, #1d6fe0) !important;
}

.header-light .navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-rgb, 29, 111, 224), 0.2);
}

.header-light .navbar-custom .dropdown-menu {
    border-color: #e4e7ec;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
}

.header-light .navbar-custom .dropdown-item {
    color: var(--site-text, #1c1f24);
}

.header-light .navbar-custom .dropdown-item:hover,
.header-light .navbar-custom .dropdown-item:focus {
    background: rgba(16, 24, 40, 0.05);
    color: var(--site-text, #1c1f24);
}

.header-light .navbar-custom .dropdown-item.active {
    background: rgba(var(--brand-rgb, 29, 111, 224), 0.1);
    color: var(--brand, #1d6fe0);
}

/* Pie unido a la hoja blanca: la hoja termina en el pie, con las mismas esquinas. */
.footer-joined .home-sheet-wrap {
    padding-bottom: 0;
}

.footer-joined .home-sheet {
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.site-footer-joined {
    position: relative;
    z-index: 2;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.site-footer-joined .site-footer {
    border-radius: 0 0 var(--site-radius, 16px) var(--site-radius, 16px);
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.14);
}

.site-footer-joined .site-footer .container {
    max-width: none;
    padding-left: clamp(1rem, 2.5vw, 1.75rem);
    padding-right: clamp(1rem, 2.5vw, 1.75rem);
}

/* Con la hoja blanca, el menú es fijo y forma la parte de arriba de la página enmarcada, a su mismo ancho. */
.footer-joined .navbar-custom {
    padding: clamp(0.75rem, 1.5vw, 1.25rem) 0 0;
    border-bottom: 0;
    background: var(--site-bg, #f4f5f7);
}

/* El fondo del menú va en una capa con el mismo ancho que la tarjeta de la página. */
.footer-joined .navbar-custom > .container {
    position: relative;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5 + clamp(0.75rem, 2vw, 1.25rem));
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5 + clamp(0.75rem, 2vw, 1.25rem));
}

/* El menú es más alto por el margen de arriba: la página baja lo mismo. */
.footer-joined.page-sections .main-wrapper-home {
    padding-top: calc(74px + clamp(0.75rem, 1.5vw, 1.25rem));
}

.footer-joined .navbar-custom > .container::before {
    content: "";
    position: absolute;
    inset: 0 calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    z-index: -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--site-radius, 16px) var(--site-radius, 16px) 0 0;
    background: var(--site-dark, #121418);
}

.footer-joined.header-light .navbar-custom > .container::before {
    border-bottom-color: #e6e8ee;
    background: #fff;
}

/* La portada oscura empieza justo debajo del menú, sin esquinas arriba. */
.footer-joined .home-sheet-wrap {
    padding-top: 0;
}

.footer-joined .home-sheet-wrap > .container > .cms-section:first-child {
    border-radius: 0;
}

.footer-joined.header-light .navbar-custom .navbar-collapse {
    background: transparent;
}

/* Menú inteligente: se esconde al bajar y vuelve, algo más compacto y con sombra, al subir. */
.smart-header .navbar-custom {
    transition: transform 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}

.smart-header.nav-hidden .navbar-custom {
    transform: translateY(-110%);
}

.smart-header.nav-scrolled:not(.footer-joined) .navbar-custom {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
}

/* En la página enmarcada, al bajar el menú flota como una barra redondeada del ancho de la tarjeta. */
.smart-header.nav-scrolled.footer-joined .navbar-custom {
    padding-top: 0.5rem;
    background: transparent;
}

.smart-header.nav-scrolled.footer-joined .navbar-custom > .container {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.smart-header.footer-joined .navbar-custom > .container::before {
    transition: border-radius 0.3s ease, box-shadow 0.3s ease;
}

.smart-header.nav-scrolled.footer-joined .navbar-custom > .container::before {
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: var(--site-radius, 16px);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .smart-header .navbar-custom {
        transition: none;
    }
}

/* Páginas interiores enmarcadas: el contenido va en la hoja blanca, justo debajo del menú. */
.main-wrapper-framed {
    padding-top: calc(74px + clamp(0.75rem, 1.5vw, 1.25rem));
    padding-bottom: 0;
    background: transparent;
}

.page-sheet {
    min-height: 50vh;
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
    border-radius: 0;
}

.page-sheet .container,
.page-sheet .container-fluid {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.page-sheet .breadcrumb-custom {
    margin-bottom: 1.5rem;
    padding-top: 0;
}

.page-sheet > .content-fade-in > .cms-section:first-child {
    padding-top: 0;
}

.page-sheet .cms-section {
    padding-left: 0;
    padding-right: 0;
}

/* En páginas cortas la hoja crece hasta el pie, para que sigan unidos. */
.main-wrapper-framed {
    display: flex;
    flex-direction: column;
}

.main-wrapper-framed > .container {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.main-wrapper-framed .page-sheet {
    flex: 1 0 auto;
}

/* Logo original con tu nombre al lado, en texto: se lee nítido y da presencia al menú. */
.navbar-brand-name {
    margin-left: 0.7rem;
    color: var(--site-text, #1c1f24);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.navbar-custom:not(.header-light *) .navbar-brand-name {
    color: #fff;
}

@media (max-width: 380px) {
    .navbar-brand-name {
        font-size: 1.05rem;
    }
}

/* Logo del menú algo mayor: invade el margen interno de la barra, así su altura no cambia. */
.navbar-brand .navbar-brand-logo {
    width: auto;
    height: 54px;
    margin: -3px 0;
}

@media (max-width: 575.98px) {
    .navbar-brand .navbar-brand-logo {
        height: 48px;
        margin: 0;
    }
}

/* Nombre en dos líneas: el nombre y debajo la frase, con un sable rojo que se enciende. */
.navbar-brand-text {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 0.7rem;
    line-height: 1.1;
}

.navbar-brand-text .navbar-brand-name {
    margin-left: 0;
}

.navbar-brand-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.3rem;
    color: var(--brand, #1d6fe0);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.navbar-custom:not(.header-light *) .navbar-brand-tagline {
    color: #8fbaff;
}

.brand-saber {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 30px;
    height: 6px;
}

/* Empuñadura */
.brand-saber::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 6px;
    border-radius: 1.5px;
    background: linear-gradient(90deg, #5f6b7a 0 2px, #2a313c 2px 3px, #5f6b7a 3px 5px, #2a313c 5px 6px, #9aa4b2 6px);
}

/* Hoja roja con brillo */
.brand-saber::after {
    content: "";
    position: absolute;
    top: 1.5px;
    left: 9px;
    width: 21px;
    height: 3px;
    border-radius: 2px;
    background: #ffd9d9;
    box-shadow: 0 0 2px 1px #ff2020, 0 0 6px 1px rgba(255, 32, 32, 0.6);
    transform-origin: left center;
    animation: brand-saber-on 0.6s ease-out 0.3s both;
    transition: box-shadow 0.2s ease;
}

.navbar-brand:hover .brand-saber::after {
    box-shadow: 0 0 2px 1px #ff2020, 0 0 10px 3px rgba(255, 32, 32, 0.75);
}

@keyframes brand-saber-on {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-saber::after {
        animation: none;
    }
}

/* En móvil, solo el nombre: la frase saldría diminuta. */
@media (max-width: 575.98px) {
    .navbar-brand-tagline {
        display: none;
    }
}

/* Programa: sin columna de relacionadas al lado, así que el texto va centrado en la tarjeta. */
.page-article-program .content-html {
    max-width: 54rem;
    margin-left: auto;
    margin-right: auto;
}

/* Programa: imagen y descargas en una fila más compacta, sin una caja grande casi vacía. */
.page-program-media .home-feature-media img {
    max-height: 190px;
}

/* Programa sin descargas: la imagen ocupa el ancho y debajo va un aviso discreto. */
.home-feature-media.has-soon {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.5rem 1rem;
}

.page-program-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    color: var(--brand, #1d6fe0);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}
