/* ==========================================================================
   Carlos Bacca · One Page
   Paleta: bandera de Colombia sobre azul noche. Ver carlos-bacca-onepage.md
   ========================================================================== */
:root {
    --ground: #071A48;
    --ground-alt: #0A2160;
    --card: #10286A;
    --card-hover: #143080;
    --yellow: #FCD116;
    --yellow-hover: #FFE14D;
    --blue: #003893;
    --red: #CE1126;
    --text: #F3F4F6;
    --text-muted: #C9CDD6;
    --text-dim: #9AA0AE;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --bounce: cubic-bezier(.34, 1.56, .64, 1);
    --nav-h: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--yellow);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

p {
    margin: 0 0 1em;
    color: var(--text-muted);
}

ul,
dl,
dd,
figure {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 400;
}

.disp {
    font-family: "Bebas Neue", Impact, sans-serif;
    letter-spacing: .02em;
    line-height: .9;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.lbl {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 18px;
}

.h2 {
    font-size: clamp(64px, 9vw, 110px);
    margin-bottom: 24px;
}

.sec {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.sec-alt {
    background: var(--ground-alt);
}

/* Fondo grunge: grano fino + manchas y desgaste a gran escala (ruido fractal) + viñeta + brillos con los colores de Colombia.
   Todo generado en CSS/SVG, sin imágenes. Se usa en la portada (bajo la foto) y en Trayectoria. */
.hero-banner,
#trayectoria {
    background-color: var(--ground);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .006' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 -.14'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='turbulence' baseFrequency='.02 .09' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 -.03'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"),
        radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(2, 8, 28, .55) 100%),
        radial-gradient(900px 520px at 0% 100%, rgba(252, 209, 22, .10), transparent 60%),
        radial-gradient(800px 520px at 100% 100%, rgba(206, 17, 38, .12), transparent 60%);
    background-repeat: repeat, repeat, repeat, no-repeat, no-repeat, no-repeat;
    background-size: 180px 180px, 900px 900px, 700px 700px, auto, auto, auto;
    background-blend-mode: normal, multiply, screen, normal, normal, normal;
}
/* Historia: fondo más oscuro y con textura fina para que la sección se distinga del resto */
#biografia {
    background:
        radial-gradient(900px 500px at 8% 0%, rgba(252, 209, 22, .10), transparent 60%),
        radial-gradient(800px 600px at 100% 100%, rgba(206, 17, 38, .14), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 14px),
        #040E28;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

#biografia.sec::before {
    display: none;
}

.sec-head {
    max-width: 720px;
    margin-bottom: 64px;
}

.sec-head p {
    font-size: 18px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--yellow);
    color: var(--ground);
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 100;
}

.skip:focus {
    left: 8px;
}

/* Franja tricolor ---------------------------------------------------------- */
.tricolor {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    height: 6px;
}

.tricolor> :nth-child(1) {
    background: var(--yellow);
}

.tricolor> :nth-child(2) {
    background: var(--blue);
}

.tricolor> :nth-child(3) {
    background: var(--red);
}

/* Nav ---------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 26, 72, .42); /* translúcido: la foto de portada se ve por detrás */
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .4s;
}

.header.scrolled {
    background: rgba(7, 26, 72, .9); /* al bajar: casi opaco, legible sobre cualquier sección */
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    height: calc(var(--nav-h) - 6px);
}

.mono {
    font-size: 34px;
    color: var(--yellow);
    width: 48px;
    height: 48px;
    border: 2px solid var(--yellow);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 3px;
    transition: background .3s, color .3s;
}

.mono:hover {
    background: var(--yellow);
    color: var(--ground);
}

.nav {
    flex: 1;
}

.nav-links {
    display: flex;
    gap: 28px;
    justify-content: center;
}

.nav a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--yellow);
    transition: width .35s var(--ease);
}

.nav a:hover::after,
.nav a.activo::after {
    width: 100%;
}

.nav a.activo {
    color: var(--yellow);
}

.nav-cta {
    min-height: 42px;
    padding: 0 20px;
    font-size: 12px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--yellow);
    transition: transform .3s var(--ease), opacity .3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Botones y pills ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
    cursor: pointer;
    border: 0;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-gold {
    background: var(--yellow);
    color: var(--ground);
}

.btn-gold:hover {
    background: var(--yellow-hover);
    color: var(--ground);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(243, 244, 246, .35);
}

.btn-ghost:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(252, 209, 22, .35);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--yellow);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

/* Hero --------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-family: "Barlow Condensed", "Bebas Neue", Impact, sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -.015em;
    line-height: .86;
    font-size: clamp(104px, 13.5vw, 184px);
    color: var(--text);
    margin: 0 0 28px;
    padding-right: .08em;
}

.hero-title .hero-line:first-child {
    font-size: .62em;
    font-weight: 800;
    letter-spacing: .04em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .85);
    margin-left: .06em;
    margin-bottom: .04em;
}

.hero-title .hero-line:nth-child(2) span {
    background: linear-gradient(180deg, #FFE98A 0%, var(--yellow) 45%, #E0B300 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(.045em .045em 0 var(--red));
    padding-right: .1em;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-line span {
    display: block;
    transform: translateY(110%);
    animation: rise 1.1s var(--ease) forwards;
}

.hero-line:nth-child(2) span {
    animation-delay: .15s;
    color: var(--yellow);
}

.hero-text {
    font-size: 18px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0 44px;
}

.mini-stats {
    display: flex;
    gap: 40px;
}

.mini-stats .n,
.mini-cards .n,
.nums .n {
    display: block;
    font-size: 54px;
    color: var(--text);
}

.mini-stats .n {
    color: var(--yellow);
}

.fade {
    opacity: 0;
    animation: fadeUp 1s var(--ease) forwards;
}

.d1 {
    animation-delay: .45s;
}

.d2 {
    animation-delay: .65s;
}

.d3 {
    animation-delay: .85s;
}

.d4 {
    animation-delay: 1.05s;
}

.hero-visual {
    position: relative;
    justify-self: center;
    width: min(100%, 460px);
    padding-top: 60px;
}

.hero-num {
    position: absolute;
    top: -20px;
    right: -40px;
    font-size: 360px;
    color: transparent;
    -webkit-text-stroke: 2px rgba(252, 209, 22, .35);
    line-height: .8;
    user-select: none;
    z-index: 0;
}

.hero-photo {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    background: var(--card-hover);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
}

.photo-float {
    animation: floaty 6s ease-in-out infinite;
}

.seal {
    position: absolute;
    z-index: 2;
    left: -36px;
    bottom: 40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    box-shadow: 0 20px 40px -16px rgba(206, 17, 38, .8);
    transform: rotate(-8deg);
    border: 4px solid var(--ground);
}

.seal-years {
    font-size: 22px;
    margin-bottom: 6px;
}

.seal-txt {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1.35;
}

.ring {
    position: absolute;
    animation: spin 24s linear infinite;
    transform-origin: 50% 50%;
    pointer-events: none;
    z-index: 1;
}

.ring-1 {
    width: 720px;
    right: -200px;
    top: -140px;
}

.ring-2 {
    width: 520px;
    right: -60px;
    bottom: -160px;
    animation-direction: reverse;
    animation-duration: 36s;
}

.ghost-txt {
    position: absolute;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 260px;
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
    letter-spacing: .02em;
    user-select: none;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.ghost-hero {
    left: -20px;
    bottom: 20px;
}

.ghost-tl {
    right: -40px;
    top: 60px;
}

/* Reveal al scroll --------------------------------------------------------- */
.rv {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.rv-l {
    opacity: 0;
    transform: translateX(-70px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.rv-r {
    opacity: 0;
    transform: translateX(70px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.rv-s {
    opacity: 0;
    transform: scale(.85);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.rv.in,
.rv-l.in,
.rv-r.in,
.rv-s.in {
    opacity: 1;
    transform: none;
}

.stag>* {
    transition-delay: calc(var(--i, 0) * .12s);
}

/* Biografía ---------------------------------------------------------------- */
.bio-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 72px;
    align-items: center;
}

.bio-media {
    position: relative;
}

.bio-photo {
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card-hover);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
}

.circle-red {
    position: absolute;
    right: -28px;
    top: -28px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 4px solid var(--ground);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1.3;
}

.circle-red .disp {
    font-size: 44px;
    margin-bottom: 4px;
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.mini-cards li {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 20px 22px;
}

.mini-cards .n {
    color: var(--yellow);
}

/* Trayectoria -------------------------------------------------------------- */
.tl-wrap {
    position: relative;
}

.tl-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: rgba(255, 255, 255, .08);
}

.tl-prog {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    margin-left: -1px;
    background: var(--yellow);
    transform-origin: top;
    transform: scaleY(0);
    box-shadow: 0 0 18px rgba(252, 209, 22, .7);
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    align-items: center;
    padding: 36px 0;
}

.tl-par .tl-left {
    grid-column: 1;
    text-align: right;
    justify-self: end;
    padding-right: 24px;
}

.tl-par .tl-right {
    grid-column: 3;
    padding-left: 24px;
}

.tl-impar .tl-left {
    grid-column: 3;
    text-align: left;
    justify-self: start;
    padding-left: 24px;
}

.tl-impar .tl-right {
    grid-column: 1;
    grid-row: 1;
    padding-right: 24px;
}

.tl-dot {
    grid-column: 2;
    grid-row: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--yellow);
    border: 5px solid var(--ground-alt);
    justify-self: center;
    position: relative;
    z-index: 2;
    transform: scale(0);
    transition: transform .6s var(--bounce);
}

.tl-item.in .tl-dot {
    transform: scale(1);
    animation: pulse 2.4s ease-out infinite .6s;
}

.tl-year {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 96px;
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(252, 209, 22, .6);
    transition: color .8s, -webkit-text-stroke-color .8s;
    letter-spacing: .02em;
}

.tl-item.in .tl-year {
    color: var(--yellow);
    -webkit-text-stroke-color: var(--yellow);
}

.tl-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 28px 30px;
    transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}

.tl-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(252, 209, 22, .55);
    box-shadow: 0 24px 60px -24px rgba(252, 209, 22, .35);
}

.tl-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
}

