:root {
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --blue: #014AC5;
  --blue-deep: #013289;
  --blue-ink: #00256b;
  --pink: #F40FCA;
  --pink-2: #c20ba2;
  --star: #FFD400;
  --ink: #0b1230;
  --paper: #ffffff;
  --paper-2: #f4f6fc;
  --muted: #5b6473;
  --line: rgba(1, 74, 197, 0.14);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 74, 197, 0.12);
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--blue-deep);
}
.brand:hover { color: var(--blue-deep); }
.brand-mark {
  display: block;
  height: 52px;
  width: 52px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(1, 50, 137, 0.22));
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  color: var(--blue-deep);
  line-height: 1.15;
}
.brand-text em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink);
  margin-top: .2rem;
  font-weight: 700;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0; padding: 0;
}
.primary-nav a {
  font-weight: 600;
  font-size: .95rem;
  padding: .35rem 0;
  color: var(--blue-deep);
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.primary-nav a:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.has-dropdown { position: relative; }
.primary-nav .dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 801px) {
  .has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: .4rem 0;
    z-index: 60;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: flex;
  }
  .has-dropdown .dropdown a {
    padding: .55rem 1rem;
    border-bottom: 0;
    white-space: nowrap;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-deep);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.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); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .primary-nav.open { max-height: 480px; overflow-y: auto; }
  .primary-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
  }
  .primary-nav a {
    display: block;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
  }
  .has-dropdown .dropdown {
    padding-left: 1rem;
  }
  .has-dropdown .dropdown a {
    font-size: .88rem;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 7rem 0 6rem;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    url("../img/hero-team.jpg"),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  background-size: cover, auto;
  background-position: center 40%, center;
  background-repeat: no-repeat;
  transform-origin: center;
  animation: hero-kenburns 22s ease-in-out alternate infinite;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 18, 60, .55) 0%, rgba(0, 18, 60, .35) 35%, rgba(0, 18, 60, .78) 100%),
    radial-gradient(900px 480px at 100% 100%, rgba(244, 15, 202, .28), transparent 60%);
}
@keyframes hero-kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.06) translate(-1%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

.hero-inner { max-width: 760px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--star);
  margin: 0 0 .6rem;
  font-weight: 800;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.34rem, 6.24vw, 4.68rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
  text-shadow: 0 2px 18px rgba(0, 18, 60, .45);
}
.hero h1 .accent {
  background: linear-gradient(90deg, #ffffff 0%, var(--star) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 1.15rem;
  max-width: 56ch;
  color: rgba(255,255,255,.92);
  margin: 0 0 2rem;
  text-shadow: 0 1px 8px rgba(0, 18, 60, .5);
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--pink);
  color: #fff;
}
.btn-primary:hover { background: var(--pink-2); color: #fff; }
.btn-ghost {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--star); color: var(--star); }

