/* Estilos principales del tema CAB Pontevedra. */
:root {
    --cab-blue: #338fd9;
    --cab-yellow: #e3e23e;
    --cab-navy: #0d1b2a;
    --cab-white: #ffffff;
    --cab-text: #17202a;
    --cab-max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--cab-text); }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(100% - 2rem, var(--cab-max-width)); margin-inline: auto; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 27, 42, .97);
    color: var(--cab-white);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.admin-bar .site-header { top: 32px; }

.site-header__inner {
    width: min(100% - 2rem, var(--cab-max-width));
    min-height: 76px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-brand { color: var(--cab-white); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: auto; max-height: 56px; }

.primary-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation a {
    position: relative;
    display: block;
    padding: 1.65rem 0;
    color: var(--cab-white);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
}

.site-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 1.2rem;
    height: 3px;
    background: var(--cab-yellow);
    transition: right .2s ease;
}

.site-navigation a:hover::after,
.site-navigation a:focus-visible::after,
.site-navigation .current-menu-item > a::after {
    right: 0;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle__line {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px auto;
    background: var(--cab-white);
    transition: transform .2s ease, opacity .2s ease;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(620px, calc(100svh - 76px), 920px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #102d49;
    color: var(--cab-white);
}

.hero__media,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__media {
    z-index: -3;
    background-image: url("../images/hero-cab.webp");
    background-position: center 38%;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.025);
    animation: cabHeroZoom 12s ease-out both;
}

.hero__overlay {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 18, 31, .94) 0%, rgba(8, 30, 50, .83) 42%, rgba(8, 30, 50, .38) 72%, rgba(8, 30, 50, .20) 100%),
        linear-gradient(0deg, rgba(5, 18, 31, .42) 0%, transparent 38%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-block: clamp(5rem, 11vh, 8rem);
}

.hero__copy {
    max-width: 830px;
}

.hero__eyebrow {
    margin: 0 0 1.25rem;
    color: var(--cab-yellow);
    font-size: clamp(.82rem, 1vw, .95rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.hero h1 {
    max-width: 830px;
    margin: 0;
    font-size: clamp(3rem, 6.5vw, 6.4rem);
    font-weight: 850;
    line-height: .92;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero__lead {
    max-width: 650px;
    margin: 1.6rem 0 0;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, .92);
}

.button {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-top: 1.8rem;
    padding: .95rem 1.3rem;
    border-radius: .35rem;
    background: var(--cab-yellow);
    color: var(--cab-navy);
    text-decoration: none;
    font-weight: 850;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
    background: #f0ef49;
}

.button--hero span {
    font-size: 1.25em;
    line-height: 1;
    transition: transform .2s ease;
}

.button--hero:hover span,
.button--hero:focus-visible span {
    transform: translateX(4px);
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.hero__scroll-line {
    width: 1px;
    height: 30px;
    background: var(--cab-yellow);
    transform-origin: top;
    animation: cabScrollLine 1.8s ease-in-out infinite;
}

.js .hero__copy > * {
    opacity: 0;
    transform: translateY(22px);
    animation: cabHeroReveal .7s ease forwards;
}

.js .hero__copy > :nth-child(1) { animation-delay: .08s; }
.js .hero__copy > :nth-child(2) { animation-delay: .18s; }
.js .hero__copy > :nth-child(3) { animation-delay: .30s; }
.js .hero__copy > :nth-child(4) { animation-delay: .42s; }

#cab-home-content { scroll-margin-top: 76px; }

.site-footer { padding: 2rem 1rem; background: var(--cab-navy); color: var(--cab-white); text-align: center; }

@keyframes cabHeroReveal {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cabHeroZoom {
    from { transform: scale(1.055); }
    to { transform: scale(1.025); }
}

@keyframes cabScrollLine {
    0%, 100% { transform: scaleY(.35); opacity: .45; }
    50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 800px) {
    .admin-bar .site-header { top: 46px; }
    .site-header__inner { height: 60px; min-height: 60px; }
    .custom-logo { max-height: 40px; }

    .menu-toggle {
        position: relative;
        z-index: 1002;
        display: block;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(3) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

    .site-navigation {
        position: fixed;
        inset: 60px 0 0;
        z-index: 1001;
        padding: 1.5rem 1.25rem 2rem;
        background: var(--cab-navy);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .admin-bar .site-navigation { inset-block-start: 114px; }

    .menu-open .site-navigation {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .primary-menu {
        width: min(100%, 520px);
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-navigation a {
        padding: 1rem .25rem;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        font-size: 1.1rem;
    }

    .site-navigation a::after { display: none; }

    .hero {
        min-height: calc(100svh - 60px);
        align-items: end;
    }

    .hero__media {
        background-position: 62% center;
    }

    .hero__overlay {
        background:
            linear-gradient(0deg, rgba(5, 18, 31, .97) 0%, rgba(5, 18, 31, .82) 47%, rgba(5, 18, 31, .38) 100%),
            linear-gradient(90deg, rgba(5, 18, 31, .48), rgba(5, 18, 31, .12));
    }

    .hero__content {
        padding-top: 8rem;
        padding-bottom: 7.25rem;
    }

    .hero h1 {
        max-width: 12ch;
        font-size: clamp(2.75rem, 13vw, 4.8rem);
        line-height: .94;
    }

    .hero__lead {
        max-width: 32rem;
        margin-top: 1.25rem;
        font-size: 1.05rem;
    }

    .hero__scroll {
        bottom: 1rem;
    }

    #cab-home-content { scroll-margin-top: 60px; }
}

@media (max-width: 480px) {
    .hero__eyebrow { margin-bottom: 1rem; }
    .hero h1 { font-size: clamp(2.55rem, 12.5vw, 3.75rem); }
    .button { width: 100%; justify-content: center; }
    .hero__scroll span:first-child { display: none; }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js .hero__copy > * {
        opacity: 1;
        transform: none;
    }
}


/* CAB brand refinement — Header + Hero identity */
.site-header__inner {
    max-width: 1440px;
}

.site-branding {
    gap: .75rem;
}

.site-branding .custom-logo-link {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--cab-yellow);
}

.site-branding .custom-logo {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    transform: scale(1.34);
}

.site-brand {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    white-space: nowrap;
    font-size: 1.5rem;
    letter-spacing: -.025em;
}

.site-brand__cab {
    color: var(--cab-yellow);
    font-weight: 900;
}

.site-brand__city {
    color: var(--cab-white);
    font-weight: 750;
}

.site-motto {
    position: relative;
    flex: 0 0 auto;
    margin: 0 0 .35rem;
    padding-bottom: .45rem;
    color: var(--cab-white);
    font-family: "Segoe Script", "Bradley Hand", cursive;
    font-size: 1rem;
    font-style: italic;
    white-space: nowrap;
    transform: rotate(-2deg);
}

.site-motto::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 72%;
    height: 4px;
    border-radius: 999px;
    background: var(--cab-yellow);
    transform: rotate(-4deg);
}

.hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, .55fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
}

.hero__copy {
    max-width: 760px;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(3rem, 5.7vw, 5.7rem);
}

.hero__media {
    background-position: 56% 38%;
}

.hero__overlay {
    background:
        linear-gradient(90deg, rgba(5, 18, 31, .96) 0%, rgba(8, 30, 50, .84) 34%, rgba(8, 30, 50, .34) 66%, rgba(8, 30, 50, .10) 100%),
        linear-gradient(0deg, rgba(5, 18, 31, .40) 0%, transparent 40%);
}

.hero__identity {
    position: relative;
    justify-self: end;
    align-self: center;
    max-width: 260px;
    margin: 0 0 5rem;
    padding-bottom: 1rem;
    color: rgba(255, 255, 255, .90);
    font-family: "Segoe Script", "Bradley Hand", cursive;
    font-size: clamp(1.3rem, 1.8vw, 2rem);
    font-style: italic;
    line-height: 1.22;
    text-align: right;
    transform: rotate(-3deg);
    text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}

.hero__identity span,
.hero__identity strong {
    display: block;
    font-weight: 600;
}

.hero__identity::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 72%;
    height: 5px;
    border-radius: 999px;
    background: var(--cab-yellow);
    transform: rotate(-5deg);
}

.hero__signature {
    position: absolute;
    bottom: 1.65rem;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.hero__signature::before,
.hero__signature::after {
    content: "";
    display: inline-block;
    width: 42px;
    height: 1px;
    margin: 0 .8rem .22rem;
    background: rgba(255, 255, 255, .65);
}

.hero__signature--left { left: 2rem; }
.hero__signature--right { right: 2rem; }

.hero__scroll {
    bottom: 1rem;
    gap: .25rem;
}

.hero__scroll-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-bottom: .15rem;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    color: var(--cab-white);
    font-size: 1.4rem;
    line-height: 1;
}

@media (max-width: 1180px) {
    .site-header__inner {
        gap: 1.2rem;
    }

    .site-motto {
        display: none;
    }

    .primary-menu {
        gap: 1.15rem;
    }

    .site-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 800px) {
    .site-branding {
        gap: .55rem;
    }

    .site-branding .custom-logo-link {
        width: 40px;
        height: 40px;
    }

    .site-brand {
        font-size: 1.1rem;
    }

    .hero__content {
        display: block;
    }

    .hero__identity,
    .hero__signature {
        display: none;
    }

    .hero__media {
        background-position: 62% center;
    }
}

@media (max-width: 390px) {
    .site-brand__city {
        display: none;
    }
}


/* Hero mobile final refinement */
@media (max-width: 800px) {
    .site-header__inner {
        width: min(100% - 1.25rem, var(--cab-max-width));
    }

    .site-branding .custom-logo-link {
        width: 40px;
        height: 40px;
    }

    .site-brand {
        display: flex;
        gap: .28rem;
        font-size: 1rem;
    }

    .site-brand__city {
        display: inline;
    }

    .hero {
        min-height: calc(100svh - 60px);
        align-items: stretch;
    }

    .hero__content {
        display: flex;
        align-items: flex-end;
        min-height: calc(100svh - 60px);
        padding-top: clamp(5rem, 15vh, 7rem);
        padding-bottom: clamp(2.4rem, 7vh, 4rem);
    }

    .hero__copy {
        width: 100%;
        max-width: 34rem;
    }

    .hero__eyebrow {
        margin-bottom: .8rem;
        font-size: .72rem;
        letter-spacing: .14em;
    }

    .hero h1 {
        max-width: 11ch;
        font-size: clamp(2.25rem, 10.7vw, 3.6rem);
        line-height: .92;
        letter-spacing: -.04em;
    }

    .hero__lead {
        max-width: 27rem;
        margin-top: .9rem;
        font-size: clamp(.9rem, 4vw, 1rem);
        line-height: 1.4;
    }

    .button {
        width: auto;
        margin-top: 1rem;
        padding: .78rem 1.05rem;
        font-size: .86rem;
    }

    .hero__media {
        background-position: 59% center;
    }

    .hero__overlay {
        background:
            linear-gradient(0deg, rgba(5, 18, 31, .96) 0%, rgba(5, 18, 31, .74) 52%, rgba(5, 18, 31, .25) 100%),
            linear-gradient(90deg, rgba(5, 18, 31, .82) 0%, rgba(5, 18, 31, .48) 48%, rgba(5, 18, 31, .12) 100%);
    }

    .hero__scroll {
        display: none;
    }
}

@media (max-width: 480px) and (max-height: 650px) {
    .hero__content {
        padding-top: 3.2rem;
        padding-bottom: 1rem;
    }

    .hero__eyebrow {
        margin-bottom: .65rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: .91;
    }

    .hero__lead {
        margin-top: .75rem;
        font-size: .86rem;
        line-height: 1.32;
    }

    .button {
        margin-top: .8rem;
        padding: .7rem .95rem;
    }
}

@media (max-width: 360px) {
    .site-brand {
        font-size: .92rem;
    }

    .site-branding .custom-logo-link {
        width: 40px;
        height: 40px;
    }
}


/* Fase 6.3 — Accesos rápidos */
.quick-links {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
    background:
        radial-gradient(circle at 92% 10%, rgba(51, 143, 217, .10), transparent 28rem),
        #f5f7f9;
}

.quick-links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(88%, 1320px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 27, 42, .18), transparent);
    transform: translateX(-50%);
}

.quick-links__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    align-items: end;
    gap: 3rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-kicker {
    margin: 0 0 .65rem;
    color: #557086;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.quick-links h2 {
    margin: 0;
    color: var(--cab-navy);
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: .95;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.quick-links__heading > p {
    margin: 0;
    color: #5d6872;
    font-size: 1rem;
    line-height: 1.65;
}

.quick-links__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(13, 27, 42, .10);
    background: var(--cab-white);
    box-shadow: 0 24px 65px rgba(13, 27, 42, .08);
}

.quick-card {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    overflow: hidden;
    color: var(--cab-navy);
    text-decoration: none;
    border-right: 1px solid rgba(13, 27, 42, .10);
    transition: color .28s ease, transform .28s ease;
}

.quick-card:last-child {
    border-right: 0;
}

.quick-card::before {
    content: "";
    position: absolute;
    inset: 100% 0 0;
    z-index: 0;
    background: var(--cab-navy);
    transition: inset .32s cubic-bezier(.2, .8, .2, 1);
}

.quick-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 5px;
    background: var(--cab-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .32s ease;
}

.quick-card > * {
    position: relative;
    z-index: 2;
}

.quick-card__number {
    color: #8493a0;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .16em;
}

.quick-card__icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 2.2rem 0 auto;
    border: 1px solid rgba(13, 27, 42, .14);
    border-radius: 50%;
    color: var(--cab-blue);
    font-size: 1.15rem;
    font-weight: 900;
    transition: border-color .28s ease, background-color .28s ease, color .28s ease, transform .28s ease;
}

.quick-card__content {
    display: block;
    margin-top: 2rem;
}

.quick-card__content strong {
    display: block;
    margin-bottom: .45rem;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.05;
}

.quick-card__content > span {
    display: block;
    color: #6b7781;
    font-size: .88rem;
    line-height: 1.45;
    transition: color .28s ease;
}

.quick-card__arrow {
    position: absolute;
    top: 1.35rem;
    right: 1.45rem;
    font-size: 1.35rem;
    transition: transform .28s ease;
}

.quick-card:hover,
.quick-card:focus-visible {
    color: var(--cab-white);
    outline: none;
}

.quick-card:hover::before,
.quick-card:focus-visible::before {
    inset: 0;
}

.quick-card:hover::after,
.quick-card:focus-visible::after {
    transform: scaleX(1);
}

.quick-card:hover .quick-card__number,
.quick-card:focus-visible .quick-card__number {
    color: rgba(255, 255, 255, .55);
}

.quick-card:hover .quick-card__icon,
.quick-card:focus-visible .quick-card__icon {
    border-color: var(--cab-yellow);
    background: var(--cab-yellow);
    color: var(--cab-navy);
    transform: translateY(-4px);
}

.quick-card:hover .quick-card__content > span,
.quick-card:focus-visible .quick-card__content > span {
    color: rgba(255, 255, 255, .72);
}

.quick-card:hover .quick-card__arrow,
.quick-card:focus-visible .quick-card__arrow {
    transform: translate(3px, -3px);
}

@media (max-width: 1000px) {
    .quick-links__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-card {
        min-height: 260px;
        border-bottom: 1px solid rgba(13, 27, 42, .10);
    }

    .quick-card:nth-child(2) {
        border-right: 0;
    }

    .quick-card:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

@media (max-width: 700px) {
    .quick-links {
        padding: 4rem 0;
    }

    .quick-links__heading {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .quick-links__heading > p {
        max-width: 32rem;
    }

    .quick-links__grid {
        grid-template-columns: 1fr;
    }

    .quick-card,
    .quick-card:nth-child(2),
    .quick-card:nth-last-child(-n+2) {
        min-height: 0;
        display: grid;
        grid-template-columns: 52px 1fr auto;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
        border-right: 0;
        border-bottom: 1px solid rgba(13, 27, 42, .10);
    }

    .quick-card:last-child {
        border-bottom: 0;
    }

    .quick-card__number {
        display: none;
    }

    .quick-card__icon {
        width: 52px;
        height: 52px;
        margin: 0;
        grid-column: 1;
        grid-row: 1;
    }

    .quick-card__content {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .quick-card__content strong {
        margin-bottom: .25rem;
        font-size: 1.2rem;
    }

    .quick-card__content > span {
        font-size: .8rem;
    }

    .quick-card__arrow {
        position: static;
        grid-column: 3;
        grid-row: 1;
    }
}


/* Fase 6.3 — Iconografía vectorial */
.quick-card__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 700px) {
    .quick-card__icon svg {
        width: 25px;
        height: 25px;
    }
}


/* Fase 6.4 — Últimas noticias */
.home-news {
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
    background: var(--cab-white);
}

.home-news__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.home-news h2 {
    max-width: 850px;
    margin: 0;
    color: var(--cab-navy);
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: .95;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.home-news__all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding-bottom: .35rem;
    color: var(--cab-navy);
    border-bottom: 3px solid var(--cab-yellow);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.home-news__all span {
    transition: transform .2s ease;
}

.home-news__all:hover span,
.home-news__all:focus-visible span {
    transform: translateX(4px);
}

.home-news__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    grid-template-rows: repeat(3, minmax(150px, 1fr));
    gap: 1px;
    overflow: hidden;
    background: rgba(13, 27, 42, .13);
    border: 1px solid rgba(13, 27, 42, .13);
}

.news-card {
    min-width: 0;
    background: var(--cab-white);
}

.news-card--featured {
    grid-row: 1 / 4;
}

.news-card__link {
    height: 100%;
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.news-card__media {
    display: block;
    overflow: hidden;
    background: var(--cab-navy);
}

.news-card--featured .news-card__media {
    height: 100%;
    min-height: 590px;
}

.news-card--compact .news-card__link {
    display: grid;
    grid-template-columns: 42% 58%;
}

.news-card--compact .news-card__media {
    height: 100%;
    min-height: 180px;
}

.news-card__image,
.news-card__placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.news-card__placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 70% 25%, rgba(51, 143, 217, .34), transparent 38%),
        linear-gradient(145deg, #173b5d, var(--cab-navy));
}

.news-card__placeholder span {
    color: rgba(227, 226, 62, .72);
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 950;
    letter-spacing: -.06em;
}

.news-card--featured .news-card__body {
    position: absolute;
    inset: auto 0 0;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--cab-white);
    background: linear-gradient(0deg, rgba(5, 18, 31, .96), rgba(5, 18, 31, .08));
}

.news-card--compact .news-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem;
}

.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    margin-bottom: .7rem;
    color: #70808d;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-card--featured .news-card__meta {
    color: rgba(255, 255, 255, .72);
}