.tl-head .club {
    font-size: 36px;
    color: var(--text);
    margin-right: auto;
}

.tl-head .meta {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    width: 100%;
    order: 3;
}

.tl-card p {
    font-size: 15px;
}

.nums {
    display: flex;
    gap: 32px;
    margin: 18px 0 16px;
}

.nums .n {
    font-size: 48px;
}

.nums .yellow {
    color: var(--yellow);
}

.tl-bar {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.tl-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--red);
    transition: width 1.4s var(--ease) .3s;
}

.tl-item.in .tl-bar i {
    width: var(--w, 50%);
}

/* Palmarés ----------------------------------------------------------------- */
.g2,
.g3,
.g4 {
    display: grid;
    gap: 20px;
}

.g2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.troph {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 30px;
    transition: transform .5s var(--ease), border-color .4s, background .4s, opacity .9s var(--ease);
    position: relative;
}

.troph:hover {
    transform: translateY(-8px);
    border-color: rgba(252, 209, 22, .6);
    background: var(--card-hover);
}

.troph svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--yellow);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .6s var(--bounce);
    margin-bottom: 22px;
}

.troph:hover svg {
    transform: rotate(-8deg) scale(1.12);
}

.troph .big {
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: 64px;
    color: var(--yellow);
}

.troph h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.troph p {
    font-size: 15px;
    margin: 0;
}

/* Estadísticas ------------------------------------------------------------- */
.stats-sec {
    background: var(--yellow);
    color: var(--ground);
}

.stats-sec .eyebrow,
.stats-sec .lbl {
    color: var(--ground);
    opacity: .85;
}

.stats-sec .h2,
.stats-sec h3 {
    color: var(--ground);
}

.stats-sec .sec-head {
    margin-bottom: 48px;
}

.stat {
    border-top: 2px solid rgba(7, 26, 72, .25);
    padding-top: 22px;
}

.big-num {
    display: block;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 120px;
    line-height: .9;
    letter-spacing: .02em;
    color: var(--ground);
    font-variant-numeric: tabular-nums;
}

.bars {
    margin-top: 80px;
}

.bars h3 {
    font-size: 40px;
    margin-bottom: 28px;
}

.bar-row {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 70px;
    gap: 20px;
    align-items: center;
    padding: 10px 0;
}

.bar-club {
    font-weight: 600;
    font-size: 15px;
    color: var(--ground);
}

.bar-club small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    color: rgba(7, 26, 72, .6);
}

.stats-sec .tl-bar {
    background: rgba(7, 26, 72, .15);
    height: 10px;
    border-radius: 5px;
}

.bar-n {
    font-size: 40px;
    text-align: right;
    color: var(--ground);
}

/* Galería ------------------------------------------------------------------ */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 300px;
    gap: 18px;
}

.gal-tall {
    grid-row: span 2;
}

.gal.oculta {
    display: none;
}

/* Filtros de la galería: pastillas con escudo y número de fotos. En móvil, una sola fila que se desliza */
.gal-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -28px 0 32px;
}

.gal-filtros button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--text-dim);
    padding: 6px 16px 6px 6px;
    cursor: pointer;
    font: 700 11px/1 Inter, system-ui, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .25s, border-color .25s, background .25s, transform .25s;
}

.gal-filtros .gf-ico {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    object-fit: contain;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.gal-filtros .gf-todas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
}

.gal-filtros .gf-todas svg {
    width: 16px;
    height: 16px;
    fill: var(--ground);
}

.gal-filtros .gf-ini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0a8a3a;
    color: #fff;
    font: 800 13px/1 Inter, system-ui, sans-serif;
}

.gal-filtros .gf-txt small {
    font-size: 11px;
    font-weight: 600;
    opacity: .7;
}

.gal-filtros button:hover {
    color: var(--text);
    border-color: rgba(252, 209, 22, .6);
    transform: translateY(-1px);
}

.gal-filtros button.activa {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ground);
}

.gal-filtros button.activa .gf-txt small {
    opacity: .8;
}

.gal-filtros button:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

/* Botón «Ver más fotos» (la galería se muestra de 9 en 9) */
.gal-mas {
    text-align: center;
    margin: 32px 0 0;
}

.gal-mas small {
    opacity: .7;
    margin-left: 4px;
}

.gal {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card-hover);
    transition: transform .6s var(--ease), opacity .9s var(--ease);
}

.gal:hover {
    transform: scale(1.03);
}

.gal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.gal:hover img {
    transform: scale(1.06);
}

/* Pie dentro de la foto, siempre visible: qué es la foto (título) y contexto (subtítulo) */
.gal .cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px 18px 16px;
    background: linear-gradient(to top, rgba(3, 12, 36, .94) 0%, rgba(3, 12, 36, .72) 45%, rgba(3, 12, 36, 0) 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: padding-bottom .45s var(--ease);
}

.gal:hover .cap,
.gal:focus-within .cap {
    padding-bottom: 20px;
}

.gal .cap strong {
    font-size: 15px;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.gal .cap span {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--yellow);
}

/* Redes sociales (seguidores) y elementos sociales --------------------------- */
.socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.soc {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: transparent;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .35s var(--bounce), border-color .3s, background .3s;
}

.soc svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.soc:hover {
    transform: translateY(-4px) rotate(-6deg);
    border-color: var(--yellow);
    background: rgba(252, 209, 22, .1);
    color: var(--yellow);
}

/* Footer ------------------------------------------------------------------- */
.footer {
    background: var(--ground-alt);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.footer-name {
    font-size: 36px;
    color: var(--yellow);
}

.footer-legal {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-legal a {
    color: var(--text-muted);
}

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--text-muted);
    cursor: pointer;
}

.link-btn:hover,
.footer-legal a:hover {
    color: var(--yellow);
}

/* Modal privacidad --------------------------------------------------------- */
.modal {
    width: min(92vw, 760px);
    max-height: 85vh;
    background: var(--card);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
}

.modal::backdrop {
    background: rgba(7, 26, 72, .8);
    backdrop-filter: blur(6px);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.modal-head h2 {
    font-size: 40px;
    color: var(--yellow);
}

.modal-body {
    padding: 24px 32px 36px;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
    font-size: 15px;
}

.modal-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 8px;
}

.modal-body h4 {
    font-size: 15px;
    margin: 18px 0 6px;
    color: var(--yellow);
}