/* Sections */
.section { padding: 5rem 0; scroll-margin-top: 70px; }
.anchor-alias {
  display: block;
  position: relative;
  top: -70px;
  height: 0;
}
.section-alt { background: var(--paper-2); }
.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.56rem, 3.43vw, 2.34rem);
  letter-spacing: -.01em;
  margin: 0 0 1rem;
  color: var(--blue-deep);
  line-height: 1.15;
}
.section .eyebrow { color: var(--pink); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

.bullets {
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin: .35rem 0;
}
.bullets li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pink);
  font-size: .9rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat {
  display: flex;
  flex-direction: column;
  padding: .75rem;
  border-radius: 10px;
  background: var(--paper-2);
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.87rem;
  color: var(--blue);
  line-height: 1;
}
.stat { min-width: 0; }
.stat .label {
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-top: .25rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--pink) 100%);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(1,74,197,.18); border-color: rgba(244,15,202,.25); }
.card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  margin: 0 0 .35rem;
  color: var(--blue-deep);
  line-height: 1.15;
}
.card p { margin: 0 0 1rem; color: #2c3645; }
.card-link { font-weight: 700; color: var(--pink); }
.card-link:hover { color: var(--pink-2); }

/* Matches */
.matches {
  margin-top: 1.5rem;
  display: grid;
  gap: .75rem;
}
.match {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.match-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  padding: .5rem .75rem;
  min-width: 64px;
}
.match-date .day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.33rem;
  line-height: 1;
}
.match-date .month {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--star);
}
.match-info p { margin: .1rem 0; }
.match-comp { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.match-teams { font-size: 1.05rem; }
.match-meta { color: var(--muted); font-size: .9rem; }
.badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .6rem;
  border-radius: 999px;
}
.badge-home { background: var(--pink); color: #fff; }
.badge-away { background: rgba(1,74,197,.1); color: var(--blue-deep); }

@media (max-width: 600px) {
  .match { grid-template-columns: auto minmax(0, 1fr); }
  .match .badge { grid-column: 2; justify-self: start; }
}

/* Quote */
.quote {
  background: var(--blue-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -.4rem;
  left: .8rem;
  font-size: 7rem;
  color: var(--pink);
  line-height: 1;
  opacity: .55;
  font-family: Georgia, serif;
}
.quote blockquote {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-style: italic;
  position: relative;
}
.quote cite {
  font-style: normal;
  color: var(--star);
  font-size: .9rem;
  letter-spacing: .04em;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .5rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--line);
}
.contact-list li > a,
.contact-list .contact-email {
  overflow-wrap: anywhere;
}
.contact-list span {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--muted);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(244, 15, 202, .22);
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-status {
  margin: 0;
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.form-status--ok { background: rgba(37, 211, 102, .12); color: #0f6b35; }
.form-status--error { background: rgba(244, 15, 202, .1); color: #8a0a73; }
.contact-form button[disabled] { opacity: .7; cursor: progress; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 2px solid transparent;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  color: #fff;
}

/* Floating WhatsApp pill */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .25s ease, box-shadow .15s ease, background .15s ease, opacity .25s ease;
}
.wa-float--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(.85);
}
.wa-float:hover,
.wa-float:focus-visible {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, .55);
  outline: none;
}
.wa-float svg { flex: none; }
@media (max-width: 600px) {
  .wa-float {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    padding: .75rem;
    border-radius: 999px;
    aspect-ratio: 1 / 1;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
  .wa-float-label { display: none; }
}

/* Section heading block (used by Eventos & Patrocinadores) */
.section-head { max-width: 65ch; margin-bottom: 2rem; }
.section-lead { font-size: 1.05rem; margin-top: .25rem; }

/* Events */
.event {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}
.event::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--pink) 100%);
  z-index: 1;
}
.event-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-image:
    url("../img/event-1.jpg"),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 60%, var(--pink) 130%);
  background-size: cover, auto;
  background-position: center, center;
  background-repeat: no-repeat;
}
.event-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--pink);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem .65rem;
  border-radius: 999px;
  z-index: 2;
}
.event-tag-past {
  background: var(--blue);
}
.event-media-photo {
  background: var(--paper-2);
  overflow: hidden;
}
.event-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Event gallery */
.event-gallery {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.event-gallery-head { margin-bottom: 1rem; }
.event-gallery-head h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.17rem;
  letter-spacing: -.01em;
  color: var(--blue-deep);
  margin: 0 0 .15rem;
  line-height: 1.15;
}

/* Crónicas (event past editions) — mobile first */
.cronicas {
  display: grid;
  gap: 1.5rem;
}
.cronica {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
  display: grid;
  gap: 1.1rem;
  position: relative;
}
.cronica::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--pink) 100%);
}
.cronica-head {
  display: grid;
  gap: .4rem;
}
.cronica-head .event-tag {
  position: static;
  width: fit-content;
}
.cronica-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.48rem, 4.68vw, 2.03rem);
  letter-spacing: -.01em;
  color: var(--blue-deep);
  margin: 0;
  line-height: 1;
}
.cronica-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
}
.cronica-hero {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
}
.cronica-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.cronica-hero:hover img { transform: scale(1.02); }
.cronica-desc {
  margin: 0;
  color: #2c3645;
  line-height: 1.55;
}
.cronica-photos { display: grid; gap: 1rem; }
.cronica-toggle { justify-self: start; }
.cronica-photos .gallery-grid[data-collapsed="true"] a:nth-child(n+7) {
  display: none;
}

@media (min-width: 700px) {
  .cronica { padding: 2rem; gap: 1.5rem; }
  .cronica-hero { aspect-ratio: 16 / 9; }
  .cronica-photos .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cronica-photos .gallery-grid[data-collapsed="true"] a:nth-child(n+7) { display: none; }
}

@media (min-width: 1000px) {
  .cronicas { gap: 2rem; }
  .cronica { padding: 2.25rem 2.5rem; }
  .cronica-photos .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .cronica-photos .gallery-grid[data-collapsed="true"] a:nth-child(-n+8) { display: block; }
  .cronica-photos .gallery-grid[data-collapsed="true"] a:nth-child(n+9) { display: none; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-2);
  position: relative;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease, filter .2s ease;
}
.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.05);
}
.gallery-grid a::after {
  content: "↗";
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(1, 50, 137, .85);
  color: #fff;
  border-radius: 999px;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .15s ease;
}
.gallery-grid a:hover::after,
.gallery-grid a:focus-visible::after {
  opacity: 1;
}