.news-card__meta span:first-child {
    color: var(--cab-blue);
}

.news-card--featured .news-card__meta span:first-child {
    color: var(--cab-yellow);
}

.news-card__title {
    display: block;
    padding-right: 2rem;
    color: var(--cab-navy);
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    line-height: 1.14;
}

.news-card--featured .news-card__title {
    max-width: 16ch;
    color: var(--cab-white);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: .98;
    letter-spacing: -.035em;
}

.news-card__arrow {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    font-size: 1.25rem;
    transition: transform .25s ease;
}

.news-card--featured .news-card__arrow {
    right: 2rem;
    bottom: 2rem;
    color: var(--cab-yellow);
}

.news-card__link:hover .news-card__image,
.news-card__link:focus-visible .news-card__image {
    transform: scale(1.035);
}

.news-card__link:hover .news-card__arrow,
.news-card__link:focus-visible .news-card__arrow {
    transform: translate(4px, -4px);
}

.home-news__empty {
    min-height: 270px;
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(13, 27, 42, .12);
    background:
        linear-gradient(120deg, rgba(51, 143, 217, .07), transparent 45%),
        #f7f9fb;
}

.home-news__empty-mark {
    flex: 0 0 auto;
    display: grid;
    width: 110px;
    height: 110px;
    place-items: center;
    border-radius: 50%;
    background: var(--cab-navy);
    color: var(--cab-yellow);
    font-size: 1.8rem;
    font-weight: 950;
}

.home-news__empty strong {
    display: block;
    margin-bottom: .55rem;
    color: var(--cab-navy);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.home-news__empty p {
    max-width: 620px;
    margin: 0;
    color: #66737e;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .home-news__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .news-card--featured {
        grid-row: auto;
    }

    .news-card--featured .news-card__media {
        min-height: 480px;
    }

    .news-card--compact .news-card__link {
        grid-template-columns: 38% 62%;
        min-height: 170px;
    }
}

@media (max-width: 600px) {
    .home-news {
        padding: 4rem 0;
    }

    .home-news__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.2rem;
    }

    .news-card--featured .news-card__media {
        min-height: 430px;
    }

    .news-card--featured .news-card__body {
        padding: 1.4rem;
    }

    .news-card--featured .news-card__title {
        font-size: clamp(1.8rem, 9vw, 2.7rem);
    }

    .news-card--compact .news-card__link {
        grid-template-columns: 1fr;
    }

    .news-card--compact .news-card__media {
        min-height: 210px;
    }

    .news-card--compact .news-card__body {
        min-height: 145px;
    }

    .home-news__empty {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-news__empty-mark {
        width: 78px;
        height: 78px;
        font-size: 1.3rem;
    }
}


/* Fase 6.4 — Adaptación cuando hay menos de cuatro noticias */
.home-news__grid--count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(500px, 610px);
}

.home-news__grid--count-1 .news-card--featured {
    grid-row: 1;
}

.home-news__grid--count-1 .news-card--featured .news-card__media {
    min-height: 500px;
}

.home-news__grid--count-2 {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    grid-template-rows: minmax(500px, 610px);
}

.home-news__grid--count-2 .news-card--featured {
    grid-row: 1;
}

.home-news__grid--count-2 .news-card--compact .news-card__link {
    grid-template-columns: 1fr;
    grid-template-rows: 58% 42%;
}

.home-news__grid--count-2 .news-card--compact .news-card__media {
    min-height: 0;
}

.home-news__grid--count-3 {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    grid-template-rows: repeat(2, minmax(250px, 305px));
}

.home-news__grid--count-3 .news-card--featured {
    grid-row: 1 / 3;
}

@media (max-width: 900px) {
    .home-news__grid--count-1,
    .home-news__grid--count-2,
    .home-news__grid--count-3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .home-news__grid--count-1 .news-card--featured,
    .home-news__grid--count-2 .news-card--featured,
    .home-news__grid--count-3 .news-card--featured {
        grid-row: auto;
    }

    .home-news__grid--count-2 .news-card--compact .news-card__link {
        grid-template-columns: 38% 62%;
        grid-template-rows: auto;
        min-height: 170px;
    }

    .home-news__grid--count-2 .news-card--compact .news-card__media {
        min-height: 170px;
    }
}

