/* =========================================================
   CBC MOGUER — Colores oficiales sacados del escudo
   Amarillo: #FCE312   Azul marino: #00315F
   ========================================================= */
:root {
  --yellow: #FCE312;
  --yellow-dark: #E8CF00;
  --blue: #00315F;
  --blue-deep: #001E3C;
  --blue-light: #0A4A85;
  --ink: #0B1626;
  --gray: #5B6675;
  --light: #F4F6F9;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(0, 30, 60, .35);
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--ink); line-height: 1.65; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1240px, 92%); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .85rem 1.8rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--blue); }
.btn--yellow:hover { background: var(--white); box-shadow: 0 10px 25px -10px rgba(252, 227, 18, .8); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-light); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--blue); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--lg { padding: 1.1rem 2.4rem; font-size: 1.15rem; }
.btn--block { width: 100%; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; font-size: .9rem; color: var(--blue-light); margin-bottom: .8rem;
  padding-left: 2.6rem; position: relative;
}
.eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; width: 2rem; height: 3px; background: var(--yellow); }
.eyebrow--yellow { color: var(--yellow); }
.title {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: 1;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); color: var(--blue); margin-bottom: 1.4rem;
}
.title--light { color: var(--white); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--blue-deep); color: rgba(255,255,255,.85); font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar__text { font-weight: 500; letter-spacing: .03em; }
.social { display: flex; gap: .9rem; align-items: center; }
.social svg { width: 16px; height: 16px; fill: currentColor; transition: fill .2s; }
.social--small a:hover svg { fill: var(--yellow); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 4px solid var(--yellow); transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(0,0,0,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { height: 58px; width: auto; transition: transform .3s; }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .02em; }
.brand__name small { font-size: .7rem; color: var(--gray); text-transform: uppercase; letter-spacing: .08em; }
.header__inner { gap: 2rem; }
.nav { display: flex; align-items: center; gap: 2.2rem; margin-left: auto; }
.header__cta { padding: .6rem 1.4rem; font-size: .95rem; }
.nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); position: relative; padding: .3rem 0;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 36px; height: 28px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 3px; background: var(--blue); border-radius: 3px; transition: .3s; }
.burger span:nth-child(1) { top: 2px; } .burger span:nth-child(2) { top: 12px; } .burger span:nth-child(3) { top: 22px; }
.burger.is-open span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(calc(100vh - 116px), 860px); min-height: min(calc(100svh - 116px), 860px); display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.08); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,30,60,.96) 0%, rgba(0,49,95,.82) 40%, rgba(0,49,95,.25) 100%); }
.hero__content { position: relative; z-index: 2; padding: 5rem 0; max-width: 1240px; }
.hero__title {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: .9;
  font-size: clamp(3.4rem, 9vw, 7.5rem); margin-bottom: 1.5rem; letter-spacing: -.01em;
}
.hero__title span { color: var(--yellow); }
.hero__text { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 520px; color: rgba(255,255,255,.88); margin-bottom: 2.2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__content > * { opacity: 0; transform: translateY(30px); animation: fadeUp .9s forwards; }
.hero__content > *:nth-child(2) { animation-delay: .15s; }
.hero__content > *:nth-child(3) { animation-delay: .3s; }
.hero__content > *:nth-child(4) { animation-delay: .45s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.7); border-radius: 20px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--yellow); border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Cifras ---------- */
.stats { background: var(--yellow); position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 2.8rem 1.5rem; text-align: center; color: var(--blue); }
.stat + .stat { border-left: 2px solid rgba(0,49,95,.15); }
.stat__num, .stat__plus { font-family: var(--font-head); font-weight: 800; font-size: clamp(3.2rem, 6vw, 4.8rem); line-height: 1; }
.stat p { font-weight: 600; font-size: .95rem; margin-top: .4rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--blue { background: var(--blue); background-image: radial-gradient(circle at 85% 10%, rgba(252,227,18,.12), transparent 40%), radial-gradient(circle at 0% 100%, rgba(10,74,133,.8), transparent 50%); }
.section--light { background: var(--light); }
.section__head { margin-bottom: 3rem; }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.section__lead { max-width: 420px; color: var(--gray); }

/* ---------- Club (split) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__media > img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.split__media::before { content: ''; position: absolute; inset: -18px auto auto -18px; width: 45%; height: 55%; background: var(--yellow); border-radius: var(--radius); z-index: -1; }
.split__badge {
  position: absolute; right: -1.2rem; bottom: -1.6rem; background: var(--blue); color: var(--white);
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.split__badge img { height: 54px; }
.split__badge span { font-size: .85rem; line-height: 1.2; }
.split__badge strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--yellow); }
.split__text p { color: var(--gray); margin-bottom: 1rem; font-size: 1.05rem; }
.split__text strong { color: var(--blue); }
.checklist { list-style: none; margin: 1.6rem 0 2rem; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: .7rem; font-weight: 500; }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: .1rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--yellow); color: var(--blue); font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}

/* ---------- Tarjetas pilares ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -20px rgba(0,0,0,.6); }
.card__img { aspect-ratio: 4/3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.08); }
.card__body { padding: 1.5rem 1.4rem 1.8rem; border-top: 5px solid var(--yellow); flex: 1; }
.card__tag { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; color: var(--blue-light); }
.card h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--blue); line-height: 1.05; margin: .3rem 0 .7rem; }
.card p { color: var(--gray); font-size: .95rem; }

/* ---------- Banner socio ---------- */
.banner { background: var(--yellow); background-image: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(0,49,95,.05) 22px 44px); }
.banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.5rem 0; flex-wrap: wrap; }
.banner__season { font-family: var(--font-head); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-light); }
.banner h2 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--blue); line-height: 1; margin: .3rem 0 .6rem; }
.banner p { color: var(--blue); max-width: 560px; font-weight: 500; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: .8rem; grid-auto-flow: dense; }
.gallery__item { position: relative; overflow: hidden; border-radius: 10px; cursor: zoom-in; background: var(--light); }
.gallery__item:nth-child(6n+1) { grid-row: span 2; }
.gallery__item:nth-child(6n+4) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,49,95,.7), transparent 50%); opacity: 0; transition: opacity .3s; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item.is-hidden { display: none; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info > p { color: var(--gray); font-size: 1.05rem; margin-bottom: 2rem; }
.contact__list { list-style: none; display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); }
.contact__list a, .contact__list span { font-weight: 600; color: var(--blue); word-break: break-word; }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--blue); display: grid; place-items: center; }
.contact__icon svg { width: 22px; fill: var(--yellow); }
.social--dark a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white);
  font-family: var(--font-head); font-weight: 700; color: var(--blue); box-shadow: 0 4px 14px -6px rgba(0,0,0,.2); transition: .2s;
}
.social--dark a:hover { background: var(--yellow); transform: translateY(-3px); }
.form { background: var(--white); padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 6px solid var(--yellow); display: grid; gap: 1.1rem; }
.form h3 { font-family: var(--font-head); font-size: 1.8rem; text-transform: uppercase; color: var(--blue); }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--blue); }
.form input, .form textarea, .form select {
  font: inherit; font-weight: 400; color: var(--ink); padding: .8rem 1rem; border: 1.5px solid #D6DCE4; border-radius: 10px; background: var(--light); transition: border .2s, background .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); background: var(--white); }
.form .is-invalid { border-color: #D93838; }
.form__check { display: flex !important; align-items: flex-start; gap: .6rem; font-weight: 400 !important; color: var(--gray) !important; }
.form__check input { margin-top: .25rem; accent-color: var(--blue); }
.form__msg { font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form__msg.ok { color: #1E8E3E; } .form__msg.err { color: #D93838; }

/* ---------- Footer ---------- */
/* Pie al estilo de los grandes clubes: enlaces · mecenas · patrocinadores · barra final */
.footer { background: var(--white); color: var(--blue); border-top: 1px solid #E6EAF0; }
.footer__stripe { height: 6px; background: linear-gradient(90deg, var(--yellow) 0 50%, var(--blue) 50%); }
.footer__links { display: flex; justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); padding: 3.5rem 0 3rem; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: .55rem; font-size: .88rem; min-width: 130px; }
.footer__col h4 { font-family: var(--font-head); color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; margin-bottom: .3rem; padding-bottom: .4rem; border-bottom: 3px solid var(--yellow); align-self: flex-start; }
.footer__col a { color: var(--blue-light); transition: color .2s; }
.footer__col a:hover { color: var(--blue); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer__sponsors { padding: 3rem 0 2.5rem; text-align: center; }
.footer__label { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; color: var(--gray); margin-bottom: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.footer__label::before, .footer__label::after { content: ''; flex: 1; height: 1px; background: #E6EAF0; }
.sponsors { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-inline: auto; }
.sponsor { display: flex; align-items: center; justify-content: center; transition: transform .25s, filter .25s; }
.sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sponsor:hover { transform: scale(1.08); }
/* Mecenas: grandes */
.sponsors--main { gap: 2.2rem 2.5rem; max-width: 1200px; margin-bottom: 3.2rem; }
.sponsors--main .sponsor { width: 160px; height: 92px; }
/* Patrocinadores: más pequeños */
.sponsors--small { gap: 1.3rem 2rem; max-width: 1000px; margin-bottom: 2.4rem; }
.sponsors--small .sponsor { width: 92px; height: 50px; }
.footer__thanks { font-size: .9rem; color: var(--gray); }
.footer__thanks a { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer__bar { background: var(--blue-deep); color: rgba(255,255,255,.7); }
.footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.footer__crest { display: flex; align-items: center; gap: .8rem; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; line-height: 1.1; color: var(--white); letter-spacing: .04em; }
.footer__crest img { height: 52px; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: .6rem 1rem; padding: 1.1rem 0 1.3rem; flex-wrap: wrap; font-size: .78rem; }
.footer__bottom-inner a:hover { color: var(--yellow); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,15,30,.95); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; transition: color .2s; }
.lightbox button:hover { color: var(--yellow); }
.lightbox__close { top: 1rem; right: 1.5rem; font-size: 3rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 4rem; padding: 1rem; }
.lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; }

/* ---------- Menú móvil a pantalla completa ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 400; background: var(--blue-deep);
  background-image: radial-gradient(circle at 100% 0%, rgba(252,227,18,.18), transparent 45%), radial-gradient(circle at 0% 100%, rgba(10,74,133,.9), transparent 55%);
  display: flex; flex-direction: column; padding: 1rem 6% 2rem; color: var(--white);
  opacity: 0; visibility: hidden; transform: translateY(-20px); transition: opacity .35s, transform .35s, visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand--light strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; }
.brand--light img { height: 46px; }
.mobile-menu__close { background: none; border: 0; color: var(--white); font-size: 2.8rem; line-height: 1; cursor: pointer; width: 44px; height: 44px; }
.mobile-menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .3rem; }
.mobile-menu__nav a {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.1;
  display: flex; align-items: baseline; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateX(-30px); transition: color .2s, opacity .4s, transform .4s; transition-delay: calc(var(--i) * 60ms + 100ms);
}
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu__nav a span { font-size: 1rem; color: var(--yellow); font-weight: 600; letter-spacing: .1em; }
.mobile-menu__nav a:hover, .mobile-menu__nav a.is-active { color: var(--yellow); }
.mobile-menu__bottom { display: grid; gap: 1.5rem; justify-items: center; }
.social--menu { gap: 1.4rem; }
.social--menu svg { width: 22px; height: 22px; }
.social--menu a:hover svg { fill: var(--yellow); }

/* ---------- Accesos del inicio (tiles) ---------- */
.tiles { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 270px 270px; gap: 1.2rem; }
.tile--big { grid-row: span 2; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); color: var(--white); isolation: isolate; box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,30,60,.95) 0%, rgba(0,49,95,.35) 55%, transparent 100%); transition: background .4s; }
.tile:hover img { transform: scale(1.07); }
.tile:hover::before { background: linear-gradient(to top, rgba(0,30,60,.98) 0%, rgba(0,49,95,.55) 70%, rgba(0,49,95,.15) 100%); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.8rem; }
.tile__tag { display: inline-block; background: var(--yellow); color: var(--blue); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; padding: .2rem .7rem; border-radius: 4px; }
.tile h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; margin: .6rem 0 .4rem; }
.tile--big h3 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.tile p { color: rgba(255,255,255,.85); max-width: 380px; margin-bottom: .6rem; }
.tile__more { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); }
.tile__more i { font-style: normal; display: inline-block; transition: transform .3s; }
.tile:hover .tile__more i { transform: translateX(6px); }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; background: var(--blue); color: var(--white); overflow: hidden; padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; opacity: .28; filter: grayscale(.3); }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,30,60,.95) 25%, rgba(0,49,95,.4)); }
.page-hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--yellow); z-index: 2; }
.page-hero__content { position: relative; z-index: 2; }
.page-hero h1 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 8vw, 6rem); line-height: .95; margin: .5rem 0 1rem; }
.page-hero p { max-width: 560px; color: rgba(255,255,255,.85); font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { color: var(--yellow); }

/* ---------- Varios ---------- */
.split--reverse .split__media { order: 2; }
.split--reverse .split__media::before { inset: auto -18px -18px auto; }
.gallery__item { border: 0; padding: 0; font: inherit; display: block; }
.contact__follow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: .8rem; }
.social--dark { gap: .7rem; }
.social--dark svg { width: 18px; height: 18px; fill: var(--blue); }
.social--dark a:hover svg { fill: var(--blue); }
.social--footer { gap: 1rem; }
.social--footer svg { width: 22px; height: 22px; }
.social--footer a:hover svg { fill: var(--yellow); }