.modal-body ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-muted);
}

/* Keyframes ---------------------------------------------------------------- */
@keyframes rise {
    to {
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(252, 209, 22, .55);
    }

    100% {
        box-shadow: 0 0 0 22px rgba(252, 209, 22, 0);
    }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-num {
        font-size: 280px;
        right: -20px;
    }

    .bar-row {
        grid-template-columns: 170px minmax(0, 1fr) 60px;
    }
}

@media (max-width: 900px) {
    :root {
        --nav-h: 70px;
    }

    .wrap {
        padding: 0 20px;
    }

    .sec {
        padding: 80px 0;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--ground-alt);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        display: none;
    }

    .nav.abierto {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 20px;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 15px;
    }

    .hero {
        padding: 48px 0 80px;
        min-height: 0;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .hero-title {
        font-size: clamp(96px, 26vw, 120px);
    }

    .hero-visual {
        width: min(100%, 380px);
        padding-top: 40px;
    }

    .hero-num {
        font-size: 220px;
        top: -10px;
        right: -10px;
    }

    .seal {
        left: -12px;
        width: 124px;
        height: 124px;
    }

    .seal-years {
        font-size: 18px;
    }

    .mini-stats {
        gap: 24px;
    }

    .mini-stats .n {
        font-size: 44px;
    }

    .ring-1 {
        width: 420px;
        right: -160px;
        top: -80px;
    }

    .ring-2 {
        display: none;
    }

    .ghost-txt {
        font-size: 120px;
    }

    .marquee {
        font-size: 22px;
        gap: 32px;
    }

    .bio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .bio-media {
        max-width: 420px;
    }

    .circle-red {
        right: -8px;
        top: -16px;
        width: 110px;
        height: 110px;
    }

    .circle-red .disp {
        font-size: 34px;
    }

    .mini-cards {
        gap: 10px;
    }

    .mini-cards li {
        padding: 14px 16px;
    }

    .mini-cards .n {
        font-size: 40px;
    }

    .tl-item {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 28px 0;
        align-items: start;
    }

    .tl-par .tl-left,
    .tl-impar .tl-left {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        justify-self: stretch;
        padding: 0 0 12px 8px;
    }

    .tl-par .tl-right,
    .tl-impar .tl-right {
        grid-column: 2;
        grid-row: 2;
        padding: 0 0 0 8px;
    }

    .tl-dot {
        grid-column: 1;
        grid-row: 1;
        margin-top: 18px;
    }

    .tl-line,
    .tl-prog {
        left: 19px;
    }

    .tl-year {
        font-size: 64px;
    }

    .tl-card {
        padding: 22px;
    }

    .tl-head .club {
        font-size: 30px;
    }

    .g2,
    .g3,
    .g4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .g4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .big-num {
        font-size: 80px;
    }

    .bars {
        margin-top: 56px;
    }

    .bar-row {
        grid-template-columns: minmax(0, 1fr) 50px;
    }

    .bar-row .tl-bar {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .bar-n {
        font-size: 32px;
    }

    .gal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 200px;
        gap: 12px;
    }

    .gal .cap {
        padding: 40px 12px 12px;
    }

    .gal .cap strong {
        font-size: 13px;
    }

    .gal .cap span {
        font-size: 10px;
    }

    /* Filtros en una fila deslizable */
    .gal-filtros {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: -20px -16px 24px;
        padding: 4px 16px 10px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gal-filtros::-webkit-scrollbar {
        display: none;
    }

    .gal-filtros button {
        flex: none;
        scroll-snap-align: start;
    }

    .modal-head {
        padding: 18px 20px;
    }

    .modal-body {
        padding: 18px 20px 28px;
    }
}

@media (max-width: 480px) {
    .gal-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 240px;
    }

    .gal-tall {
        grid-row: span 1;
    }

    .hero-num {
        font-size: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .rv,
    .rv-l,
    .rv-r,
    .rv-s,
    .hero-line span,
    .fade {
        opacity: 1 !important;
        transform: none !important;
    }

    .tl-dot {
        transform: scale(1);
    }

    .tl-bar i {
        width: var(--w, 50%);
    }

    .tl-prog {
        transform: scaleY(1);
    }
}

/* Hero: slider y fondo dinámico ------------------------------------------- */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg i {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: 50% 25%;
    filter: blur(34px) saturate(1.25);
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.4s var(--ease);
}

.hero-bg i.activa {
    opacity: .38;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--ground) 0%, rgba(7, 26, 72, .92) 38%, rgba(7, 26, 72, .55) 70%, rgba(7, 26, 72, .75) 100%),
        linear-gradient(180deg, rgba(7, 26, 72, .6) 0%, transparent 30%, transparent 70%, var(--ground) 100%);
}

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

.hero-visual {
    width: min(100%, 560px);
}

.slider {
    position: relative;
}

.hero-photo .slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1s var(--ease), transform 7s linear;
    pointer-events: none;
}

.hero-photo .slide.activa {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
    pointer-events: auto;
}

.hero-photo .slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(7, 26, 72, .9) 100%);
}

.slide-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 26px 24px 130px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform: translateY(14px);
    opacity: 0;
    transition: transform .9s var(--ease) .25s, opacity .9s var(--ease) .25s;
}

.hero-photo .slide.activa .slide-cap {
    transform: none;
    opacity: 1;
}

.slide-club {
    font-size: 44px;
    line-height: .95;
    color: var(--yellow);
    letter-spacing: .02em;
}

.slide-years {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    margin-top: 6px;
}

.slider-ui {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .3s, border-color .3s, transform .3s var(--bounce);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slider-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ground);
    transform: scale(1.08);
}

.slider-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.slider-dots button {
    width: 28px;
    height: 24px;
    border-radius: 2px;
    border: 0;
    padding: 10px 0;
    background: linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, .25)) center / 100% 4px no-repeat;
    cursor: pointer;
    transition: background .3s, width .4s var(--ease);
}

.slider-dots button:hover {
    background: rgba(255, 255, 255, .6);
}

.slider-dots button.activa {
    background: var(--yellow);
    width: 44px;
}

/* Trayectoria: foto de cada etapa ----------------------------------------- */
.tl-card {
    padding: 0;
    overflow: hidden;
}

.tl-body {
    padding: 22px 30px 28px;
}

.tl-photo {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--card-hover);
}

.tl-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1); /* sin zoom de base: así no se recorta la cabeza en las fotos verticales */
    filter: saturate(1.1) contrast(1.05);
    transition: transform 1.2s var(--ease);
}

.tl-card:hover .tl-photo img {
    transform: scale(1.08);
}

.tl-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 26, 72, .15) 0%, transparent 35%, transparent 60%, var(--card) 100%);
}

.tl-photo-year {
    position: absolute;
    z-index: 1;
    left: 22px;
    bottom: 10px;
    font-size: 40px;
    line-height: 1;
    color: var(--yellow);
    letter-spacing: .03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .6);
}

/* Palmarés: subcampeonatos y distinciones ---------------------------------- */
.subcamp {
    margin: 28px 0 0;
    font-size: 14px;
    color: var(--text-dim);
    letter-spacing: .02em;
}

.awards {
    margin-top: 72px;
}

.awards h3 {
    font-size: 40px;
    margin-bottom: 28px;
}

.awards-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
}

.awards-list li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 15px;
    line-height: 1.5;
}

.award-year {
    font-size: 34px;
    line-height: 1;
    color: var(--yellow);
}

/* Estadísticas: nota de actualización -------------------------------------- */
.stats-note {
    margin: 32px 0 0;
    font-size: 15px;
    color: rgba(7, 26, 72, .8);
}

.stats-note strong {
    color: var(--ground);
    font-weight: 700;
}

.stats-note .upd {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(7, 26, 72, .12);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .slide-club {
        font-size: 36px;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        width: min(100%, 440px);
    }

    .hero-bg::after {
        background:
            linear-gradient(180deg, var(--ground) 0%, rgba(7, 26, 72, .8) 40%, rgba(7, 26, 72, .6) 70%, var(--ground) 100%);
    }

    .slide-cap {
        padding: 0 20px 20px 110px;
    }

    .slide-club {
        font-size: 30px;
    }

    .tl-body {
        padding: 18px 22px 22px;
    }

    .tl-photo-year {
        font-size: 32px;
        left: 18px;
    }

    .awards-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .awards h3 {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-photo .slide {
        transform: none;
    }

    .slide-cap {
        opacity: 1;
        transform: none;
    }

    .hero-bg i {
        transform: none;
    }
}

/* Goles (vídeos) ----------------------------------------------------------- */
.ghost-goles {
    right: -20px;
    top: 40px;
}

#goles {
    position: relative;
    overflow: hidden;
}