@media (max-width: 600px) {
    .home-news__grid--count-2 .news-card--compact .news-card__link {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-news__grid--count-2 .news-card--compact .news-card__media {
        min-height: 210px;
    }
}


/* Fase 6.3.1 — Rediseño definitivo de accesos rápidos */
.quick-links__grid {
    background: transparent;
    border: 1px solid rgba(13, 27, 42, .09);
    box-shadow: 0 16px 45px rgba(13, 27, 42, .06);
}

.quick-card {
    min-height: 245px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2.2rem 1.35rem;
    text-align: center;
    background: #fff;
    transition: background-color .25s ease, transform .25s ease;
}

.quick-card + .quick-card {
    border-left: 1px solid rgba(13, 27, 42, .10);
}

.quick-card__number,
.quick-card__arrow {
    display: none;
}

.quick-card__icon {
    width: auto;
    height: auto;
    display: block;
    border: 0;
    border-radius: 0;
    color: var(--cab-blue);
    background: transparent;
    transition: transform .25s ease, color .25s ease;
}

.quick-card__icon svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-card__content {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.quick-card__content strong {
    position: relative;
    display: inline-block;
    margin-bottom: .55rem;
    color: var(--cab-navy);
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.quick-card__content strong::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -.32rem;
    width: 0;
    height: 3px;
    background: var(--cab-yellow);
    transform: translateX(-50%);
    transition: width .25s ease;
}

.quick-card__content > span {
    color: #596a78;
    font-size: .82rem;
    line-height: 1.35;
}

.quick-card:hover,
.quick-card:focus-visible {
    color: inherit;
    background: #f5f9fc;
    transform: translateY(-3px);
}

.quick-card:hover .quick-card__icon,
.quick-card:focus-visible .quick-card__icon {
    color: var(--cab-navy);
    transform: translateY(-5px);
}

.quick-card:hover .quick-card__content strong,
.quick-card:focus-visible .quick-card__content strong {
    color: var(--cab-navy);
}

.quick-card:hover .quick-card__content strong::after,
.quick-card:focus-visible .quick-card__content strong::after {
    width: 38px;
}

.quick-card:hover .quick-card__content > span,
.quick-card:focus-visible .quick-card__content > span {
    color: #596a78;
}

@media (max-width: 900px) {
    .quick-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-card {
        min-height: 210px;
    }

    .quick-card:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(13, 27, 42, .10);
    }

    .quick-card:nth-child(4) {
        border-top: 1px solid rgba(13, 27, 42, .10);
    }
}

@media (max-width: 600px) {
    .quick-links__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-card {
        min-height: 180px;
        padding: 1.55rem .7rem;
        gap: .8rem;
    }

    .quick-card__icon svg {
        width: 40px;
        height: 40px;
    }

    .quick-card__content strong {
        font-size: .76rem;
    }

    .quick-card__content > span {
        max-width: 15ch;
        font-size: .69rem;
    }
}


/* Fase 6.3.2 — Opción A aprobada: accesos limpios y compactos */
.quick-links {
    padding: clamp(3.6rem, 6vw, 5.5rem) 0;
    background:
        radial-gradient(circle at 7% 28%, rgba(51,143,217,.045) 0 105px, transparent 106px),
        radial-gradient(circle at 93% 72%, rgba(51,143,217,.045) 0 130px, transparent 131px),
        #fff;
}

.quick-links__heading {
    display: block;
    max-width: 760px;
    margin: 0 auto clamp(2.6rem, 4vw, 3.6rem);
    text-align: center;
}

.quick-links__heading .section-kicker {
    margin: 0 0 .9rem;
    color: #315b80;
}

.quick-links__heading .section-kicker::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: .8rem auto 0;
    background: var(--cab-yellow);
}

.quick-links__heading h2 {
    margin: 0;
    color: var(--cab-navy);
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: .95;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.quick-links__heading > p:last-child {
    max-width: none;
    margin: 1rem 0 0;
    color: #526b82;
    font-size: clamp(.95rem, 1.4vw, 1.15rem);
}

.quick-links__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 0;
    background: transparent;
    box-shadow: none;
}

.quick-card {
    position: relative;
    min-height: 0;
    padding: .7rem 1.5rem 1rem;
    gap: .75rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    transition: none;
}

.quick-card + .quick-card {
    border-left: 1px solid rgba(13,27,42,.13);
}

.quick-card__icon {
    color: #1268d7;
    transition: transform .24s ease, color .24s ease;
}

.quick-card__icon svg {
    width: 58px;
    height: 58px;
    stroke-width: 2.35;
}

.quick-card__content strong {
    margin: 0;
    color: var(--cab-navy);
    font-size: 1rem;
    letter-spacing: .025em;
}

.quick-card__content strong::after {
    bottom: -.42rem;
    height: 3px;
}

.quick-card__content > span {
    margin-top: .5rem;
    color: #536a7f;
    font-size: .88rem;
}

.quick-card:hover,
.quick-card:focus-visible {
    background: transparent;
    transform: none;
    color: inherit;
}

.quick-card:hover .quick-card__icon,
.quick-card:focus-visible .quick-card__icon {
    color: #0756b6;
    transform: translateY(-5px) scale(1.045);
}

.quick-card:hover .quick-card__content strong::after,
.quick-card:focus-visible .quick-card__content strong::after {
    width: 42px;
}

@media (max-width: 900px) {
    .quick-links__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .quick-card {
        padding: .8rem 1rem 1.2rem;
    }

    .quick-card:nth-child(3) {
        border-left: 0;
        border-top: 0;
    }

    .quick-card:nth-child(4) {
        border-top: 0;
    }
}

@media (max-width: 600px) {
    .quick-links {
        padding: 3.5rem 0;
    }

    .quick-links__heading {
        margin-bottom: 2.5rem;
    }

    .quick-links__heading h2 {
        font-size: clamp(2.35rem, 12vw, 3.2rem);
    }

    .quick-links__heading > p:last-child {
        max-width: 27ch;
        margin: .9rem auto 0;
        font-size: .9rem;
        line-height: 1.45;
    }

    .quick-links__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.65rem;
    }

    .quick-card {
        min-height: 0;
        padding: .65rem .45rem 1rem;
        gap: .55rem;
    }

    .quick-card:nth-child(even) {
        border-left: 1px solid rgba(13,27,42,.13);
    }

    .quick-card__icon svg {
        width: 46px;
        height: 46px;
    }

    .quick-card__content strong {
        font-size: .75rem;
    }

    .quick-card__content > span {
        max-width: 14ch;
        margin-top: .4rem;
        font-size: .7rem;
        line-height: 1.3;
    }
}


/* Fase 6.3.3 — Opción A final: bloque enmarcado y hover limpio */
.quick-links .container {
    position: relative;
}

.quick-links__grid {
    overflow: hidden;
    border: 1px solid rgba(13,27,42,.10) !important;
    border-radius: 4px;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 12px 34px rgba(13,27,42,.055) !important;
}

.quick-card,
.quick-card:hover,
.quick-card:focus-visible {
    min-height: 190px;
    overflow: visible;
    background: transparent !important;
    color: var(--cab-navy) !important;
    outline: none;
}

.quick-card::before,
.quick-card:hover::before,
.quick-card:focus-visible::before {
    content: none !important;
    display: none !important;
    inset: auto !important;
    background: transparent !important;
}

.quick-card::after,
.quick-card:hover::after,
.quick-card:focus-visible::after {
    content: none !important;
    display: none !important;
    transform: none !important;
}

.quick-card__icon,
.quick-card:hover .quick-card__icon,
.quick-card:focus-visible .quick-card__icon {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #1268d7 !important;
}

.quick-card:hover .quick-card__icon,
.quick-card:focus-visible .quick-card__icon {
    transform: translateY(-5px) scale(1.045) !important;
}

.quick-card__content,
.quick-card:hover .quick-card__content,
.quick-card:focus-visible .quick-card__content {
    margin-top: 0 !important;
}

.quick-card__content strong,
.quick-card:hover .quick-card__content strong,
.quick-card:focus-visible .quick-card__content strong {
    color: var(--cab-navy) !important;
}

.quick-card__content > span,
.quick-card:hover .quick-card__content > span,
.quick-card:focus-visible .quick-card__content > span {
    color: #536a7f !important;
}

.quick-card__content strong::after {
    display: block !important;
}

@media (max-width: 900px) {
    .quick-links__grid {
        border-radius: 4px;
    }

    .quick-card {
        min-height: 175px;
    }

    .quick-card:nth-child(3),
    .quick-card:nth-child(4) {
        border-top: 1px solid rgba(13,27,42,.10) !important;
    }
}

@media (max-width: 600px) {
    .quick-card,
    .quick-card:hover,
    .quick-card:focus-visible {
        min-height: 155px;
        display: flex !important;
        grid-template-columns: none !important;
        padding: 1.15rem .55rem !important;
    }

    .quick-card:nth-child(3),
    .quick-card:nth-child(4) {
        border-top: 1px solid rgba(13,27,42,.10) !important;
    }
}


/* Fase 6.3.4 — Contenedor visual completo de la sección (Opción A) */
.quick-links > .container {
    padding-top: clamp(2.2rem, 3.5vw, 3rem);
    padding-bottom: clamp(2rem, 3.2vw, 2.7rem);
    padding-left: clamp(1.4rem, 3vw, 2.8rem);
    padding-right: clamp(1.4rem, 3vw, 2.8rem);
    border: 1px solid rgba(13,27,42,.10);
    border-radius: 5px;
    background: rgba(255,255,255,.97);
    box-shadow:
        0 14px 34px rgba(13,27,42,.075),
        0 2px 8px rgba(13,27,42,.035);
}

.quick-links__grid {
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
}

@media (max-width: 600px) {
    .quick-links > .container {
        width: calc(100% - 1.5rem);
        padding: 1.7rem .65rem 1.25rem;
        border-radius: 5px;
        box-shadow: 0 10px 26px rgba(13,27,42,.07);
    }
}


/* Transición visual 6.3 → 6.4: separación editorial de Noticias */
.home-news {
    position: relative;
    background: #f5f7f9;
    border-top: 1px solid rgba(13, 27, 42, .055);
}

.home-news::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(88%, 1320px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(51, 143, 217, .16), transparent);
    transform: translateX(-50%);
    pointer-events: none;
}


/* Fase 6.5 — Súmate a la familia del CAB */
.home-family {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 36% 50%, rgba(51,143,217,.16), transparent 34%),
        #062750;
}

.home-family::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: 29%;
    top: 50%;
    border: 38px solid rgba(51,143,217,.11);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.home-family__visual {
    position: absolute;
    inset: 0 0 0 50%;
    overflow: hidden;
}

.home-family__visual::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 -1px;
    width: 130px;
    background: linear-gradient(100deg, #062750 4%, rgba(6,39,80,.78) 38%, transparent 100%);
}

.home-family__visual::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: -8%;
    left: 4%;
    width: 4px;
    height: 118%;
    background: var(--cab-yellow);
    transform: rotate(17deg);
    transform-origin: top;
    opacity: .9;
}

.home-family__photo {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(6,39,80,.2), rgba(6,39,80,.02)),
        url('../images/cab-family-youth.webp') center/cover no-repeat;
}

.home-family__inner {
    position: relative;
    z-index: 4;
    min-height: 610px;
    display: flex;
    align-items: center;
}

.home-family__copy {
    width: 48%;
    padding: 4.5rem 0 3.5rem;
}

.home-family__kicker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
    font-size: .84rem;
    font-weight: 750;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.home-family__kicker::before {
    content: "";
    width: 54px;
    height: 5px;
    border-radius: 4px;
    background: var(--cab-yellow);
}