/* ---------- Mapa (contacto) ---------- */
.map-section { position: relative; min-height: 560px; display: flex; align-items: center; background: var(--blue); border-top: 6px solid var(--yellow); }
.map-section__map { position: absolute; inset: 0; }
.map-section__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }
.map-section__inner { position: relative; z-index: 2; pointer-events: none; padding: 3rem 0; display: flex; justify-content: flex-end; }
.map-card {
  pointer-events: auto; width: min(380px, 100%); background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: 0 30px 60px -20px rgba(0,30,60,.55); border-top: 6px solid var(--yellow);
}
.map-card h2 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 2.6rem; line-height: 1; color: var(--blue); margin-bottom: .8rem; }
.map-card p { color: var(--gray); margin-bottom: 1.4rem; }
.map-card__list { list-style: none; margin-bottom: 1.6rem; }
.map-card__list li { display: flex; gap: 1rem; align-items: center; }
.map-card__list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); }
.map-card__list span:not(.contact__icon) { font-weight: 600; color: var(--blue); }
.map-card .btn i { font-style: normal; transition: transform .3s; }
.map-card .btn:hover i { transform: translateX(5px); }
@media (max-width: 900px) {
  .map-section { flex-direction: column; align-items: stretch; min-height: 0; background: var(--light); }
  .map-section__map { position: relative; height: 340px; }
  .map-section__inner { padding: 0; margin-top: -3rem; margin-bottom: 2.5rem; }
  .map-card { width: 100%; }
}

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav, .header__cta { display: none; }
  .header__inner { height: 68px; }
  .split, .contact { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 240px; }
  .tile--big { grid-column: span 2; grid-row: span 1; }
  .split__badge { right: 1rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item:nth-child(6n+4) { grid-column: span 1; }
}
@media (max-width: 600px) {
  .topbar__text { display: none; }
  .topbar__inner { justify-content: center; }
  .brand__name small { display: none; }
  .brand img { height: 48px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 2px solid rgba(0,49,95,.15); }
  .stat { padding: 1.8rem 1rem; }
  .cards { grid-template-columns: 1fr; }
  .footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; padding: 2.5rem 0; }
  .sponsors--main { gap: 1.2rem 1rem; }
  .sponsors--main .sponsor { width: 100px; height: 62px; }
  .footer__col a { overflow-wrap: anywhere; }
  .sponsors--small { gap: 1rem 1.2rem; }
  .sponsors--small .sponsor { width: 72px; height: 42px; }
  .footer__bar-inner, .footer__bottom-inner { justify-content: center; text-align: center; }
  .hero__actions .btn { flex: 1; }
  .tiles { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 260px; }
  .tile--big { grid-column: auto; }
  .tile__body { padding: 1.3rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__content > * { opacity: 1; transform: none; }
}