.vid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.vid {
    margin: 0;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}

.vid:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 209, 22, .55);
    box-shadow: 0 24px 60px -24px rgba(252, 209, 22, .35);
}

.vid video,
.vid iframe,
.vid-play {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 0;
}

.vid-play {
    position: relative;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.vid-play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease), filter .4s;
}

.vid-play:hover img {
    transform: scale(1.06);
    filter: brightness(.8);
}

.vid-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ground);
    display: grid;
    place-items: center;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
    transition: transform .4s var(--bounce), background .3s;
}

.vid-btn svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
    margin-left: 4px;
}

.vid-play:hover .vid-btn {
    transform: scale(1.1);
    background: var(--yellow-hover);
}

.vid-cap {
    padding: 18px 22px 22px;
    display: grid;
    gap: 4px;
}

.vid-cap strong {
    font-size: 18px;
}

.vid-cap span {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: .04em;
}

/* Fundación ---------------------------------------------------------------- */
.fund-sec {
    position: relative;
    overflow: hidden;
}

.fund-sec::before {
    content: "";
    position: absolute;
    right: -200px;
    top: -200px;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 209, 22, .14), transparent 65%);
    pointer-events: none;
}

.fund-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: center;
    position: relative;
}

.fund-escudo {
    position: relative;
    aspect-ratio: 1;
    max-width: 360px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, var(--card-hover), var(--ground) 72%);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 0 0 14px rgba(252, 209, 22, .06);
    animation: floaty 7s ease-in-out infinite;
}

.fund-escudo::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1.5px dashed rgba(252, 209, 22, .35);
    animation: spin 40s linear infinite;
}

.fund-escudo img {
    width: 58%;
    height: 58%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5));
}

.fund-nombre {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 34px;
    letter-spacing: .04em;
    color: var(--yellow);
    margin: -8px 0 18px;
}

.footer-fund {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: color .3s;
}

.footer-fund:hover {
    color: var(--yellow);
}

.footer-fund img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .fund-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .fund-escudo {
        max-width: 240px;
    }

    .fund-nombre {
        font-size: 28px;
    }

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

    .vid-btn {
        width: 60px;
        height: 60px;
    }

    .footer-bar {
        flex-wrap: wrap;
        gap: 14px;
    }
}

/* Nav con 8 enlaces: evitar que el botón se parta en dos líneas */
.nav-cta {
    white-space: nowrap;
}

@media (max-width: 1260px) and (min-width: 901px) {
    .nav-links {
        gap: 18px;
    }

    .nav-cta {
        display: none;
    }
}

/* Selector de idioma -------------------------------------------------------- */
.nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links {
    flex: 1;
}

.lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 10px 0 12px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--text-dim);
    transition: border-color .25s, color .25s;
}

.lang:hover,
.lang:focus-within,
.lang.abierto {
    border-color: var(--yellow);
    color: var(--text);
}

.lang {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    border: 0;
    background: none;
    color: inherit;
    font: 700 12px/1 Inter, system-ui, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
}

.lang-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    flex: none;
}

.lang-btn .lang-chev {
    width: 12px;
    height: 12px;
    stroke: var(--yellow);
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: transform .3s var(--ease);
}

.lang.abierto .lang-chev {
    transform: rotate(180deg);
}

/* Lista desplegable: mismo estilo que el resto de la web (nada del desplegable nativo del sistema) */
.lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: rgba(6, 21, 64, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
    display: none;
    z-index: 60;
}

.lang.abierto .lang-list {
    display: block;
}

.lang-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text);
    text-decoration: none;
    font: 500 14px/1.2 Inter, system-ui, sans-serif;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.lang-list a b {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--yellow);
    width: 22px;
}

.lang-list a:hover,
.lang-list a:focus-visible {
    background: rgba(255, 255, 255, .08);
    outline: none;
}

.lang-list a[aria-current] {
    background: rgba(252, 209, 22, .14);
}

.lang>svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    flex: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Fotos ampliables y visor -------------------------------------------------- */
[data-lb] {
    cursor: zoom-in;
}

[data-lb]:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.lb {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    color: var(--text);
}

.lb::backdrop {
    background: rgba(4, 14, 40, .94);
    backdrop-filter: blur(6px);
}

.lb-fig {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 56px 72px 40px;
}

.lb-fig img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
    animation: fadeUp .5s var(--ease);
}

.lb-fig figcaption {
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: center;
}

.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .3s, color .3s;
    z-index: 2;
}

.lb-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lb-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ground);
}

.lb-prev {
    left: 16px;
}

.lb-next {
    right: 16px;
}

.lb-close {
    top: 16px;
    right: 16px;
    transform: none;
}

/* Hazte una foto con Bacca --------------------------------------------------- */
.selfie-sec {
    position: relative;
    overflow: hidden;
}

.selfie-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 64px;
    align-items: center;
}

.drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 36px 24px;
    margin: 28px 0 14px;
    border: 2px dashed rgba(252, 209, 22, .5);
    border-radius: 20px;
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    transition: border-color .3s, background .3s, transform .3s var(--ease);
}

.drop:hover,
.drop.sobre,
.drop:focus-within {
    border-color: var(--yellow);
    background: rgba(252, 209, 22, .08);
    transform: translateY(-2px);
}

.drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.drop svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--yellow);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 6px;
}

.drop strong {
    font-size: 18px;
}

.drop span {
    font-size: 13px;
    color: var(--text-dim);
}

.selfie-msg {
    min-height: 24px;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 14px;
}

.selfie-msg.es-error {
    color: #ff8a96;
}

.selfie-msg.es-ok {
    color: var(--yellow);
}

.selfie-msg.es-info {
    color: var(--text-dim);
}

.selfie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.btn-ws {
    background: #25D366;
    color: #06301a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ws svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-ws:hover {
    background: #3ee07a;
    transform: translateY(-2px);
}

.selfie-priv {
    font-size: 12.5px;
    color: var(--text-dim);
    margin: 0;
}

.selfie-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    width: min(100%, 440px);
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--card-hover), var(--ground));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}

.selfie-frame canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .6s var(--ease);
}

.selfie-frame.lista canvas {
    opacity: 1;
}

.selfie-demo {
    position: absolute;
    right: -6%;
    bottom: -4%;
    height: 78%;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6));
    transition: opacity .5s;
    animation: floaty 7s ease-in-out infinite;
}

.selfie-tu {
    position: absolute;
    left: 10%;
    top: 14%;
    width: 36%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px dashed rgba(252, 209, 22, .7);
    display: grid;
    place-items: center;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 72px;
    color: rgba(252, 209, 22, .8);
    transition: opacity .5s;
}

.selfie-frame.lista .selfie-demo,
.selfie-frame.lista .selfie-tu {
    opacity: 0;
    pointer-events: none;
}

.selfie-frame.cargando::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 26, 72, .55);
    background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(252, 209, 22, .12) 18px 36px);
    animation: marquee 1.2s linear infinite;
}

@media (max-width: 900px) {
    .nav {
        display: block;
    }

    .lang {
        margin: 12px 0 4px;
        width: max-content;
    }

    .selfie-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .selfie-preview {
        order: -1;
    }

    .selfie-frame {
        width: min(100%, 340px);
    }

    .selfie-tu {
        font-size: 52px;
    }

    .lb-fig {
        padding: 70px 12px 30px;
    }

    .lb-btn {
        width: 44px;
        height: 44px;
    }

    .lb-prev {
        left: 8px;
    }

    .lb-next {
        right: 8px;
    }
}

.selfie-actions[hidden] {
    display: none;
}

.nav-links a {
    white-space: nowrap;
}

@media (max-width: 1400px) and (min-width: 901px) {
    .nav-cta {
        display: none;
    }

    .nav-links {
        gap: 18px;
    }
}