.home-family h2 {
    margin: 0;
    font-size: clamp(3.1rem, 5.1vw, 5.5rem);
    line-height: .89;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.home-family h2 span,
.home-family h2 strong {
    display: block;
}

.home-family h2 strong {
    color: var(--cab-yellow);
}

.home-family__lead {
    max-width: 610px;
    margin: 1.35rem 0 1.6rem;
    color: rgba(255,255,255,.9);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.45;
}

.home-family__button {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    background: var(--cab-yellow);
    color: var(--cab-navy);
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .22s ease, box-shadow .22s ease;
}

.home-family__button:hover,
.home-family__button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.home-family__button span {
    font-size: 1.3rem;
}

.home-family__values {
    max-width: 610px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2rem;
}

.home-family__values > div {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .35rem;
    border-right: 1px solid rgba(255,255,255,.3);
}

.home-family__values > div:last-child {
    border-right: 0;
}

.home-family__values span {
    font-size: 1.8rem;
    line-height: 1;
}

.home-family__values strong {
    font-size: .69rem;
    letter-spacing: .035em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .home-family {
        padding-top: 44vw;
    }

    .home-family__visual {
        inset: 0 0 auto;
        height: 44vw;
        min-height: 310px;
    }

    .home-family__visual::before {
        inset: auto 0 0;
        width: auto;
        height: 100px;
        background: linear-gradient(0deg, #062750, transparent);
    }

    .home-family__visual::after {
        display: none;
    }

    .home-family__inner {
        min-height: 0;
    }

    .home-family__copy {
        width: 100%;
        padding: 3.5rem 0;
    }
}

@media (max-width: 600px) {
    .home-family {
        padding-top: 58vw;
    }

    .home-family__visual {
        height: 58vw;
        min-height: 220px;
    }

    .home-family__copy {
        padding: 2.2rem .15rem 2rem;
    }

    .home-family__kicker {
        gap: .7rem;
        font-size: .64rem;
        letter-spacing: .22em;
    }

    .home-family__kicker::before {
        width: 34px;
        height: 4px;
    }

    .home-family h2 {
        font-size: clamp(2.55rem, 12vw, 3.45rem);
    }

    .home-family__lead {
        margin: 1rem 0 1.25rem;
        font-size: .9rem;
    }

    .home-family__button {
        padding: .9rem 1.2rem;
        font-size: .76rem;
    }

    .home-family__values {
        margin-top: 1.7rem;
    }

    .home-family__values > div {
        min-height: 62px;
    }

    .home-family__values span {
        font-size: 1.45rem;
    }

    .home-family__values strong {
        font-size: .55rem;
    }
}


/* Fase 6.5.1 — Fidelidad al boceto aprobado */
.home-family__value-icon {
    display: grid !important;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 0 !important;
    transition: transform .25s ease, color .25s ease;
}

.home-family__value-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-family__values > div {
    transition: transform .25s ease;
}

.home-family__values > div:hover {
    transform: translateY(-4px);
}

.home-family__values > div:hover .home-family__value-icon {
    color: var(--cab-yellow);
    transform: scale(1.08);
}

.home-family__visual {
    background: #0a376d;
}

.home-family__photo {
    transform: scale(1.015);
    transition: transform 7s ease;
}

.home-family:hover .home-family__photo {
    transform: scale(1.055);
}

@media (prefers-reduced-motion: reduce) {
    .home-family__photo,
    .home-family__values > div,
    .home-family__value-icon {
        transition: none;
        transform: none;
    }
}


/* Fase 6.5.2 — Composición final: ancho útil completo + foto cantera */
@media (min-width: 901px) {
    .home-family__inner.container {
        width: 100%;
        max-width: none;
        padding-left: clamp(4rem, 6.2vw, 7.5rem);
        padding-right: 50%;
    }

    .home-family__copy {
        width: 100%;
        max-width: 720px;
        padding-right: clamp(2rem, 4vw, 5rem);
    }

    .home-family__visual {
        inset: 0 0 0 50%;
    }
}

.home-family__photo {
    background-position: center center;
}


/* Fase 6.5.3 — Ajuste responsive final validado a 390 px */
@media (max-width: 600px) {
    .home-family {
        padding-top: 64vw;
    }

    .home-family__visual {
        height: 64vw;
        min-height: 245px;
    }

    .home-family__values {
        margin-top: 1.9rem;
        padding-bottom: .35rem;
    }

    .home-family__values > div {
        min-height: 68px;
        gap: .45rem;
    }

    .home-family__values strong {
        font-size: .59rem;
        line-height: 1.2;
    }

    .home-news {
        padding-bottom: clamp(2.8rem, 9vw, 3.5rem);
    }
}


/* Fase 6.3 — Corrección final de separadores 2x2 en móvil */
@media (max-width: 600px) {
    .quick-card,
    .quick-card:nth-child(2),
    .quick-card:nth-child(3),
    .quick-card:nth-child(4) {
        border: 0 !important;
    }

    .quick-card:nth-child(even) {
        border-left: 1px solid rgba(13, 27, 42, .13) !important;
    }

    .quick-card:nth-child(n+3) {
        border-top: 1px solid rgba(13, 27, 42, .13) !important;
    }
}


/* Fase 6.6 — Patrocinadores */
.home-sponsors {
    position: relative;
    overflow: hidden;
    padding: clamp(4.8rem, 7vw, 7.2rem) 0 clamp(4.2rem, 6vw, 6.4rem);
    background:
        radial-gradient(circle at 93% 12%, rgba(51,143,217,.11), transparent 26%),
        linear-gradient(135deg, #fff 0%, #f7fbff 56%, #eef6fc 100%);
}
.home-sponsors__court {
    position: absolute;
    inset: 0;
    opacity: .42;
    pointer-events: none;
    background:
        radial-gradient(circle at 2% 26%, transparent 0 112px, rgba(51,143,217,.10) 113px 116px, transparent 117px),
        linear-gradient(90deg, transparent 0 91%, rgba(51,143,217,.055) 91% 91.2%, transparent 91.2%);
}
.home-sponsors__court::after {
    content:"";
    position:absolute;
    width:310px;height:310px;
    right:-105px;top:-92px;
    border:3px solid rgba(51,143,217,.08);
    border-radius:50%;
}
.home-sponsors__inner { position:relative; z-index:1; }
.home-sponsors__heading { max-width:900px; margin:0 auto 3.1rem; text-align:center; }
.home-sponsors__heading .section-kicker { justify-content:center; color:var(--cab-navy); letter-spacing:.28em; }
.home-sponsors__heading .section-kicker::after {
    content:""; display:block; width:74px; height:4px; margin:.8rem auto 0;
    border-radius:3px; background:var(--cab-yellow);
}
.home-sponsors__heading h2 {
    margin:.7rem 0 .8rem; color:var(--cab-navy);
    font-size:clamp(2.6rem,5vw,5.2rem); line-height:.95; letter-spacing:-.045em; text-transform:uppercase;
}
.home-sponsors__heading h2::first-line { color:var(--cab-navy); }
.home-sponsors__heading p:last-child { max-width:720px; margin:0 auto; color:#536a7f; font-size:clamp(.98rem,1.35vw,1.15rem); line-height:1.55; }
.home-sponsors__label { display:flex; align-items:center; gap:1.5rem; margin:0 auto 2rem; color:var(--cab-navy); font-size:.74rem; font-weight:850; letter-spacing:.22em; text-transform:uppercase; }
.home-sponsors__label::before,.home-sponsors__label::after { content:""; flex:1; height:1px; background:rgba(13,27,42,.18); }
.home-sponsors__label span { white-space:nowrap; }
.home-sponsors__institutions { display:grid; grid-template-columns:repeat(4,1fr); align-items:center; gap:clamp(2rem,4vw,4.5rem); padding:.7rem 1rem 3.8rem; }
.home-sponsors__institution { min-height:105px; display:grid; place-items:center; }
.home-sponsors__institution img { display:block; max-width:100%; width:auto; max-height:78px; object-fit:contain; filter:saturate(.96); transition:transform .25s ease; }
.home-sponsors__institution:hover img { transform:translateY(-3px); }
.home-sponsors__commercial { padding-top:2rem; border-top:1px solid rgba(13,27,42,.10); }
.home-sponsors__commercial .home-sponsors__label { max-width:780px; }
.sponsor-marquee { width:100%; overflow:hidden; padding:.5rem 0 1rem; -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); }
.sponsor-marquee__track { width:max-content; display:flex; gap:1.25rem; animation:cab-sponsor-scroll 32s linear infinite; }
.sponsor-marquee:hover .sponsor-marquee__track { animation-play-state:paused; }
.sponsor-card { width:clamp(205px,17vw,255px); height:126px; display:grid; place-items:center; padding:1.25rem; border:1px solid rgba(13,27,42,.07); border-radius:8px; background:rgba(255,255,255,.92); box-shadow:0 8px 24px rgba(13,27,42,.045); }
.sponsor-card span { color:#253b50; font-size:1rem; font-weight:800; text-align:center; }
@keyframes cab-sponsor-scroll { to { transform:translateX(calc(-50% - .625rem)); } }

@media (max-width:900px) {
    .home-sponsors__institutions { grid-template-columns:repeat(2,1fr); gap:1.5rem 2rem; padding-bottom:3rem; }
    .home-sponsors__institution { min-height:90px; }
    .home-sponsors__institution img { max-height:65px; }
}
@media (max-width:600px) {
    .home-sponsors { padding:3.6rem 0 3.8rem; }
    .home-sponsors__heading { margin-bottom:2.4rem; }
    .home-sponsors__heading h2 { font-size:clamp(2.45rem,12vw,3.25rem); }
    .home-sponsors__heading p:last-child { font-size:.9rem; }
    .home-sponsors__label { gap:.7rem; margin-bottom:1.3rem; font-size:.58rem; letter-spacing:.14em; }
    .home-sponsors__institutions { gap:1rem; padding:.4rem 0 2.5rem; }
    .home-sponsors__institution { min-height:78px; padding:.5rem; }
    .home-sponsors__institution img { max-height:55px; }
    .home-sponsors__commercial { padding-top:1.6rem; }
    .sponsor-card { width:172px; height:104px; }
    .sponsor-marquee__track { gap:.85rem; animation-duration:27s; }
}
@media (prefers-reduced-motion:reduce) {
    .sponsor-marquee { overflow-x:auto; mask-image:none; -webkit-mask-image:none; }
    .sponsor-marquee__track { animation:none; }
    .home-sponsors__institution img { transition:none; }
}


/* Fase 6.6.1 — Fondo deportivo distintivo */
.home-sponsors {
    background:
        linear-gradient(90deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.62) 48%, rgba(247,251,255,.58) 100%),
        url('../images/cab-sponsors-bg.webp') center center / cover no-repeat;
}
.home-sponsors__court {
    display: none;
}
@media (max-width: 600px) {
    .home-sponsors {
        background:
            linear-gradient(rgba(255,255,255,.74), rgba(247,251,255,.72)),
            url('../images/cab-sponsors-bg.webp') center top / auto 100% no-repeat;
    }
}


/* Fase 6.6.2 — Reencuadre del fondo deportivo en escritorio */
@media (min-width: 901px) {
    .home-sponsors {
        background-image:
            linear-gradient(90deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.60) 48%, rgba(247,251,255,.54) 100%),
            url('../images/cab-sponsors-bg.webp');
        background-size: auto, 100% 100%;
        background-position: center, center;
        background-repeat: no-repeat;
    }
}


/* Fase 6.6.3 — Equilibrado óptico de marcas institucionales */
.home-sponsors__institution--deporte img { max-height: 66px; }
.home-sponsors__institution--deputacion img { max-height: 72px; }
.home-sponsors__institution--concello img { max-height: 70px; }
.home-sponsors__institution--xunta img { max-height: 72px; }

@media (max-width: 900px) {
    .home-sponsors__institution--deporte img { max-height: 56px; }
    .home-sponsors__institution--deputacion img,
    .home-sponsors__institution--xunta img { max-height: 60px; }
    .home-sponsors__institution--concello img { max-height: 58px; }
}
@media (max-width: 600px) {
    .home-sponsors__institution--deporte img { max-height: 46px; }
    .home-sponsors__institution--deputacion img,
    .home-sponsors__institution--xunta img { max-height: 50px; }
    .home-sponsors__institution--concello img { max-height: 48px; }
}


/* Patrocinadores comerciales — reglas consolidadas */
.sponsor-card {
    overflow: hidden;
    text-decoration: none;
}
.sponsor-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 84%;
    max-height: 72px;
    object-fit: contain;
}
.sponsor-card--autocares img { max-width: 88%; max-height: 68px; }
.sponsor-card--zentola { background: var(--cab-navy); }
.sponsor-card--zentola img { max-width: 74%; max-height: 78px; }
.sponsor-card--hotel-room img { max-width: 82%; max-height: 54px; }
.sponsor-card--oligal img { max-width: 78%; max-height: 62px; }
.sponsor-card--teccarsa img { max-width: 82%; max-height: 64px; }
.sponsor-card--almaceria img { max-width: 78%; max-height: 82px; }
.sponsor-card--h50 img { max-width: 58%; max-height: 88px; }
.sponsor-card--impulsa img {
    width: 88% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}
.home-sponsors__institution,
.sponsor-card {
    text-decoration: none;
}
.home-sponsors__institution:focus-visible,
.sponsor-card:focus-visible {
    outline: 3px solid var(--cab-yellow);
    outline-offset: 4px;
}
@media (max-width: 600px) {
    .sponsor-card img { max-height: 60px; }
    .sponsor-card--hotel-room img { max-height: 43px; }
    .sponsor-card--almaceria img { max-height: 68px; }
    .sponsor-card--h50 img { max-height: 72px; }
    .sponsor-card--impulsa img {
        width: 88% !important;
        max-height: none !important;
    }
}

/* Footer — versión consolidada aprobada */
.site-footer {
    position: relative;
    overflow: hidden;
    color: rgba(255,255,255,.78);
    background: #0d1b2a;
}
.site-footer::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -170px;
    top: -210px;
    border: 1px solid rgba(51,143,217,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 58px rgba(51,143,217,.025), 0 0 0 118px rgba(51,143,217,.018);
    pointer-events: none;
}
.site-footer__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px,1.25fr) minmax(170px,.65fr) minmax(270px,1fr);
    align-items: start;
    gap: clamp(2.5rem,5vw,5rem);
    padding-top: 1.9rem;
    padding-bottom: 1.85rem;
}
.site-footer__brand,
.site-footer__contact { text-align: center; }
.site-footer__branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
}
.site-footer__branding.site-branding { justify-content: center; }
.site-footer__branding .site-brand { font-size: 1.25rem; }
.site-footer__claim {
    max-width: 390px;
    margin: .75rem auto .35rem;
    color: rgba(255,255,255,.72);
    font-size: .98rem;
    line-height: 1.45;
}
.site-footer__motto {
    margin: 0;
    color: var(--cab-yellow);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.site-footer h2 {
    margin: .1rem 0 .75rem;
    color: var(--cab-yellow);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.site-footer__nav { text-align: center; }
.site-footer__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer__nav li + li { margin-top: .38rem; }
.site-footer__nav a,
.site-footer__mail,
.site-footer__contact-link,
.site-footer__legal a {
    color: rgba(255,255,255,.72);
    text-decoration: none;
    transition: color .2s ease;
}
.site-footer__nav a:hover,
.site-footer__mail:hover,
.site-footer__contact-link:hover,
.site-footer__legal a:hover,
.site-footer__credit:hover { color: var(--cab-yellow); }
.site-footer__mail {
    display: block;
    font-size: .98rem;
    font-weight: 700;
}
.site-footer__contact-link {
    display: block;
    width: fit-content;
    margin: .42rem auto 0;
    color: rgba(255,255,255,.72);
    font-size: .9rem;
    font-weight: 700;
}
.site-footer__contact-link span { color: var(--cab-yellow); }
.site-footer__social {
    display: flex;
    justify-content: center;
    gap: .65rem;
    margin-top: .8rem;
}
.site-footer__social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.site-footer__social a:hover {
    transform: translateY(-3px);
    color: #0d1b2a;
    border-color: var(--cab-yellow);
    background: var(--cab-yellow);
}
.site-footer__social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.site-footer__social a:nth-child(2) svg { fill: currentColor; stroke: none; }
.site-footer__bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.1);
}
.site-footer__bottom-inner {
    height: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.site-footer__bottom p {
    margin: 0;
    color: rgba(255,255,255,.48);
    font-size: .72rem;
    line-height: 1;
}
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
}
.site-footer__legal a {
    color: rgba(255,255,255,.52);
    font-size: .72rem;
}
.site-footer__credit {
    color: rgba(255,255,255,.72);
    font-weight: 700;
    text-decoration: none;
}
.site-footer a:focus-visible {
    outline: 3px solid var(--cab-yellow);
    outline-offset: 4px;
}