/* ---------- Mascota en el banner ---------- */
.banner__mascot { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; border: 6px solid var(--white); box-shadow: var(--shadow); flex: none; background: var(--white); transform: rotate(-6deg); transition: transform .4s; }
.banner__inner:hover .banner__mascot { transform: rotate(0) scale(1.05); }
.banner__copy { flex: 1; min-width: 260px; }
@media (max-width: 600px) { .banner__mascot { width: 140px; height: 140px; margin-inline: auto; } }

/* ---------- Panel de gestión: utilidades ---------- */
[hidden] { display: none !important; }
.gallery__empty { grid-column: 1 / -1; text-align: center; color: var(--gray); padding: 3rem 0; }

/* ---------- Pie: colaboradores (tercer nivel, los más pequeños) ---------- */
.footer__sep { border: 0; height: 1px; background: #E6EAF0; max-width: 900px; margin: 0 auto 2.4rem; }
.sponsors--tiny { gap: 1rem 1.6rem; max-width: 1180px; margin-bottom: 2.4rem; }
.sponsors--tiny .sponsor { width: 74px; height: 40px; }
@media (max-width: 600px) {
  .sponsors--tiny { gap: .8rem 1rem; }
  .sponsors--tiny .sponsor { width: 58px; height: 32px; }
}