@media (max-width: 1150px) and (min-width: 901px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 11px;
    }
}

/* Logotipo de cabecera ------------------------------------------------------ */
.logo {
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 4px 0;
    transition: transform .4s var(--ease), filter .3s;
}

.logo img {
    height: 28px;
    width: auto;
    display: block;
}

.logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(206, 17, 38, .45));
}

/* Separación entre secciones (sustituye a la cinta de clubes) --------------- */
.hero {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
    padding-bottom: 140px;
}

.sec+.sec::before,
.hero+.sec::before,
.sec.stats-sec::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(252, 209, 22, .55) 18%, rgba(252, 209, 22, .55) 82%, transparent);
    pointer-events: none;
}

.hero+.sec::before {
    top: auto;
    display: none;
}

.sec-head {
    position: relative;
}

.sec-head::before {
    content: "";
    display: block;
    width: 72px;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 26px;
    background: linear-gradient(90deg, var(--yellow) 0 50%, var(--blue) 50% 75%, var(--red) 75%);
}

.stats-sec .sec-head::before {
    background: linear-gradient(90deg, var(--ground) 0 50%, var(--blue) 50% 75%, var(--red) 75%);
}

/* Etiqueta de Instagram en la portada */
.pill-ig {
    text-decoration: none;
    border-color: rgba(255, 255, 255, .35);
    color: var(--text);
    background: linear-gradient(90deg, rgba(206, 17, 38, .35), rgba(252, 209, 22, .18));
    transition: transform .3s var(--ease), border-color .3s;
}

.pill-ig svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.pill-ig:hover {
    transform: translateY(-2px);
    border-color: var(--yellow);
}

/* Copas reales en el palmarés ---------------------------------------------- */
.troph-img {
    padding-top: 26px;
}

/* Una sola copa (foto real sin fondo) y el número de veces como «×3» */
.copas {
    display: flex;
    align-items: flex-end;
    height: 150px;
    margin-bottom: 22px;
    padding-right: 100px;
}

.copas img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55));
    transform-origin: bottom center;
    transition: transform .5s var(--bounce);
}

.troph:hover .copas img {
    transform: translateY(-6px) rotate(-4deg);
}

/* Escudos (carpeta escudos/): más pequeños que las copas y sin sombra proyectada */
.troph-escudo .copas img {
    height: 72%;
    filter: none;
}

.troph-img .big {
    top: 20px;
}

.big-x small {
    font-size: .55em;
    margin-right: 2px;
    vertical-align: .2em;
}

/* Fundación: logotipo sobre blanco y redes ---------------------------------- */
.fund-escudo {
    background: #fff;
    border-radius: 36px;
    aspect-ratio: 1;
    border: 0;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 10px rgba(252, 209, 22, .1);
}

.fund-escudo::after {
    border-radius: 48px;
}

.fund-escudo img {
    width: 82%;
    height: 82%;
    filter: none;
}

.fund-lema {
    display: inline-block;
    margin-left: 10px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-dim);
    vertical-align: middle;
}

.fund-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
    margin-top: 28px;
}

.fund-socials {
    display: inline-flex;
    gap: 10px;
}

.footer-fund img {
    background: #fff;
    border-radius: 8px;
    padding: 2px;
}

/* Instagram ----------------------------------------------------------------- */
.ig-sec {
    overflow: hidden;
}

.ghost-ig {
    right: -20px;
    bottom: 20px;
    top: auto;
}

.ig-head {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

.ig-head>div {
    max-width: 720px;
}

.btn-ig {
    background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
    color: #fff;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.btn-ig svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ig-post {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    aspect-ratio: 4 / 5;
    transition: transform .5s var(--ease), border-color .4s;
}

.ig-post:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 209, 22, .6);
}

.ig-post.cargado {
    aspect-ratio: auto;
    min-height: 560px;
    background: #fff;
}

.ig-post iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    border: 0;
    background: #fff;
}

.ig-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: radial-gradient(circle at 50% 40%, rgba(252, 209, 22, .12), transparent 60%);
}

.ig-ph svg {
    width: 54px;
    height: 54px;
    fill: none;
    stroke: var(--yellow);
    stroke-width: 1.4;
}

.ig-ph:hover {
    color: var(--text);
}

.ig-load {
    margin: 28px 0 0;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ig-load small {
    color: var(--text-dim);
    font-size: 13px;
}

.ig-load.oculto {
    display: none;
}

@media (max-width: 1100px) {
    .ig-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: clamp(84px, 22vw, 120px);
    }

    .copas {
        height: 120px;
        padding-right: 70px;
    }

    .lang {
        height: 40px;
    }

    .fund-escudo img {
        width: 80%;
        height: 80%;
    }
}

@media (max-width: 560px) {
    .ig-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Cabecera: diez enlaces + idioma en una sola línea ------------------------- */
.header .wrap {
    max-width: 1560px;
}

.nav {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

.nav-links {
    flex: 0 1 auto;
    gap: 20px;
}

.nav-cta {
    display: none;
}

@media (min-width: 1800px) {
    .nav-cta {
        display: inline-flex;
    }
}

@media (max-width: 1500px) {
    .nav-links {
        gap: 15px;
    }

    .nav a {
        font-size: 12px;
        letter-spacing: .08em;
    }
}

@media (max-width: 1250px) {
    .nav-links {
        gap: 11px;
    }

    .nav a {
        font-size: 11px;
        letter-spacing: .04em;
    }
}

.copas img {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.nav-cta,
.nav-cta.btn {
    display: none !important;
}

.nav a {
    font-size: 12px;
    letter-spacing: .08em;
}

.nav-links {
    gap: 16px;
}

.troph {
    padding: 26px 24px 28px;
}

.copas {
    height: 150px;
    padding-right: 96px;
}

.troph-img .big {
    top: 14px;
    right: 20px;
    font-size: 54px;
}

.ig-head::before {
    display: none;
}

.ig-head>div::before {
    content: "";
    display: block;
    width: 72px;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 26px;
    background: linear-gradient(90deg, var(--yellow) 0 50%, var(--blue) 50% 75%, var(--red) 75%);
}

.ig-post.cargado,
.ig-post iframe {
    min-height: 600px;
}

/* Fuentes alojadas en el propio dominio ------------------------------------- */
@font-face {
    font-family: "Bebas Neue";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/bebas-neue.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/barlow-condensed-800i.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/barlow-condensed-900i.woff2") format("woff2");
}

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/inter-var.woff2") format("woff2");
}

/* Puntos del carrusel: zona pulsable de 24 px (WCAG 2.5.8) con la línea de 4 px dentro */
.slider-dots button:hover {
    background: linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, .6)) center / 100% 4px no-repeat;
}

.slider-dots button.activa {
    background: linear-gradient(var(--yellow), var(--yellow)) center / 100% 4px no-repeat;
}

/* Título con contorno: alternativa cuando no hay text-stroke o en alto contraste */
@supports not (-webkit-text-stroke: 1px #fff) {
    .hero-title .hero-line:first-child {
        color: var(--text);
    }
}

@media (forced-colors: active) {
    .hero-title .hero-line:first-child {
        color: CanvasText;
        -webkit-text-stroke: 0;
    }

    .hero-title .hero-line:nth-child(2) span {
        color: CanvasText;
        background: none;
        filter: none;
    }
}

/* Pie: fila superior con enlaces secundarios y crédito con logotipo */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding-top: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding-bottom: 24px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 26px;
}

.footer-nav a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--yellow);
}

.footer-nav .footer-fund {
    text-transform: none;
    letter-spacing: .04em;
}

.footer-bar {
    padding-top: 22px;
}

.credito-cesko {
    font-size: 13px;
    color: var(--text-dim);
}

.credito-cesko a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.credito-cesko a:hover {
    color: var(--yellow);
}

.credito-cesko img {
    width: 18px;
    height: 18px;
}

.modal-body ul {
    padding-left: 20px;
    list-style: disc;
    margin: 0 0 16px;
}

.modal-body li {
    margin-bottom: 6px;
}

/* Portada tipo banner ------------------------------------------------------- */
/* Portada: arriba la foto limpia (carrusel), debajo la franja de flechas y, sobre el fondo azul, el texto y la tarjeta */
.hero-banner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
    padding: 0 0 56px; /* deja el contenido por encima del corte diagonal */
    margin-top: calc(-1 * var(--nav-h)); /* la foto empieza debajo del menú, que es translúcido */
}