/* Home móvil — versión consolidada aprobada */
@media (max-width: 600px) {
    .quick-links { padding-top: 2.8rem; padding-bottom: 2.8rem; }
    .home-news { padding-top: 3rem; padding-bottom: 3rem; }
    .home-sponsors { padding-top: 3.2rem; padding-bottom: 3.2rem; }

    .quick-card,
    .quick-card:hover,
    .quick-card:focus-visible {
        min-height: 142px;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .quick-card__icon svg { width: 42px; height: 42px; }

    .home-news__grid .news-card__media,
    .home-news__grid--count-2 .news-card--compact .news-card__media {
        min-height: 0 !important;
        aspect-ratio: 16 / 9;
    }
    .home-news__grid .news-card__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .news-card__body { padding-top: 1rem; padding-bottom: 1rem; }
    .news-card__title { line-height: 1.18; }

    .home-family__copy { padding-top: 2.7rem; padding-bottom: 2.6rem; }
    .home-family__values { margin-top: 1.45rem; }

    .home-sponsors__heading { margin-bottom: 2rem; }
    .home-sponsors__heading h2 {
        font-size: clamp(2.15rem, 10.5vw, 2.9rem);
        line-height: .96;
    }
    .home-sponsors__heading p:last-child {
        font-size: .88rem;
        line-height: 1.5;
    }

    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 1.55rem;
        padding-top: 1.8rem;
        padding-bottom: 1.7rem;
    }
    .site-footer__contact { grid-column: auto; }
    .site-footer__branding .site-brand { font-size: 1.15rem; }
    .site-footer__claim {
        max-width: 320px;
        margin-top: .65rem;
        font-size: .9rem;
    }
    .site-footer__nav li + li { margin-top: .3rem; }
    .site-footer__social { margin-top: .65rem; }
    .site-footer__bottom-inner {
        height: auto;
        min-height: 0;
        padding-top: .7rem !important;
        padding-bottom: .7rem !important;
        flex-direction: column;
        align-items: flex-start;
        gap: .85rem;
    }
    .site-footer__bottom p { line-height: 1.4; }
    .site-footer__legal { gap: .7rem 1.15rem; }
}

/* Cabecera y offsets móviles — 50px definitivos */
@media (max-width: 800px) {
    .site-header__inner {
        height: 50px;
        min-height: 50px;
        padding-top: 0;
        padding-bottom: 0;
    }
    .site-branding {
        height: 50px;
        align-items: center;
    }
    .site-branding .custom-logo-link {
        width: 34px;
        height: 34px;
    }
    .site-branding .site-brand { font-size: .88rem; }
    .menu-toggle {
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
    }
    .site-navigation { inset: 50px 0 0; }
    .hero,
    .hero__content { min-height: calc(100svh - 50px); }
    #cab-home-content,
    .home-news,
    .home-family,
    .home-sponsors { scroll-margin-top: 50px; }
}