/* Lightbox (visor de fotos de galería) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 20, 0.92);
  animation: lightbox-fade .18s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-stage {
  position: relative;
  width: min(92vw, 1100px);
  max-height: 90vh;
  display: grid;
  justify-items: center;
  gap: .75rem;
}
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: #0b1230;
}
.lightbox-counter {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background .15s ease, transform .15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--pink);
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid var(--star);
  outline-offset: 2px;
}
.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.6rem;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 2rem;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-nav[hidden] { display: none; }

@media (min-width: 700px) {
  .lightbox-close { top: 1.5rem; right: 1.5rem; }
  .lightbox-prev { left: 1.5rem; }
  .lightbox-next { right: 1.5rem; }
}

.event-body {
  padding: 1.75rem;
  display: grid;
  align-content: start;
}
.event-when {
  margin: 0 0 .4rem;
  font-weight: 600;
  font-size: .9rem;
}
.event-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.34vw, 1.72rem);
  letter-spacing: -.01em;
  margin: 0 0 .35rem;
  color: var(--blue-deep);
  line-height: 1.15;
}
.event-location { margin: 0 0 .9rem; color: var(--muted); font-weight: 500; }
.event-desc { margin: 0 0 1.25rem; color: #2c3645; }
.event-cta { display: flex; gap: .6rem; flex-wrap: wrap; }

@media (min-width: 800px) {
  .event-featured { grid-template-columns: 5fr 7fr; }
  .event-featured .event-media { aspect-ratio: auto; min-height: 100%; }
  .event-body { padding: 2.25rem 2.5rem; }
}

.btn-ghost-blue {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: transparent;
}
.btn-ghost-blue:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* Categorías inferiores subsections */
.subsection { scroll-margin-top: 90px; }
.subsection + .subsection { margin-top: 3rem; }
.section-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Mantiene visible la firma del fotógrafo (abajo a la derecha) al recortar a 4:3 */
.section-photo-right { object-position: right center; }
.media-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.cronica-upcoming { margin-bottom: 1.5rem; }

/* Sponsors */
.sponsors-intro {
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 70ch;
  color: #2c3645;
  margin: 0 0 2.25rem;
}
.sponsors-intro strong { color: var(--blue-deep); }

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 600px) { .sponsor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .sponsor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sponsor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--blue-deep);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sponsor:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 15, 202, .35);
  box-shadow: 0 12px 28px rgba(1, 74, 197, .14);
}
/* Cada logo lleva su --w (en index.html), calculado para que todos
   ocupen más o menos la misma superficie sea cual sea su proporción. */
.sponsor img {
  width: var(--w, 70%);
  height: auto;
}
.sponsor-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.09rem;
  letter-spacing: -.01em;
  color: var(--muted);
  margin: 0;
  line-height: 1.15;
}

.sponsor-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  border: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.sponsor-cta:hover { color: var(--star); border-color: transparent; }
.sponsor-cta .sponsor-cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.17rem;
  letter-spacing: -.01em;
  margin: 0 0 .25rem;
  color: inherit;
  line-height: 1.15;
}
.sponsor-cta .sponsor-cta-text {
  font-size: .85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .85);
  margin: 0;
}
.sponsor-cta:hover .sponsor-cta-text { color: rgba(255, 255, 255, .95); }
@media (max-width: 599px) {
  /* Que la tarjeta de patrocinio no quede más alta que las de los logos */
  .sponsor-cta { padding: .75rem; }
  .sponsor-cta .sponsor-cta-title { font-size: .95rem; }
  .sponsor-cta .sponsor-cta-text { font-size: .75rem; }
}

/* Map */
.map-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.map-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.map-head .eyebrow { margin-bottom: .35rem; }
.map-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.17rem, 2.65vw, 1.56rem);
  letter-spacing: -.01em;
  color: var(--blue-deep);
  margin: 0;
  line-height: 1.15;
}
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper-2);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (min-width: 700px) {
  .map-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .map-embed { aspect-ratio: 16 / 9; }
}

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.88);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  border-top: 4px solid var(--pink);
}
.site-footer a { color: rgba(255,255,255,.88); }
.site-footer a:hover { color: var(--star); }
.footer-map {
  margin: .9rem 0 0;
  display: grid;
  gap: .5rem;
}
.footer-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  filter: saturate(.9);
}
.footer-map-link {
  justify-self: start;
  font-weight: 600;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .9rem 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  transition: background .15s ease, color .15s ease;
  flex-shrink: 0;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--pink);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}
.footer-brand-mark {
  height: 40px;
  width: 40px;
}
.small-brand strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1.15;
}
.small-brand em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--star);
  margin-left: .4rem;
}
.copyright { align-self: end; text-align: right; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { text-align: left; }
}

.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Aviso de cookies */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 44rem;
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(1, 25, 70, .28);
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: .9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { margin: 0; font-size: .95rem; line-height: 1.5; }
.cookie-banner-text a { color: var(--blue); font-weight: 600; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.cookie-banner-actions .btn { padding: .6rem 1.2rem; }
@media (min-width: 720px) {
  .cookie-banner { grid-template-columns: 1fr auto; align-items: center; }
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.site-footer .link-button:hover { color: var(--star); }
.site-footer .copyright a { text-decoration: underline; }