/* La sección que sigue a la portada va más pegada: el corte diagonal es del mismo azul y no se nota */
.hero-banner+.sec {
    padding-top: 56px;
}

.hero-banner .hero-bg {
    position: relative;
    inset: auto;
    z-index: 1;
    height: calc(clamp(380px, 64vh, 760px) + var(--nav-h));
    pointer-events: none;
}

.hero-banner .hero-bg .slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s var(--ease), transform 9s linear;
}

.hero-banner .hero-bg .slide.activa {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-banner .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    filter: saturate(.92);
}

.hero-banner .hero-bg::after {
    z-index: 2;
    /* Solo un velo suave arriba (para el menú) y un fundido al azul abajo, para que la foto se vea limpia */
    background:
        linear-gradient(180deg, rgba(7, 26, 72, .18) 0%, rgba(7, 26, 72, 0) 16%, rgba(7, 26, 72, 0) 78%, var(--ground) 100%);
}

.hero-banner .hero-bg img {
    filter: none;
}

.hero-banner .ghost-hero {
    bottom: 60px;
    opacity: .6;
}

/* Barra inferior de la portada («Sitio web oficial» + etiquetas) */
.hero-foot {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px 12px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 18px;
    padding: 0 12px 18px; /* un poco más ancha que la columna de texto para que quepa todo en una línea */
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}

/* «Sitio web oficial» + etiquetas: van juntos a la derecha; si no caben junto a las flechas, bajan de línea en bloque */
.hero-foot-txt {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px 14px;
    margin-left: auto;
}

.hero-foot .hero-dots {
    margin-right: 32px; /* el punto mide 8px y los otros dos van en sombra a 13 y 26px */
}

.hero-foot .hero-slider-ui .slider-dots {
    gap: 6px;
    flex-wrap: nowrap;
}

.hero-foot .hero-slider-ui .slider-dots button {
    width: 20px;
}

.hero-foot .hero-slider-ui .slider-dots button.activa {
    width: 34px;
}

.hero-foot .hero-cap {
    font-size: 10px;
    letter-spacing: .1em;
    margin-left: 6px;
}

.hero-foot-l,
.hero-foot-r {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.hero-foot-r>*+* {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.hero-foot .is-red {
    color: #FF8A95;
}

.hero-foot .pill-ig {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: var(--yellow);
    font: inherit;
    letter-spacing: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-foot .pill-ig:hover {
    transform: none;
    text-decoration: underline;
}

.hero-foot-r>.pill-ig+*,
.hero-foot-r>*+.pill-ig {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.hero-dots {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 13px 0 0 var(--blue), 26px 0 0 var(--red);
    margin-right: 28px;
}

.hero-banner .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 400px);
    align-items: center;
    gap: 40px 56px;
    padding-top: 56px;
}

.hero-kicker {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--yellow);
}

.hero-kicker-n {
    white-space: nowrap;
    font-family: "Barlow Condensed", "Bebas Neue", Impact, sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 22px;
    letter-spacing: .04em;
    color: #fff;
}

.hero-kicker i {
    width: 48px;
    height: 2px;
    background: var(--red);
    flex: 0 0 auto;
}

.hero-banner .hero-title {
    font-size: clamp(56px, 7.2vw, 118px);
    line-height: .9;
    margin: 0 0 22px;
    padding-right: .06em;
}

.hero-banner .hero-title .hero-line:first-child {
    font-size: 1em;
    font-weight: 900;
    letter-spacing: -.01em;
    color: #fff;
    -webkit-text-stroke: 0;
    margin: 0;
    text-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.hero-banner .hero-title .hero-sub span {
    font-size: .6em;
    letter-spacing: .005em;
    background: linear-gradient(180deg, #FFE98A 0%, var(--yellow) 50%, #E9BE00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: none;
    padding-right: .1em;
}

.hero-banner .hero-text {
    max-width: 580px;
    font-size: 17px;
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hero-banner .hero-actions {
    margin: 28px 0 32px;
}

.hero-banner .btn svg {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Flechas, puntos y pie de foto del banner: van en la franja inferior, bajo el banner */
.hero-slider-ui {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 0;
}

.hero-slider-ui .slider-btn {
    width: 32px;
    height: 32px;
}

.hero-slider-ui .slider-btn svg {
    width: 16px;
    height: 16px;
}

.hero-cap {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.hero-cap strong {
    color: var(--yellow);
    font-weight: 700;
}

.hero-card {
    position: relative;
    z-index: 2;
    background: rgba(4, 14, 40, .78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    padding: 22px 26px 20px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85);
}

.hero-card-t {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 14px;
}

.hero-card-t i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 4px rgba(252, 209, 22, .2);
}

.hero-card-n {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 0 10px;
}

.hero-card-n .n {
    font-size: 76px;
    line-height: .9;
    color: var(--yellow);
}

.hero-card-l {
    font-family: "Barlow Condensed", "Bebas Neue", Impact, sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 1;
    color: #fff;
}

.hero-card-txt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.hero-card-stats {
    list-style: none;
    padding: 14px 0;
    margin: 0 0 12px;
    display: flex;
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.hero-card-stats .n {
    display: block;
    font-size: 36px;
    line-height: 1;
    color: #fff;
    margin-bottom: 4px;
}

.hero-card-pie {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-dim);
}

@media (max-width: 1100px) {
    .hero-banner .hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, 340px);
    }

    .hero-card-n .n {
        font-size: 60px;
    }
}

@media (max-width: 900px) {
    .hero-banner {
        min-height: 0;
        padding: 0 0 48px;
    }

    .hero-banner .hero-bg {
        height: calc(clamp(240px, 46vh, 460px) + var(--nav-h));
    }

    .hero-banner .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-top: 36px;
    }

    .hero-banner .hero-title {
        font-size: clamp(54px, 13.5vw, 88px);
    }

    .hero-foot {
        font-size: 10px;
        gap: 10px 18px;
    }

    .hero-card {
        padding: 20px 22px 18px;
    }

    .hero-card-n .n {
        font-size: 56px;
    }

    .hero-card-stats {
        gap: 24px;
    }

    .hero-slider-ui {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .hero-foot-r {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-banner .hero-bg .slide {
        transition: opacity .6s;
        transform: none;
    }
}

/* Historia por capítulos ---------------------------------------------------- */
.cap-block {
    overflow: hidden;
}

.cap-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px 24px;
    flex-wrap: wrap;
    padding: 22px 0 6px;
}

.cap-rotulo {
    display: block;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.cap-rotulo::before {
    content: "";
    display: block;
    width: 72px;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--yellow) 0 50%, var(--blue) 50% 75%, var(--red) 75%);
}

.cap-head .h2 {
    margin-bottom: 0;
}

.cap-ctrl {
    display: flex;
    gap: 10px;
}

.cap-ctrl .slider-btn {
    width: 40px;
    height: 40px;
}

.cap-play .ico-play {
    display: none;
}

.cap-play.pausado .ico-play {
    display: block;
}

.cap-play.pausado .ico-pausa {
    display: none;
}

/* Sin caja: los capítulos van directamente sobre el fondo de la sección */
.cap-car {
    position: relative;
    margin-top: 0;
}

.cap-prog {
    position: relative;
    height: 3px;
    background: rgba(255, 255, 255, .08);
    border-radius: 2px;
    overflow: hidden;
    z-index: 3;
}

.cap-prog i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--yellow), var(--red));
}

.cap-track {
    display: flex;
    overflow: hidden;
    scroll-snap-type: x mandatory;
}

.cap {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 44px;
    padding: 18px 0 28px;
    align-items: start;
    opacity: .3;
    transition: opacity .8s var(--ease);
}

/* Foto en vertical a la izquierda (con la frase encima); a la derecha, título, texto y datos en una sola columna */
.cap-media {
    order: -1;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}

.cap-copy {
    display: block;
    min-width: 0;
}

.cap.activa {
    opacity: 1;
}

.cap-eyebrow {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 18px;
}

.cap-eyebrow i {
    width: 36px;
    height: 1px;
    background: rgba(252, 209, 22, .5);
}

.cap-years {
    color: var(--text-dim);
}