/* Footer tablet — tres columnas */
@media (min-width: 601px) and (max-width: 900px) {
    .site-footer__main {
        grid-template-columns: minmax(220px, 1.2fr) minmax(125px, .6fr) minmax(220px, 1fr);
        gap: 1.5rem;
        align-items: start;
        padding-top: 1.75rem;
        padding-bottom: 1.7rem;
    }
    .site-footer__contact { grid-column: auto; }
    .site-footer__claim {
        max-width: 260px;
        font-size: .86rem;
        line-height: 1.45;
    }
    .site-footer__branding .site-brand { font-size: 1rem; }
    .site-footer h2 { margin-bottom: .65rem; }
    .site-footer__nav li + li { margin-top: .3rem; }
    .site-footer__mail { font-size: .84rem; }
    .site-footer__contact-link { font-size: .82rem; }
    .site-footer__social { margin-top: .65rem; }
    .site-footer__bottom-inner {
        height: 38px;
        min-height: 38px;
        gap: 1rem;
    }
    .site-footer__bottom p,
    .site-footer__legal a { font-size: .64rem; }
    .site-footer__legal { gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__social a { transition: none; }
}


/* =========================================================
   FASE 8.2.2 — FICHA PÚBLICA DE EQUIPO
   ========================================================= */
.cab-team-page{background:#fff;color:#0b2340}
.cab-team-container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.cab-team-hero{padding:72px 0 56px;background:#081f38;color:#fff;text-align:center}
.cab-team-eyebrow,.cab-team-section-heading p{margin:0 0 10px;color:#e3e23e;font-size:.78rem;font-weight:800;letter-spacing:.18em}
.cab-team-hero h1{margin:0;font-size:clamp(2.2rem,5vw,4.5rem);line-height:1;text-transform:uppercase}
.cab-team-season{margin:14px 0 0;color:#d9e4ef;font-size:1.05rem}
.cab-team-overview{padding:64px 0}
.cab-team-photo{margin:0;border-radius:18px;overflow:hidden;box-shadow:0 18px 50px rgba(8,31,56,.14);background:#eef3f7}
.cab-team-photo img{display:block;width:100%;max-height:660px;object-fit:cover}
.cab-team-summary{padding:36px 0 0;text-align:center}
.cab-team-tags{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.cab-team-tags span{padding:8px 14px;border-radius:999px;background:#eaf4fc;color:#1769a8;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.cab-team-summary h2{margin:18px 0 28px;font-size:clamp(1.6rem,3vw,2.4rem)}
.cab-team-staff{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px;margin:0 auto;border-top:1px solid #dbe4ec;border-bottom:1px solid #dbe4ec}
.cab-team-staff div{padding:22px}
.cab-team-staff div+div{border-left:1px solid #dbe4ec}
.cab-team-staff span{display:block;margin-bottom:6px;color:#6d7d8d;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em}
.cab-team-staff strong{font-size:1.08rem}
.cab-team-roster-section{padding:72px 0;background:#f5f8fb}
.cab-team-section-heading{text-align:center;margin-bottom:38px}
.cab-team-section-heading h2{margin:0;font-size:clamp(2rem,4vw,3.2rem);text-transform:uppercase}
.cab-team-roster-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px}
.cab-player-card{overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(8,31,56,.08);text-align:center}
.cab-player-card-image{aspect-ratio:4/5;overflow:hidden;background:#e8eef4}
.cab-player-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.cab-player-card h3{margin:0;padding:17px 10px 19px;font-size:1rem;text-transform:uppercase}
.cab-team-sport-data{padding:70px 0}
.cab-team-sport-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.cab-team-data-card{padding:34px;border:1px solid #dce5ed;border-radius:16px;background:#fff}
.cab-team-data-card span{color:#338fd9;font-size:.78rem;font-weight:800;letter-spacing:.12em}
.cab-team-data-card h2{margin:10px 0 8px}
.cab-team-data-card p{margin:0;color:#657585}
@media(max-width:900px){.cab-team-roster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
 .cab-team-container{width:min(100% - 28px,1180px)}
 .cab-team-hero{padding:48px 0 38px}
 .cab-team-overview,.cab-team-roster-section,.cab-team-sport-data{padding:44px 0}
 .cab-team-staff,.cab-team-sport-grid{grid-template-columns:1fr}
 .cab-team-staff div+div{border-left:0;border-top:1px solid #dbe4ec}
 .cab-team-roster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .cab-team-data-card{padding:25px}
}


/* FASE 8.2.2a — refinamiento ficha de equipo */
.cab-team-page{scroll-margin-top:72px}
.cab-team-hero{padding-top:58px;padding-bottom:46px}
.cab-team-overview{padding-top:48px;padding-bottom:56px}
.cab-team-summary{padding-top:30px}
.cab-team-roster-section{padding-top:58px;padding-bottom:58px}
.cab-team-section-heading{margin-bottom:30px}
.cab-player-card h3{padding-top:14px;padding-bottom:16px}

@media (max-width:800px){
 .cab-team-page{scroll-margin-top:50px}
 .cab-team-hero{padding-top:42px}
}
@media (max-width:600px){
 .cab-team-hero{padding-top:36px;padding-bottom:32px}
 .cab-team-overview{padding-top:34px;padding-bottom:40px}
 .cab-team-summary{padding-top:24px}
 .cab-team-roster-section{padding-top:40px;padding-bottom:40px}
 .cab-team-section-heading{margin-bottom:24px}
}


/* =========================================================
   FASE 8.2.3 — CATÁLOGO PÚBLICO DE EQUIPOS
   ========================================================= */
.cab-teams-archive{background:#f5f8fb;color:#0b2340}
.cab-teams-hero{padding:62px 0 54px;background:#081f38;color:#fff;text-align:center}
.cab-teams-hero h1{margin:0;font-size:clamp(2.35rem,5vw,4.6rem);line-height:1;text-transform:uppercase}
.cab-teams-season{margin:14px 0 0;color:#d9e4ef;font-size:1.05rem}
.cab-teams-intro{margin:12px auto 0;max-width:620px;color:#aebfd0;font-size:1rem}
.cab-teams-catalogue{padding:58px 0 76px}
.cab-teams-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:34px}
.cab-teams-filters{display:flex;gap:8px;flex-wrap:wrap}
.cab-team-filter{appearance:none;border:1px solid #cbd9e5;border-radius:999px;background:#fff;color:#0b2340;padding:9px 17px;font:inherit;font-size:.82rem;font-weight:800;cursor:pointer;transition:.2s ease}
.cab-team-filter:hover,.cab-team-filter:focus-visible{border-color:#338fd9;color:#1769a8}
.cab-team-filter.is-active{border-color:#338fd9;background:#338fd9;color:#fff}
.cab-teams-season-filter{display:flex;align-items:center;gap:9px;color:#5d7082;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.cab-teams-season-filter select{min-width:135px;border:1px solid #cbd9e5;border-radius:9px;background:#fff;padding:9px 34px 9px 11px;color:#0b2340}
.cab-teams-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.cab-team-archive-card{overflow:hidden;border-radius:17px;background:#fff;box-shadow:0 9px 30px rgba(8,31,56,.09);transition:transform .2s ease,box-shadow .2s ease}
.cab-team-archive-card[hidden]{display:none}
.cab-team-archive-card:hover{transform:translateY(-4px);box-shadow:0 15px 38px rgba(8,31,56,.14)}
.cab-team-archive-card>a{display:block;height:100%;color:inherit;text-decoration:none}
.cab-team-archive-image{aspect-ratio:16/10;overflow:hidden;background:#dfeaf2}
.cab-team-archive-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.cab-team-archive-card:hover .cab-team-archive-image img{transform:scale(1.025)}
.cab-team-archive-noimage{display:grid;width:100%;height:100%;place-items:center;background:#0b2947;color:#e3e23e;font-size:2rem;font-weight:900}
.cab-team-archive-content{padding:23px 24px 25px}
.cab-team-archive-meta{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.cab-team-archive-meta span{color:#338fd9;font-size:.69rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.cab-team-archive-meta span+span:before{content:"•";margin-right:7px;color:#9cafbf}
.cab-team-archive-content h2{margin:0;font-size:1.42rem;line-height:1.1;text-transform:uppercase}
.cab-team-archive-content p{min-height:2.7em;margin:10px 0 18px;color:#657585;font-size:.91rem;line-height:1.45}
.cab-team-archive-link{display:inline-flex;align-items:center;gap:7px;color:#1769a8;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.cab-teams-empty{padding:44px;border-radius:14px;background:#fff;text-align:center;color:#657585}
@media(max-width:900px){
 .cab-teams-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media(max-width:600px){
 .cab-teams-hero{padding:40px 0 36px}
 .cab-teams-catalogue{padding:38px 0 52px}
 .cab-teams-toolbar{align-items:flex-start;flex-direction:column;margin-bottom:25px}
 .cab-teams-filters{width:100%}
 .cab-team-filter{flex:1;padding-left:10px;padding-right:10px}
 .cab-teams-season-filter{width:100%;justify-content:space-between}
 .cab-teams-grid{grid-template-columns:1fr;gap:18px}
 .cab-team-archive-content{padding:20px}
 .cab-team-archive-content p{min-height:0}
}


/* FASE 8.2.3a — WordPress admin bar + cabecera sticky en móvil
   En <=600px WordPress deja la barra admin fuera del viewport al hacer scroll.
   El header debe pegarse entonces a top:0, no conservar el offset de 46px. */
@media (max-width:600px){
 .admin-bar .site-header{top:0}
}


/* =========================================================
   FASE 8.3.2a — NOTICIA / CRÓNICA INDIVIDUAL
   ========================================================= */
.cab-article{background:#f5f8fb;color:#0b2340}
.cab-article-container{width:min(100% - 2rem,1120px);margin-inline:auto}
.cab-article-container--reading{max-width:900px}
.cab-article-hero{padding:62px 0 50px;background:#081f38;color:#fff;text-align:center}
.cab-article-hero h1{max-width:900px;margin:12px auto 0;font-size:clamp(2rem,4.5vw,4rem);line-height:1.04;text-transform:uppercase}
.cab-article-kicker{margin:10px 0 0;color:#b9cad9;font-size:.82rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.cab-match-summary{padding:42px 0 0}
.cab-match-board{display:grid;grid-template-columns:1fr 130px 1fr;align-items:center;gap:24px;padding:30px 36px;border-radius:18px;background:#fff;box-shadow:0 10px 32px rgba(8,31,56,.09);text-align:center}
.cab-match-side{display:flex;align-items:center;justify-content:center;gap:22px}
.cab-match-team{font-size:1.08rem;font-weight:900;text-transform:uppercase}
.cab-match-side strong{font-size:3rem;line-height:1;color:#0b2340}
.cab-match-centre{display:flex;flex-direction:column;align-items:center;gap:7px}
.cab-match-centre span{color:#338fd9;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.09em}
.cab-match-centre b{font-size:1.25rem;color:#91a4b5}
.cab-match-newdate{grid-column:1/-1;margin:4px 0 0;padding-top:18px;border-top:1px solid #e4ebf1;color:#657585;font-weight:700}
.cab-match-board--postponed .cab-match-centre span{color:#a56b00}
.cab-match-board--suspended .cab-match-centre span{color:#a33b3b}
.cab-article-content{padding:46px 0 76px}
.cab-article-featured{overflow:hidden;margin:0 0 34px;border-radius:18px;background:#dfeaf2}
.cab-article-featured img{display:block;width:100%;height:auto}
.cab-article-body{padding:34px 40px;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(8,31,56,.07);font-size:1.04rem;line-height:1.75}
.cab-article-body>:first-child{margin-top:0}.cab-article-body>:last-child{margin-bottom:0}
.cab-article-footer{display:flex;justify-content:space-between;gap:20px;margin-top:24px}
.cab-article-footer a{color:#1769a8;font-size:.82rem;font-weight:900;text-decoration:none;text-transform:uppercase;letter-spacing:.05em}
@media(max-width:700px){
 .cab-article-hero{padding:40px 0 36px}
 .cab-match-summary{padding-top:28px}
 .cab-match-board{grid-template-columns:1fr 72px 1fr;gap:10px;padding:24px 14px}
 .cab-match-side{flex-direction:column;gap:10px}
 .cab-match-team{font-size:.82rem}
 .cab-match-side strong{font-size:2.35rem}
 .cab-match-centre span{font-size:.61rem}
 .cab-article-content{padding:32px 0 52px}
 .cab-article-body{padding:25px 21px}
 .cab-article-footer{align-items:flex-start;flex-direction:column}
}


/* FASE 8.3.2b — refinamiento editorial de crónicas */
.cab-article--match .cab-match-board{grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr);padding-top:27px;padding-bottom:27px}
.cab-article--match .cab-match-side{gap:26px}
.cab-article--match .cab-match-team{font-size:1.02rem;letter-spacing:.015em}
.cab-article--match .cab-match-centre{gap:5px}
.cab-article--match .cab-match-centre b{font-size:.68rem;font-weight:900;letter-spacing:.12em;color:#8296a8}
.cab-article--match .cab-article-body{padding:38px 44px;box-shadow:0 6px 22px rgba(8,31,56,.055)}
.cab-article--match .cab-article-footer{padding-inline:2px}
@media(max-width:700px){
 .cab-article--match .cab-match-board{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);padding:22px 12px}
 .cab-article--match .cab-match-side{gap:9px}
 .cab-article--match .cab-match-team{font-size:.76rem}
 .cab-article--match .cab-match-centre b{font-size:.58rem}
 .cab-article--match .cab-article-body{padding:27px 22px}
}


/* =========================================================
   FASE 8.3.3 — CATÁLOGO DE NOTICIAS Y CRÓNICAS
   ========================================================= */
.cab-news-archive{background:#f5f8fb;color:#0b2340}
.cab-news-hero{padding:62px 0 54px;background:#081f38;color:#fff;text-align:center}
.cab-news-hero h1{margin:0;font-size:clamp(2.35rem,5vw,4.6rem);line-height:1;text-transform:uppercase}
.cab-news-hero>div>p:last-child{margin:14px auto 0;color:#aebfd0}
.cab-news-catalogue{padding:58px 0 76px}
.cab-news-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:34px}
.cab-news-type-filters{display:flex;gap:8px;flex-wrap:wrap}
.cab-news-filter{appearance:none;border:1px solid #cbd9e5;border-radius:999px;background:#fff;color:#0b2340;padding:9px 17px;font:inherit;font-size:.82rem;font-weight:800;cursor:pointer;transition:.2s ease}
.cab-news-filter:hover,.cab-news-filter:focus-visible{border-color:#338fd9;color:#1769a8}.cab-news-filter.is-active{border-color:#338fd9;background:#338fd9;color:#fff}
.cab-news-team-filter{display:flex;align-items:center;gap:9px;color:#5d7082;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.cab-news-team-filter select{min-width:210px;border:1px solid #cbd9e5;border-radius:9px;background:#fff;padding:9px 34px 9px 11px;color:#0b2340}
.cab-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.cab-news-card{overflow:hidden;border-radius:17px;background:#fff;box-shadow:0 9px 30px rgba(8,31,56,.09);transition:transform .2s ease,box-shadow .2s ease}.cab-news-card[hidden]{display:none}.cab-news-card:hover{transform:translateY(-4px);box-shadow:0 15px 38px rgba(8,31,56,.14)}
.cab-news-card>a{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}
.cab-news-card__image{position:relative;aspect-ratio:16/9;overflow:hidden;background:#dfeaf2}.cab-news-card__image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.cab-news-card:hover .cab-news-card__image img{transform:scale(1.025)}
.cab-news-card__placeholder{display:grid;width:100%;height:100%;place-items:center;background:#0b2947;color:#e3e23e;font-size:2rem;font-weight:900}
.cab-news-card__badge{position:absolute;left:16px;bottom:14px;padding:6px 9px;border-radius:6px;background:#e3e23e;color:#081f38;font-size:.65rem;font-weight:900;letter-spacing:.09em}
.cab-news-card__content{display:flex;flex:1;flex-direction:column;padding:22px 23px 24px}.cab-news-card__date{margin:0 0 9px;color:#718395;font-size:.68rem;font-weight:800;letter-spacing:.08em}
.cab-news-card__content h2{margin:0;font-size:1.35rem;line-height:1.12;text-transform:uppercase}.cab-news-card__team{margin:11px 0 5px;color:#338fd9;font-size:.76rem;font-weight:900;text-transform:uppercase}
.cab-news-card__result{margin:6px 0 18px;padding:11px 12px;border-radius:8px;background:#f1f5f8;font-size:.82rem}.cab-news-card__result span{color:#91a4b5;margin:0 4px}
.cab-news-card__excerpt{margin:12px 0 18px;color:#657585;font-size:.9rem;line-height:1.5}.cab-news-card__link{margin-top:auto;color:#1769a8;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.cab-news-empty{padding:44px;border-radius:14px;background:#fff;text-align:center;color:#657585}
@media(max-width:900px){.cab-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:600px){.cab-news-hero{padding:40px 0 36px}.cab-news-catalogue{padding:38px 0 52px}.cab-news-toolbar{align-items:flex-start;flex-direction:column;margin-bottom:25px}.cab-news-type-filters{width:100%}.cab-news-filter{flex:1;padding-left:8px;padding-right:8px}.cab-news-team-filter{width:100%;justify-content:space-between}.cab-news-team-filter select{min-width:0;max-width:62%}.cab-news-grid{grid-template-columns:1fr;gap:18px}.cab-news-card__content{padding:20px}}


/* =========================================================
   FASE 8.4.3 — CALENDARIO Y RESULTADOS
   ========================================================= */
.cab-calendar-page{background:#f5f8fb;color:#0b2340}.cab-calendar-hero{padding:62px 0 54px;background:#081f38;color:#fff;text-align:center}.cab-calendar-hero h1{margin:0;font-size:clamp(2.35rem,5vw,4.6rem);line-height:1;text-transform:uppercase}.cab-calendar-hero>div>p:last-child{max-width:650px;margin:14px auto 0;color:#aebfd0}.cab-calendar-content{padding:54px 0 76px}.cab-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.cab-calendar-tabs{display:flex;gap:8px}.cab-calendar-tab{appearance:none;border:1px solid #cbd9e5;border-radius:999px;background:#fff;color:#0b2340;padding:10px 18px;font:inherit;font-size:.82rem;font-weight:850;cursor:pointer}.cab-calendar-tab.is-active{border-color:#338fd9;background:#338fd9;color:#fff}.cab-calendar-team-filter{display:flex;align-items:center;gap:9px;color:#5d7082;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.cab-calendar-team-filter select{min-width:220px;border:1px solid #cbd9e5;border-radius:9px;background:#fff;padding:9px 34px 9px 11px;color:#0b2340}.cab-calendar-list{display:grid;gap:16px}.cab-calendar-list[hidden]{display:none}.cab-calendar-card{overflow:hidden;border:1px solid #e0e8ef;border-radius:15px;background:#fff;box-shadow:0 7px 24px rgba(8,31,56,.065)}.cab-calendar-card[hidden]{display:none}.cab-calendar-card__top,.cab-calendar-card__bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 20px}.cab-calendar-card__top{border-bottom:1px solid #e8eef3}.cab-calendar-card__top>div{display:flex;align-items:baseline;gap:12px}.cab-calendar-card__top strong{font-size:.92rem}.cab-calendar-card__top div span{color:#708294;font-size:.75rem}.cab-calendar-status{padding:5px 8px;border-radius:5px;background:#eaf4fc;color:#1769a8;font-size:.62rem;font-weight:900;letter-spacing:.08em}.cab-calendar-status--played{background:#edf6ed;color:#34713b}.cab-calendar-status--postponed{background:#fff4dc;color:#936100}.cab-calendar-status--suspended,.cab-calendar-status--cancelled{background:#fbe9e9;color:#9a3434}.cab-calendar-card__game{display:grid;grid-template-columns:120px 1fr;align-items:center;padding:20px}.cab-calendar-date{display:flex;flex-direction:column;gap:4px;border-right:1px solid #e1e9ef}.cab-calendar-date strong{text-transform:uppercase;font-size:1.15rem}.cab-calendar-date span{color:#657585;font-size:.78rem}.cab-calendar-teams{padding-left:28px}.cab-calendar-teams>div{display:grid;grid-template-columns:1fr 55px;align-items:center;min-height:32px}.cab-calendar-teams span{font-weight:800}.cab-calendar-teams strong{text-align:right;font-size:1.45rem}.cab-calendar-card__bottom{border-top:1px solid #eef2f5;color:#718395;font-size:.76rem}.cab-calendar-card__bottom a{color:#1769a8;font-weight:900;text-decoration:none;text-transform:uppercase;letter-spacing:.05em}.cab-calendar-empty{margin:0;padding:42px;border-radius:14px;background:#fff;text-align:center;color:#657585}
@media(max-width:700px){.cab-calendar-hero{padding:40px 0 36px}.cab-calendar-content{padding:36px 0 52px}.cab-calendar-toolbar{align-items:stretch;flex-direction:column}.cab-calendar-tabs{display:grid;grid-template-columns:1fr 1fr}.cab-calendar-tab{padding-inline:8px}.cab-calendar-team-filter{justify-content:space-between}.cab-calendar-team-filter select{min-width:0;max-width:68%}.cab-calendar-card__top{align-items:flex-start}.cab-calendar-card__top>div{align-items:flex-start;flex-direction:column;gap:4px}.cab-calendar-card__game{grid-template-columns:82px 1fr;padding:17px 15px}.cab-calendar-teams{padding-left:17px}.cab-calendar-teams>div{grid-template-columns:1fr 38px;gap:7px}.cab-calendar-teams span{font-size:.83rem}.cab-calendar-teams strong{font-size:1.25rem}.cab-calendar-card__bottom{align-items:flex-start;flex-direction:column;gap:8px}}


/* FASE 8.7.1 — datos deportivos reales en ficha de equipo */
.cab-team-match-meta{margin-bottom:8px!important;font-weight:700;color:#334e68!important}
.cab-team-score{font-size:2.2rem;line-height:1}
.cab-team-score small{font-size:.75em;font-weight:500;color:#8a9bab}
.cab-team-result-rival{margin-bottom:8px!important;font-weight:800;color:#0b2340!important}


/* FASE 8.7.2 — crónicas relacionadas en ficha de equipo */
.cab-team-reports{padding:8px 0 76px;background:#f5f8fb}
.cab-team-reports-heading{display:flex;align-items:end;justify-content:space-between;gap:24px}
.cab-team-reports-heading>div p{margin:0 0 7px;color:#338fd9;font-size:.76rem;font-weight:900;letter-spacing:.12em}
.cab-team-reports-heading>div h2{margin:0}
.cab-team-reports-heading>a{color:#1769a8;font-size:.8rem;font-weight:900;text-decoration:none;text-transform:uppercase;letter-spacing:.06em}
.cab-team-reports-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.cab-team-report-card{overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(8,31,56,.08)}
.cab-team-report-card>a{display:block;height:100%;color:inherit;text-decoration:none}
.cab-team-report-image{aspect-ratio:16/9;overflow:hidden;background:#0b2947}
.cab-team-report-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.cab-team-report-card:hover .cab-team-report-image img{transform:scale(1.025)}
.cab-team-report-placeholder{display:grid;width:100%;height:100%;place-items:center;color:#e3e23e;font-size:1.8rem;font-weight:900}
.cab-team-report-body{padding:21px 22px 23px}
.cab-team-report-meta{margin:0 0 10px;color:#6b7d8f;font-size:.78rem;font-weight:700}
.cab-team-report-body h3{margin:0 0 18px;color:#0b2340;font-size:1.2rem;line-height:1.25}
.cab-team-report-link{color:#1769a8;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
@media(max-width:900px){.cab-team-reports-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .cab-team-reports{padding:0 0 52px}
 .cab-team-reports-heading{align-items:start;flex-direction:column}
 .cab-team-reports-grid{grid-template-columns:1fr}
}


/* FASE 8.7.3 — refinamiento operativo Calendario/Resultados */
.cab-calendar-filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cab-calendar-tab-count{font-weight:700;opacity:.72}
.cab-calendar-more-wrap{display:flex;justify-content:center;margin-top:26px}
.cab-calendar-more{appearance:none;border:1px solid #338fd9;border-radius:999px;background:#fff;color:#1769a8;padding:11px 22px;font:inherit;font-size:.8rem;font-weight:900;cursor:pointer;text-transform:uppercase;letter-spacing:.05em}
.cab-calendar-more:hover,.cab-calendar-more:focus-visible{background:#338fd9;color:#fff}
@media(max-width:700px){
 .cab-calendar-filters{align-items:stretch;flex-direction:column;width:100%}
 .cab-calendar-filters .cab-calendar-team-filter{width:100%}
 .cab-calendar-filters .cab-calendar-team-filter select{max-width:68%}
}


/* =========================================================
   FASE 8.8.1 — EL CLUB
   ========================================================= */
.cab-club-page{background:#f5f8fb;color:#0b2340}
.cab-club-hero{min-height:460px;display:flex;align-items:end;padding:78px 0 64px;background:#081f38;background-size:cover;background-position:center;color:#fff}
.cab-club-hero h1{max-width:760px;margin:0;font-size:clamp(3rem,6vw,5.8rem);line-height:.95;text-transform:uppercase}
.cab-club-hero__lead{max-width:720px;margin:20px 0 0;color:#d4e0ea;font-size:1.12rem;line-height:1.6}
.cab-club-section{padding:78px 0}.cab-club-section--intro{background:#fff}
.cab-club-intro-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:start}
.cab-club-kicker{margin:0 0 10px;color:#338fd9;font-size:.75rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.cab-club-intro-grid h2,.cab-club-heading h2,.cab-club-closing-card h2{margin:0;color:#0b2340;font-size:clamp(2rem,3.8vw,3.4rem);line-height:1.05;text-transform:uppercase}
.cab-club-copy{font-size:1rem;line-height:1.75;color:#52677a}.cab-club-copy p:first-child{margin-top:0}.cab-club-copy p:last-child{margin-bottom:0}
.cab-club-heading{max-width:760px;margin-bottom:36px}.cab-club-heading>p:last-child{margin:15px 0 0;color:#657585;line-height:1.6}
.cab-club-values-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.cab-club-values-grid article{min-height:245px;padding:28px;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(8,31,56,.07)}
.cab-club-values-grid article>span{display:inline-block;margin-bottom:28px;color:#338fd9;font-size:.72rem;font-weight:900;letter-spacing:.1em}
.cab-club-values-grid h3{margin:0 0 12px;font-size:1.35rem}.cab-club-values-grid p{margin:0;color:#657585;line-height:1.6}
.cab-club-section--structure{background:#fff}
.cab-club-org{max-width:1040px;margin:0 auto}.cab-club-org article{padding:22px;border:1px solid #dbe5ed;border-radius:14px;background:#fff;text-align:center}
.cab-club-org article span{display:block;margin-bottom:7px;color:#338fd9;font-size:.7rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.cab-club-org article strong{display:block;font-size:1.12rem}.cab-club-org article small{display:block;margin-top:7px;color:#6d7d8c;line-height:1.45}
.cab-club-org__top{display:flex;justify-content:center}.cab-club-org__top article{min-width:280px;border-top:4px solid #e3e23e}
.cab-club-org__line{width:1px;height:28px;margin:0 auto;background:#cbd8e2}
.cab-club-org__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.cab-club-org__support{max-width:760px;margin:28px auto 0;padding:23px 28px;border-radius:14px;background:#081f38;color:#fff;text-align:center}
.cab-club-org__support strong{font-size:1.08rem}.cab-club-org__support p{margin:8px 0 0;color:#c6d3df;line-height:1.5}
.cab-club-section--closing{padding-top:28px}.cab-club-closing-card{display:flex;align-items:center;justify-content:space-between;gap:36px;padding:42px;border-radius:20px;background:#fff;box-shadow:0 10px 32px rgba(8,31,56,.08)}
.cab-club-closing-card>div{max-width:720px}.cab-club-closing-card>div>p:last-child{margin:14px 0 0;color:#657585}
@media(max-width:900px){.cab-club-values-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cab-club-org__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cab-club-intro-grid{grid-template-columns:1fr;gap:30px}}
@media(max-width:600px){.cab-club-hero{min-height:380px;padding:56px 0 42px}.cab-club-section{padding:52px 0}.cab-club-values-grid,.cab-club-org__grid{grid-template-columns:1fr}.cab-club-values-grid article{min-height:0}.cab-club-closing-card{align-items:flex-start;flex-direction:column;padding:28px}.cab-club-closing-card .button{width:100%;justify-content:center}}


/* =========================================================
   FASE 8.8.2 — CAMPUS
   ========================================================= */
.cab-campus-page{background:#f5f8fb;color:#0b2340}
.cab-campus-hero{min-height:520px;display:flex;align-items:end;padding:80px 0 66px;background:#081f38;background-size:cover;background-position:center;color:#fff}
.cab-campus-hero h1{max-width:850px;margin:0;font-size:clamp(3rem,6vw,5.8rem);line-height:.95;text-transform:uppercase}
.cab-campus-hero__lead{max-width:760px;margin:20px 0 0;color:#d5e0e9;font-size:1.12rem;line-height:1.6}
.cab-campus-section{padding:74px 0}.cab-campus-section:nth-of-type(even){background:#fff}
.cab-campus-intro{display:grid;grid-template-columns:.85fr 1.15fr;gap:64px}
.cab-campus-kicker{margin:0 0 10px;color:#338fd9;font-size:.75rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.cab-campus-intro h2,.cab-campus-heading h2,.cab-campus-two-columns h2,.cab-campus-cta h2{margin:0;color:#0b2340;font-size:clamp(2rem,3.7vw,3.35rem);line-height:1.05;text-transform:uppercase}
.cab-campus-copy{color:#566a7c;font-size:1rem;line-height:1.75}.cab-campus-copy p:first-child{margin-top:0}
.cab-campus-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.cab-campus-benefits article{padding:28px;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(8,31,56,.07)}
.cab-campus-benefits span{display:inline-block;margin-bottom:24px;color:#338fd9;font-size:.72rem;font-weight:900}.cab-campus-benefits h3{margin:0 0 10px}.cab-campus-benefits p{margin:0;color:#657585;line-height:1.55}
.cab-campus-heading{max-width:760px;margin-bottom:34px}.cab-campus-heading>p:last-child{margin:14px 0 0;color:#657585}
.cab-campus-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.cab-campus-info-grid article{padding:26px;border:1px solid #dce5ed;border-radius:14px;background:#fff}.cab-campus-info-grid span{display:block;margin-bottom:9px;color:#338fd9;font-size:.7rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.cab-campus-info-grid strong{display:block;font-size:1.05rem}.cab-campus-info-grid p{margin:8px 0 0;color:#6b7c8b;font-size:.9rem}
.cab-campus-section--includes{background:#081f38!important;color:#fff}.cab-campus-section--includes .cab-campus-kicker{color:#e3e23e}.cab-campus-section--includes h2{color:#fff}
.cab-campus-two-columns{display:grid;grid-template-columns:.9fr 1.1fr;gap:60px;align-items:start}
.cab-campus-checklist{margin:0;padding:0;list-style:none}.cab-campus-checklist li{position:relative;padding:14px 0 14px 34px;border-bottom:1px solid rgba(255,255,255,.12);color:#d9e3ec}.cab-campus-checklist li:before{content:"✓";position:absolute;left:0;color:#e3e23e;font-weight:900}
.cab-campus-faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cab-campus-faq details{padding:20px 22px;border-radius:12px;background:#fff;box-shadow:0 6px 22px rgba(8,31,56,.06)}.cab-campus-faq summary{cursor:pointer;font-weight:850}.cab-campus-faq p{margin:12px 0 0;color:#657585;line-height:1.55}
.cab-campus-section--cta{padding-top:28px}.cab-campus-cta{display:flex;align-items:center;justify-content:space-between;gap:36px;padding:42px;border-radius:20px;background:#fff;box-shadow:0 10px 32px rgba(8,31,56,.08)}.cab-campus-cta>div{max-width:760px}.cab-campus-cta>div>p:last-child{margin:14px 0 0;color:#657585}
@media(max-width:900px){.cab-campus-intro,.cab-campus-two-columns{grid-template-columns:1fr;gap:30px}.cab-campus-benefits,.cab-campus-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cab-campus-hero{min-height:420px;padding:58px 0 44px}.cab-campus-section{padding:52px 0}.cab-campus-benefits,.cab-campus-info-grid,.cab-campus-faq{grid-template-columns:1fr}.cab-campus-cta{align-items:flex-start;flex-direction:column;padding:28px}.cab-campus-cta .button{width:100%;justify-content:center}}


/* =========================================================
   FASE 8.8.2b — CAMPUS V2
   ========================================================= */
.cab-campus-hero{min-height:560px;padding:86px 0 72px;background-position:center 45%}
.cab-campus-hero__content{max-width:790px}
.cab-campus-hero h1{max-width:780px;font-size:clamp(3.1rem,6vw,5.9rem)}
.cab-campus-hero__lead{max-width:700px;margin-top:20px;font-size:1.14rem}
.cab-campus-hero__actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.button--ghost{border:1px solid rgba(255,255,255,.32);background:transparent!important;color:#fff!important}
.button--ghost:hover,.button--ghost:focus-visible{background:rgba(255,255,255,.09)!important}

.cab-campus-section--benefits{background:#f5f8fb}
.cab-campus-heading--compact{margin-bottom:30px}
.cab-campus-benefits article{min-height:240px;padding:30px;border:1px solid #e2eaf0;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(8,31,56,.06)}
.cab-campus-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:22px;border-radius:50%;background:#eaf3fb;color:#1769a8;font-size:1.45rem}
.cab-campus-benefits h3{margin:0 0 12px;font-size:1.28rem}
.cab-campus-benefits p{margin:0;color:#657585;line-height:1.62}

.cab-campus-section--highlight{background:#fff}
.cab-campus-highlight{display:grid;grid-template-columns:.92fr 1.08fr;gap:34px;align-items:stretch;padding:38px;border-radius:24px;background:linear-gradient(135deg,#081f38 0%,#10345d 100%);box-shadow:0 14px 38px rgba(8,31,56,.14)}
.cab-campus-highlight__intro{display:flex;flex-direction:column;justify-content:center}
.cab-campus-highlight__intro .cab-campus-kicker{color:#e3e23e}
.cab-campus-highlight__intro h2{color:#fff}
.cab-campus-highlight__intro p{margin:18px 0 0;color:#d6e0ea;line-height:1.72}
.cab-campus-highlight__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cab-campus-highlight__grid article{padding:24px;border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.08)}
.cab-campus-highlight__grid span{display:block;margin-bottom:8px;color:#338fd9;font-size:.7rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.cab-campus-highlight__grid strong{display:block;color:#0b2340;font-size:1.12rem}
.cab-campus-highlight__grid p{margin:7px 0 0;color:#6d7d8c;font-size:.93rem}

.cab-campus-section--includes{background:#081f38!important;color:#fff}
.cab-campus-includes__lead{margin:16px 0 0;color:#d2dce7;line-height:1.65}

@media(max-width:900px){
 .cab-campus-highlight{grid-template-columns:1fr}
}
@media(max-width:600px){
 .cab-campus-hero{min-height:440px;padding:60px 0 46px}
 .cab-campus-hero__actions{flex-direction:column}
 .cab-campus-hero__actions .button{width:100%;justify-content:center}
 .cab-campus-highlight{padding:28px}
 .cab-campus-highlight__grid{grid-template-columns:1fr}
}


/* =========================================================
   FASE 8.8.2c — CAMPUS V2 · ICONOGRAFÍA FINA
   ========================================================= */
.cab-campus-benefits article{
	text-align:center;
}
.cab-campus-icon{
	display:grid;
	width:46px;
	height:46px;
	place-items:center;
	margin:0 auto 18px;
	border:1px solid #dbe6ef;
	border-radius:50%;
	background:#f7fafc;
	color:#338fd9;
	box-shadow:0 5px 14px rgba(8,31,56,.045);
}
.cab-campus-icon svg{
	width:21px;
	height:21px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.55;
	stroke-linecap:round;
	stroke-linejoin:round;
}
.cab-campus-benefits h3{
	text-align:center;
}
.cab-campus-benefits p{
	text-align:center;
}


/* =========================================================
   FASE 8.8.3 — CONTACTO
   ========================================================= */
.cab-contact-page{background:#f5f8fb;color:#0b2340}
.cab-contact-hero{padding:76px 0 66px;background:linear-gradient(135deg,#081f38 0%,#123c69 72%,#338fd9 100%);color:#fff}
.cab-contact-hero__inner{display:flex;align-items:flex-end;min-height:255px}
.cab-contact-hero__inner>div{max-width:780px}
.cab-contact-hero h1{margin:0;font-size:clamp(3.4rem,7vw,6.2rem);line-height:.92;text-transform:uppercase}
.cab-contact-hero p:last-child{max-width:700px;margin:20px 0 0;color:#d8e3ec;font-size:1.12rem;line-height:1.65}
.cab-contact-section{padding:78px 0}
.cab-contact-layout{display:grid;grid-template-columns:.78fr 1.22fr;gap:34px;align-items:start}
.cab-contact-info{padding:34px}
.cab-contact-kicker{margin:0 0 10px;color:#338fd9;font-size:.74rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.cab-contact-info h2,.cab-contact-form-card h2{margin:0;color:#0b2340;font-size:clamp(2rem,3.2vw,3rem);line-height:1.05;text-transform:uppercase}
.cab-contact-info__intro{margin:17px 0 0;color:#657585;line-height:1.72}
.cab-contact-info__items{display:grid;gap:14px;margin-top:32px}
.cab-contact-info__items article{display:flex;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid #dce5ed}
.cab-contact-info__icon{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border:1px solid #dbe6ef;border-radius:50%;background:#fff;color:#338fd9}
.cab-contact-info__icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cab-contact-info__items span{display:block;margin-bottom:4px;color:#718292;font-size:.73rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.cab-contact-info__items strong,.cab-contact-info__items a{color:#0b2340;font-weight:800;text-decoration:none}
.cab-contact-info__items a:hover{text-decoration:underline}
.cab-contact-social{margin-top:30px;padding-top:6px}
.cab-contact-social p{margin:0 0 12px;font-weight:850}
.cab-contact-social div{display:flex;gap:10px;flex-wrap:wrap}
.cab-contact-social a{padding:9px 13px;border:1px solid #d9e4ec;border-radius:999px;background:#fff;color:#0b2340;font-size:.86rem;font-weight:750;text-decoration:none}
.cab-contact-social a:hover{border-color:#338fd9;color:#1769a8}
.cab-contact-form-card{padding:36px;border:1px solid #e1e9ef;border-radius:22px;background:#fff;box-shadow:0 14px 40px rgba(8,31,56,.08)}
.cab-contact-form-card__head>p:last-child{margin:12px 0 0;color:#657585}
.cab-contact-form{margin-top:30px}
.cab-contact-form__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.cab-contact-form label>span{display:block;margin-bottom:8px;color:#344d63;font-size:.82rem;font-weight:800}
.cab-contact-form input[type="text"],.cab-contact-form input[type="email"],.cab-contact-form input[type="tel"],.cab-contact-form select,.cab-contact-form textarea{width:100%;border:1px solid #cfdbe5;border-radius:10px;background:#fbfdff;color:#0b2340;font:inherit;outline:none;transition:border-color .18s ease,box-shadow .18s ease}
.cab-contact-form input[type="text"],.cab-contact-form input[type="email"],.cab-contact-form input[type="tel"],.cab-contact-form select{min-height:48px;padding:0 13px}
.cab-contact-form textarea{padding:13px;resize:vertical}
.cab-contact-form input:focus,.cab-contact-form select:focus,.cab-contact-form textarea:focus{border-color:#338fd9;box-shadow:0 0 0 3px rgba(51,143,217,.12)}
.cab-contact-form__message{display:block;margin-top:18px}
.cab-contact-consent{display:flex!important;align-items:flex-start;gap:9px;margin-top:18px;color:#657585;font-size:.86rem;line-height:1.5}
.cab-contact-consent input{margin-top:4px}
.cab-contact-consent span{margin:0!important;font-weight:500!important}
.cab-contact-consent a{color:#1769a8}
.cab-contact-submit{margin-top:22px;border:0;cursor:pointer}
.cab-contact-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.cab-contact-alert{display:grid;gap:4px;margin-top:22px;padding:15px 17px;border-radius:10px;font-size:.9rem}
.cab-contact-alert--success{border:1px solid #b9dfca;background:#eef9f3;color:#1d6741}
.cab-contact-alert--error{border:1px solid #efc3c3;background:#fff3f3;color:#8b3030}
@media(max-width:900px){.cab-contact-layout{grid-template-columns:1fr}.cab-contact-info{padding:8px 10px 20px}}
@media(max-width:600px){.cab-contact-hero{padding:58px 0 48px}.cab-contact-hero__inner{min-height:210px}.cab-contact-section{padding:52px 0}.cab-contact-form-card{padding:26px 20px}.cab-contact-form__grid{grid-template-columns:1fr}.cab-contact-submit{width:100%;justify-content:center}}


/* =========================================================
   FASE 8.8.3b — CONTACTO V2
   ========================================================= */
.cab-contact-hero{
	position:relative;
	overflow:hidden;
	background:
		radial-gradient(circle at 82% 28%,rgba(227,226,62,.15) 0 78px,transparent 80px),
		radial-gradient(circle at 88% 32%,transparent 0 118px,rgba(255,255,255,.08) 119px 121px,transparent 122px),
		linear-gradient(135deg,#071c33 0%,#0c2f55 54%,#145b93 100%);
}
.cab-contact-hero::before{
	content:"";
	position:absolute;
	inset:0;
	pointer-events:none;
	opacity:.55;
	background:
		linear-gradient(90deg,transparent 0 69%,rgba(255,255,255,.07) 69.2% 69.35%,transparent 69.55%),
		linear-gradient(0deg,transparent 0 63%,rgba(255,255,255,.06) 63.2% 63.35%,transparent 63.55%);
}
.cab-contact-hero::after{
	content:"";
	position:absolute;
	width:330px;
	height:330px;
	right:-90px;
	bottom:-170px;
	border:2px solid rgba(227,226,62,.22);
	border-radius:50%;
	box-shadow:0 0 0 34px rgba(255,255,255,.025),0 0 0 70px rgba(255,255,255,.018);
}
.cab-contact-hero__inner{
	position:relative;
	z-index:1;
}
.cab-contact-hero h1{
	max-width:940px;
	font-size:clamp(3.2rem,6.4vw,5.6rem);
}
.cab-contact-form-card h2{
	font-size:clamp(1.9rem,2.7vw,2.55rem);
}
.cab-contact-social__icons{
	display:flex;
	gap:10px;
	align-items:center;
}
.cab-contact-social__icons a{
	display:grid;
	width:42px;
	height:42px;
	place-items:center;
	padding:0;
	border:1px solid #d9e4ec;
	border-radius:50%;
	background:#fff;
	color:#0b2340;
	transition:border-color .18s ease,color .18s ease,transform .18s ease;
}
.cab-contact-social__icons a:hover,
.cab-contact-social__icons a:focus-visible{
	border-color:#338fd9;
	color:#338fd9;
	transform:translateY(-1px);
}
.cab-contact-social__icons svg{
	width:18px;
	height:18px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.6;
	stroke-linecap:round;
	stroke-linejoin:round;
}
.cab-contact-social__icons a:nth-child(2) svg{
	fill:currentColor;
	stroke:none;
}