.cap-titulo {
    font-family: "Barlow Condensed", "Bebas Neue", Impact, sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(34px, 3.4vw, 50px);
    line-height: .98;
    letter-spacing: -.005em;
    color: #fff;
    margin: 0 0 16px;
}

.cap-copy p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 10px;
}

/* Tres datos en tres columnas iguales: nunca saltan de línea, las etiquetas largas se parten dentro de su columna */
.cap-datos {
    list-style: none;
    padding: 18px 0 0;
    margin: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.cap-datos li {
    min-width: 0;
    padding: 0 18px;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.cap-datos .lbl {
    font-size: 11px;
    letter-spacing: .1em;
    line-height: 1.35;
}

.cap-datos li:first-child {
    padding-left: 0;
    border-left: 0;
}

.cap-dato {
    display: block;
    font-family: "Barlow Condensed", "Bebas Neue", Impact, sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 1;
    color: var(--yellow);
    margin-bottom: 6px;
}

.cap-datos li:nth-child(3) .cap-dato {
    color: #FF8A95;
}

.cap-media {
    margin: 0;
}

.cap-photo {
    aspect-ratio: 4 / 5;
    max-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card);
    cursor: zoom-in;
}

.cap-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 8s linear;
}

.cap.activa .cap-photo img {
    transform: scale(1.09);
}

.cap-frase {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    margin: 0;
    background: rgba(4, 14, 40, .92);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 18px 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cap-frase-t {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 8px;
}

.cap-frase-txt {
    display: block;
    font-family: "Barlow Condensed", "Bebas Neue", Impact, sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: .01em;
    color: #fff;
}

.cap-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    overflow-x: auto;
    scrollbar-width: none;
}

.cap-tabs::-webkit-scrollbar {
    display: none;
}

.cap-tabs button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--text-dim);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .3s, border-color .3s, background .3s;
}

.cap-tabs button .disp {
    font-size: 18px;
    line-height: 1;
    color: inherit;
}

.cap-tabs button:hover {
    color: #fff;
}

.cap-tabs button.activa {
    color: var(--yellow);
    border-color: rgba(252, 209, 22, .45);
    background: rgba(252, 209, 22, .08);
}

.cap-tabs button:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .cap {
        gap: 28px;
        padding: 16px 0 24px;
    }
}

@media (max-width: 900px) {
    .cap {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 14px 0 20px;
    }

    .cap-media {
        order: -1;
        position: static;
    }

    .cap-photo {
        aspect-ratio: 16 / 10;
        max-height: none;
    }

    .cap-frase {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 12px 14px;
    }

    .cap-frase-txt {
        font-size: 19px;
    }

    .cap-titulo {
        font-size: clamp(30px, 8vw, 42px);
    }

    .cap-datos {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .cap-datos li {
        padding: 0;
        border-left: 0;
    }

    .cap-tab-l {
        display: none;
    }

    .cap-tabs button {
        padding: 8px 10px;
    }

    .cap-head {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cap,
    .cap-photo img {
        transition: none;
        transform: none;
    }
}

/* Menú móvil: el selector de idioma (más abajo en el CSS) ponía .nav en flex y lo dejaba siempre visible */
@media (max-width: 900px) {
    .nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav.abierto {
        display: flex;
    }

    .nav .lang {
        margin: 6px 20px 20px;
    }
}

/* ====== Aviso de cookies (cookieconsent 2.8): colores y formas del nuevo diseño en lugar del tema rojo de la web anterior ====== */
:root {
    --cc-bg: rgba(10, 33, 96, .97);
    --cc-text: var(--text);
    --cc-btn-primary-bg: var(--yellow);
    --cc-btn-primary-text: var(--ground);
    --cc-btn-primary-hover-bg: var(--yellow-hover);
    --cc-btn-secondary-bg: rgba(255, 255, 255, .12);
    --cc-btn-secondary-text: #fff;
    --cc-btn-secondary-hover-bg: rgba(255, 255, 255, .22);
    --cc-toggle-bg-off: #3d4f85;
    --cc-toggle-bg-on: var(--yellow);
    --cc-toggle-bg-readonly: #2a3a6e;
    --cc-toggle-knob-bg: #fff;
    --cc-toggle-knob-icon-color: var(--ground);
    --cc-block-text: var(--text-muted);
    --cc-cookie-category-block-bg: var(--card);
    --cc-cookie-category-block-bg-hover: var(--card-hover);
    --cc-section-border: rgba(255, 255, 255, .12);
    --cc-cookie-table-border: rgba(255, 255, 255, .12);
    --cc-overlay-bg: rgba(4, 14, 40, .78);
    --cc-webkit-scrollbar-bg: #3d4f85;
    --cc-webkit-scrollbar-bg-hover: #566aa6;
}

.cc_div {
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
}

#cm,
#s-inr {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(2, 8, 30, .55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#cm.bar {
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
}

/* Franja tricolor arriba, como en la cabecera */
#cm::before,
#s-inr::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, var(--yellow) 0 50%, var(--blue) 50% 75%, var(--red) 75% 100%);
    z-index: 1;
}

#c-ttl,
#s-ttl,
.cc_div .b-tl {
    font-family: Inter, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
}

#c-ttl {
    font-size: 20px;
    margin-bottom: 8px;
}

#c-txt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.cc_div .c-bn {
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 12px 22px;
}

.cc_div .c-bn:focus-visible,
.cc_div .cc-link:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

.cc_div .cc-link,
.cc_div a {
    color: var(--yellow);
    border-color: var(--yellow);
    background: none;
    border-bottom: 1px solid currentColor;
    font: inherit;
    padding: 0;
    cursor: pointer;
}

.cc_div .cc-link:hover,
.cc_div a:hover {
    color: var(--yellow-hover);
    border-color: var(--yellow-hover);
}

.cc_div .b-bn .b-tl {
    color: var(--text);
}

.cc_div .c-bl {
    border-radius: 14px;
}

.cc_div .c-bl.b-ex {
    border: 1px solid rgba(255, 255, 255, .08);
}

#s-c-bn {
    background: rgba(255, 255, 255, .1);
    border-radius: 999px;
}

#s-c-bn:hover {
    background: rgba(255, 255, 255, .2);
}

.cc_div table {
    color: var(--text-muted);
}

.cc_div .cc-link {
    font-weight: 600;
}

/* Cabecera: menú centrado, idioma a la derecha ------------------------------ */
.nav-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.nav {
    justify-self: center;
    justify-content: center;
    flex: none;
    min-width: 0;
}

.nav-links {
    flex: none;
    justify-content: center;
}

.lang {
    justify-self: end;
}

.nav-toggle {
    margin-left: 0;
}

/* Menú móvil: panel a pantalla completa, con los enlaces entrando en cascada */
@media (max-width: 900px) {
    .nav-bar {
        display: flex;
        gap: 10px;
    }

    .logo {
        margin-right: auto;
    }

    .nav {
        /* Absoluto respecto a la cabecera (el backdrop-filter de la cabecera impide usar position: fixed) */
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: calc(100vh - var(--nav-h));
        height: calc(100dvh - var(--nav-h));
        justify-self: stretch; /* en escritorio va centrado (justify-self: center); aquí tiene que ocupar todo el ancho */
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px 0 40px;
        background:
            radial-gradient(90% 60% at 100% 0%, rgba(252, 209, 22, .14) 0%, rgba(252, 209, 22, 0) 60%),
            linear-gradient(180deg, rgba(7, 26, 72, .97) 0%, rgba(4, 14, 40, .99) 100%);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        border: 0;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
        z-index: 49;
    }

    .nav.abierto {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 0 28px;
        counter-reset: menu;
    }

    .nav-links li {
        counter-increment: menu;
        opacity: 0;
        transform: translateX(-18px);
        transition: opacity .4s var(--ease), transform .5s var(--ease);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .nav.abierto .nav-links li {
        opacity: 1;
        transform: none;
    }

    .nav.abierto .nav-links li:nth-child(1) { transition-delay: .06s; }
    .nav.abierto .nav-links li:nth-child(2) { transition-delay: .1s; }
    .nav.abierto .nav-links li:nth-child(3) { transition-delay: .14s; }
    .nav.abierto .nav-links li:nth-child(4) { transition-delay: .18s; }
    .nav.abierto .nav-links li:nth-child(5) { transition-delay: .22s; }
    .nav.abierto .nav-links li:nth-child(6) { transition-delay: .26s; }
    .nav.abierto .nav-links li:nth-child(7) { transition-delay: .3s; }
    .nav.abierto .nav-links li:nth-child(8) { transition-delay: .34s; }
    .nav.abierto .nav-links li:nth-child(9) { transition-delay: .38s; }
    .nav.abierto .nav-links li:nth-child(10) { transition-delay: .42s; }

    .nav-links a {
        display: flex;
        align-items: baseline;
        gap: 14px;
        padding: 15px 0;
        font-family: "Barlow Condensed", "Bebas Neue", Impact, sans-serif;
        font-size: clamp(26px, 6.5vw, 34px);
        font-weight: 800;
        letter-spacing: .04em;
        color: #fff;
    }

    .nav-links a::before {
        content: counter(menu, decimal-leading-zero);
        font: 700 11px/1 Inter, system-ui, sans-serif;
        letter-spacing: .14em;
        color: var(--yellow);
        min-width: 22px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a.activo {
        color: var(--yellow);
    }

    .lang {
        margin: 0;
        height: 36px;
        padding: 0 8px 0 10px;
    }

    .lang-btn span {
        font-size: 11px;
    }

    body.menu-abierto {
        overflow: hidden;
    }
}

@media (max-width: 420px) {
    /* Solo el código del idioma (ES / EN / IT) para que quepa junto al logo y el botón del menú */
    .lang-nom {
        display: none;
    }
}

/* Portada: foto más alta en pantallas anchas (para que no se corte la cabeza) --- */
.hero-banner .hero-bg {
    height: calc(min(100vh - var(--nav-h) - 40px, max(clamp(380px, 72vh, 860px), 26vw)) + var(--nav-h));
}

/* Barra bajo la portada: flechas centradas en una fila y textos centrados en la siguiente */
.hero-foot {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 0 12px 20px;
    text-align: center;
}

.hero-foot .hero-slider-ui {
    justify-content: center;
    width: 100%;
    margin: 0;
}

.hero-foot-txt {
    justify-content: center;
    align-items: center;
    gap: 8px 0;
    margin: 0;
    max-width: 100%;
}

.hero-foot-txt>* {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.hero-foot-txt>:first-child {
    border-left: 0;
}

.hero-foot .pill-ig,
.hero-foot-txt>.pill-ig {
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, .22);
    border-radius: 0;
    background: none;
}

.hero-foot .hero-dots {
    margin-right: 30px;
}

/* La línea entre el número y la demarcación ya no existe: solo «#70» y el texto */
.hero-kicker {
    gap: 12px;
}

@media (max-width: 900px) {
    .hero-foot {
        gap: 12px;
        padding: 0 0 16px;
    }

    .hero-foot .hero-slider-ui {
        flex-wrap: nowrap;
    }

    .hero-foot .hero-cap {
        display: none; /* el pie de foto no cabe junto a las flechas en móvil; las etiquetas ya dicen el club */
    }

    .hero-foot-txt {
        display: flex;
        gap: 6px 0;
        font-size: 9px;
        letter-spacing: .1em;
    }

    .hero-foot-txt>* {
        padding: 0 9px;
    }

    .hero-foot .hero-dots {
        margin-right: 26px;
        transform: scale(.85);
        transform-origin: left center;
    }
}

@media (max-width: 600px) {
    .hero-foot-txt>* {
        padding: 0 7px;
        gap: 6px;
    }

    .hero-foot .pill-ig svg {
        width: 12px;
        height: 12px;
    }
}

/* Redes sociales: una tarjeta por red con los seguidores; debajo, las últimas publicaciones de Instagram */
.redes-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 8px 0 64px;
}

.red-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 28px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text);
    text-decoration: none;
    transition: transform .4s var(--ease), border-color .3s, background .3s;
}

.red-card:hover {
    transform: translateY(-4px);
    border-color: var(--yellow);
    background: rgba(252, 209, 22, .05);
}

.red-card .soc {
    width: 56px;
    height: 56px;
    flex: none;
}

.red-card:hover .soc {
    transform: none;
    color: var(--yellow);
    border-color: var(--yellow);
    background: rgba(252, 209, 22, .1);
}

.red-txt {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.red-nom {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.red-nom small {
    font-size: 12px;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--text-muted);
    margin-left: 6px;
}

.red-num {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.red-num b {
    font-size: 38px;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    color: var(--yellow);
}

.red-num small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.redes-ig {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.redes-ig .eyebrow {
    margin-bottom: 8px;
}

.redes-ig .h3 {
    font-size: clamp(40px, 5.5vw, 64px);
}

.redes-ig .btn-ig {
    margin-bottom: 4px;
}

@media (max-width: 1100px) {
    .redes-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .red-card {
        padding: 20px;
        gap: 14px;
    }

    /* En tablet el usuario pasa a su propia línea y la cifra nunca se parte */
    .red-nom {
        white-space: normal;
    }

    .red-nom small {
        display: block;
        margin: 2px 0 0;
    }

    .red-num {
        flex-wrap: wrap;
        gap: 2px 8px;
    }

    .red-num b {
        font-size: 30px;
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    .redes-cards {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 48px;
    }

    .red-card {
        padding: 16px 18px;
    }

    .red-card .soc {
        width: 48px;
        height: 48px;
    }
}
/* Botón «subir»: esquina inferior derecha, aparece al bajar más de una pantalla. El crédito del pie va alineado en una línea */
.subir {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: var(--ground);
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.9);
    transition: opacity .35s var(--ease), transform .45s var(--bounce), visibility 0s .35s, background .3s;
}

.subir.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.subir:hover {
    background: var(--yellow-hover);
}

.subir:hover svg {
    transform: translateY(-2px);
}

.subir:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.subir svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s var(--ease);
}

/* Mientras está abierto el aviso de cookies (barra inferior) el botón se oculta para no taparlo */
html.show--consent .subir {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 760px) {
    .subir {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}

.credito-cesko {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.credito-cesko a {
    line-height: 1;
}

/* Tarjeta de portada: goles de cada club en la línea de clubes */
.hero-card-pie b {
    color: var(--yellow);
    font-weight: 800;
}

/* Estadísticas: la fila de la Selección se despliega con las Copas América y la lista de goles */
.bar-li {
    display: block;
    padding: 0;
}

.sel-det summary {
    list-style: none;
    cursor: pointer;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 12px;
    transition: background .25s;
}

.sel-det summary::-webkit-details-marker {
    display: none;
}

.sel-det summary:hover,
.sel-det[open] summary {
    background: rgba(7, 26, 72, .07);
}

.sel-det summary:focus-visible {
    outline: 3px solid var(--ground);
    outline-offset: 2px;
}

.sel-hint {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--ground);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(7, 26, 72, .4);
    letter-spacing: .06em;
}

.sel-hint svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s var(--ease);
}

.sel-det[open] .sel-hint svg {
    transform: rotate(180deg);
}

.sel-panel {
    display: grid;
    gap: 30px;
    padding: 20px 0 16px;
    animation: fadeUp .5s var(--ease);
}

.tabla-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -8px;
    padding: 0 8px;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.35;
    color: var(--ground);
}

.tabla caption {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 0 0 10px;
}

.tabla th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 12px;
    border-bottom: 2px solid rgba(7, 26, 72, .3);
    white-space: nowrap;
}

.tabla td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(7, 26, 72, .15);
    vertical-align: top;
}

.tabla .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tabla tfoot td {
    font-weight: 800;
    border-bottom: 0;
    border-top: 2px solid rgba(7, 26, 72, .3);
}

.tabla-copas td:first-child {
    white-space: nowrap;
}

@media (max-width: 760px) {
    /* En móvil la tabla se desliza en horizontal con las fechas y rivales en una sola línea */
    .tabla {
        font-size: 13px;
        min-width: 720px;
    }

    .tabla-goles td:nth-child(2),
    .tabla-goles td:nth-child(3),
    .tabla-goles td:nth-child(4),
    .tabla-copas td:nth-child(2) {
        white-space: nowrap;
    }

    .tabla th,
    .tabla td {
        padding: 9px 10px;
    }
}