@font-face {
  font-family: "League Spartan";
  src: url(league-spartan-latin-wght-normal.woff2) format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url(figtree-latin-wght-normal.woff2) format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url(caveat-latin-700-normal.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* =========================================
   VARIABLES Y CONFIGURACIÓN GENERAL
========================================= */

:root {
  --rojo: #DB1821;
  --rojo-oscuro: #B10F17;
  --azul: #05185C;
  --azul-2: #1B2F78;

  --papel: #F2F4FA;
  --linea: #D9DEEC;
  --texto: #1C2547;
  --suave: #4C5573;
  --blanco: #fff;

  --amarillo: #FFC400;
  --rosa: #FF4F8B;
  --turquesa: #00B3A6;
  --celeste: #4DB8FF;
  --verde: #3FBF5F;
  --naranja: #FF8B2B;

  --color: var(--rojo);
  --ancho: 1180px;
  --margen: clamp(16px, 4vw, 40px);

  --titulos: "League Spartan", "Arial Black", system-ui, sans-serif;
  --cuerpo: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mano: "Caveat", "Comic Sans MS", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blanco);
  color: var(--texto);
  font: 400 1.0625rem/1.6 var(--cuerpo);
  overflow-x: hidden;
}

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

a {
  color: var(--azul);
  text-underline-offset: .16em;
}

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

:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 4px;
}

.sobre-color :focus-visible,
.pie :focus-visible {
  outline-color: #fff;
}

h1,
h2,
h3 {
  font-family: var(--titulos);
  color: var(--azul);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.envoltura {
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--margen);
}

.saltar {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 14px;
  z-index: 100;
}

.saltar:focus {
  left: 12px;
}

/* =========================================
   CABECERA MODERNA
========================================= */

.tira {
  display: none;
}

.cabecera {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.98);
  border-bottom: 4px solid var(--rojo);
  box-shadow: 0 5px 18px rgba(5,24,92,.09);
  backdrop-filter: blur(12px);
}

.cabecera .envoltura {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 86px;
  padding-block: 12px;
}

.marca {
  flex: none;
  display: block;
}

.marca img {
  height: 46px;
  width: auto;
  transition: transform .25s ease;
}

.marca:hover img {
  transform: scale(1.04);
}

/* =========================================
   MENÚ TIPO PESTAÑAS DE COLORES
========================================= */

.nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.nav > a,
.nav > button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  padding: 13px 15px;
  border: 0;
  border-radius: 11px 11px 4px 4px;
  background: #F2F4FA;
  color: var(--azul);
  font: 800 .98rem/1 var(--cuerpo);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.nav > button {
  background: #FFF0F1;
  border-bottom: 4px solid var(--rojo);
}

.nav > a:nth-of-type(1) {
  background: #FFF4D5;
  border-bottom: 4px solid var(--amarillo);
}

.nav > a:nth-of-type(2) {
  background: #E0F7F4;
  border-bottom: 4px solid var(--turquesa);
}

.nav > a:nth-of-type(3) {
  background: #E5EDFF;
  border-bottom: 4px solid var(--celeste);
}

.nav > a:nth-of-type(4) {
  background: #FCE5EF;
  border-bottom: 4px solid var(--rosa);
}

.nav > a:nth-of-type(5) {
  background: #E7F7E9;
  border-bottom: 4px solid var(--verde);
}

.nav > a:hover,
.nav > button:hover,
.nav > a[aria-current=page] {
  color: var(--azul);
  transform: translateY(-4px);
  filter: brightness(.97);
}

.nav > button::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
}

.nav > button[aria-expanded=true]::after {
  transform: rotate(225deg) translate(-2px,-1px);
}

/* Panel desplegable */

.panel-productos {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 4px solid var(--azul);
  box-shadow: 0 12px 22px rgba(5,24,92,.12);
  display: none;
}

.panel-productos.abierto {
  display: block;
}

.panel-productos ul {
  max-width: var(--ancho);
  margin: auto;
  padding: 22px var(--margen) 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
}

.panel-productos a {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  color: var(--azul);
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}

.panel-productos a:hover {
  background: var(--papel);
  transform: translateX(3px);
}

.panel-productos a small {
  display: block;
  font-weight: 400;
  color: var(--suave);
  font-size: .88rem;
  line-height: 1.3;
}

.panel-productos i {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  border: 3px solid var(--azul);
}

.panel-productos .todo {
  grid-column: 1 / -1;
}

/* Buscador */

.buscador {
  position: relative;
  flex: 0 1 220px;
}

.buscador form {
  display: flex;
  border: 1px solid var(--linea);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 12px rgba(5,24,92,.05);
}

.buscador input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: 400 .95rem var(--cuerpo);
  padding: 10px 6px 10px 15px;
  color: var(--texto);
}

.buscador input:focus {
  outline: none;
}

.buscador form:focus-within {
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(219,24,33,.12);
}

.buscador button {
  border: 0;
  background: var(--rojo);
  color: #fff;
  width: 44px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.buscador button:hover {
  background: var(--rojo-oscuro);
}

.resultados {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(380px, calc(100vw - 32px));
  max-height: 60vh;
  overflow: auto;
  background: #fff;
  border: 2px solid var(--azul);
  border-radius: 12px;
  box-shadow: 6px 7px 0 var(--azul);
  z-index: 50;
  display: none;
}

.resultados.abierto {
  display: block;
}

.resultados a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--azul);
  font-weight: 700;
  line-height: 1.25;
  border-bottom: 1px solid var(--linea);
}

.resultados a:last-child {
  border-bottom: 0;
}

.resultados a:hover,
.resultados a.activo {
  background: var(--papel);
}

.resultados small {
  display: block;
  font-weight: 400;
  color: var(--suave);
}

.resultados p {
  margin: 0;
  padding: 12px 14px;
  font-size: .96rem;
}

/* Botón menú móvil */

.menu-boton {
  display: none;
  margin-left: auto;
  background: var(--rojo);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: 700 1rem var(--cuerpo);
  padding: 11px 15px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(219,24,33,.18);
}

/* =========================================
   BOTONES GENERALES
========================================= */

.boton {
  display: inline-block;
  font: 800 1.1rem/1 var(--titulos);
  padding: 16px 24px 13px;
  border-radius: 12px;
  background: var(--azul);
  color: #fff;
  text-decoration: none;
  border: 3px solid var(--azul);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.boton:hover {
  background: #fff;
  color: var(--azul);
  transform: translateY(-2px);
}

.boton.claro {
  background: #fff;
  color: var(--azul);
  border-color: #fff;
}

.boton.claro:hover {
  background: transparent;
  color: #fff;
}

.boton.borde {
  background: transparent;
  color: var(--azul);
}

.boton.borde:hover {
  background: var(--azul);
  color: #fff;
}

/* =========================================
   PORTADA PRINCIPAL
========================================= */

.portada {
  background:
    radial-gradient(circle at 85% 15%, rgba(255,196,0,.22), transparent 28%),
    linear-gradient(135deg, #DB1821 0%, #C5121B 65%, #A90E18 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.portada::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 2px solid rgba(255,255,255,.13);
  border-radius: 50%;
  right: -130px;
  top: -180px;
  pointer-events: none;
}

.portada::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 2px solid rgba(255,255,255,.10);
  border-radius: 50%;
  left: -120px;
  bottom: -140px;
  pointer-events: none;
}

.portada .envoltura {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 65px);
  padding-block: clamp(48px, 6vw, 76px);
}

.lema-grande {
  white-space: nowrap;
  font: 900 clamp(3.2rem, 6.5vw, 6.1rem)/.98 var(--titulos);
  letter-spacing: -.045em;
  color: #fff;
  margin: 0 0 25px;
  text-shadow: 0 4px 15px rgba(80,0,0,.12);
}

.lema-grande > span {
  display: block;
}

.pi {
  position: relative;
  display: inline-block;
}

.pi b {
  position: absolute;
  left: 50%;
  top: .015em;
  width: .235em;
  height: .205em;
  margin-left: -.118em;
  border-radius: 48%;
  background: var(--azul);
  box-shadow: 0 0 0 .025em #fff;
}

.pi.cae b {
  animation: rebote 1.25s cubic-bezier(.3,.05,.5,1) .2s both;
}

@keyframes rebote {
  0% {
    transform: translateY(-3.4em);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  45% {
    transform: translateY(0) scale(1.16,.72);
  }
  62% {
    transform: translateY(-.5em) scale(.95,1.06);
  }
  80% {
    transform: translateY(0) scale(1.08,.86);
  }
  90% {
    transform: translateY(-.1em);
  }
  100% {
    transform: none;
  }
}

.portada-texto {
  max-width: 33em;
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: #fff;
  margin-bottom: 28px;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portada .boton {
  padding: 17px 25px;
  border-radius: 12px;
  font-size: 1.1rem;
  box-shadow: 0 5px 0 rgba(5,24,92,.20);
}

.portada .ilus {
  width: 100%;
  height: auto;
  overflow: visible;
}

.portada .ilus-hero {
  width: 100%;
  max-width: 390px;
  justify-self: center;
  filter: drop-shadow(0 12px 15px rgba(70,0,0,.15));
}

.zigzag {
  height: 14px;
  background:
    linear-gradient(135deg, var(--bg,#fff) 50%, transparent 50%) 0 0/20px 14px,
    linear-gradient(225deg, var(--bg,#fff) 50%, transparent 50%) 0 0/20px 14px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  background-repeat: repeat-x;
}

/* =========================================
   SECCIONES
========================================= */

.seccion {
  padding-block: clamp(48px, 7vw, 88px);
}

.seccion.gris {
  background: var(--papel);
}

.cabeza {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cabeza p {
  margin: .4em 0 0;
  color: var(--suave);
  max-width: 38em;
}

/* =========================================
   MOSAICO DE CATEGORÍAS
========================================= */

.mosaico {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.tile {
  --c: var(--rojo);
  background: var(--c);
  border-radius: 18px;
  color: var(--azul);
  text-decoration: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 18px rgba(5,24,92,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tile:hover {
  color: var(--azul);
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(5,24,92,.15);
}

.tile h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 900;
  line-height: 1.05;
}

.tile p {
  margin: .4em 0 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  max-width: 27em;
}

.tile .marco {
  align-self: center;
  width: min(88%, 350px);
  margin-top: 18px;
}

.t7 { grid-column: span 7; }
.t5 { grid-column: span 5; }
.t4 { grid-column: span 4; }
.t3 { grid-column: span 3; }
.t8 { grid-column: span 8; }

/* =========================================
   FOTOS
========================================= */

.marco {
  display: block;
  background: #fff;
  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 5px 6px 0 var(--azul);
  transform: rotate(var(--giro,0deg));
  overflow: hidden;
}

.marco img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 3px;
}

.marco img.recorte {
  object-fit: contain;
}

.collage {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  align-items: center;
}

.collage .marco:first-child {
  grid-column: 1/5;
  grid-row: 1;
  z-index: 1;
}

.collage .marco:last-child {
  grid-column: 3/7;
  grid-row: 1;
  margin-top: 64px;
  z-index: 2;
}

.cuadro {
  display: block;
  aspect-ratio: 4/3;
  border: 2px solid var(--azul);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.cuadro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cuadro img.recorte {
  object-fit: contain;
  padding: 6px;
}

/* =========================================
   TEMPORADAS
========================================= */

.temporada {
  background: linear-gradient(120deg, #05185C 0%, #142C78 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.temporada-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 26px;
  align-items: center;
  padding-block: 32px;
}

.temporada-item[hidden] {
  display: none;
}

.temporada h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.temporada p {
  margin: .35em 0 0;
  color: #eef1ff;
  font-size: 1.05rem;
  line-height: 1.5;
}

.temporada .boton {
  background: var(--amarillo);
  color: var(--azul);
  border-color: var(--amarillo);
  border-radius: 12px;
}

.temporada .boton:hover {
  background: #fff;
  border-color: #fff;
}

/* =========================================
   HISTORIA
========================================= */

.historia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.anio {
  font: 900 clamp(5.5rem, 14vw, 11rem)/.82 var(--titulos);
  color: var(--rojo);
  letter-spacing: -.03em;
  margin: 0;
}

.linea-tiempo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 40px 0;
  padding: 20px 0;
}

.linea-tiempo::before {
  content: "";
  position: absolute;
  top: 43px;
  left: 16%;
  right: 16%;
  height: 5px;
  background: linear-gradient(90deg, #DB1821 0%, #FFC400 50%, #05185C 100%);
  border-radius: 20px;
}

.linea-tiempo li {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-top: 5px solid var(--rojo);
  border-radius: 16px;
  padding: 68px 22px 25px;
  box-shadow: 0 8px 20px rgba(5,24,92,.10);
  transition: transform .25s ease, box-shadow .25s ease;
}

.linea-tiempo li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--amarillo);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--rojo);
}

.linea-tiempo li:nth-child(2) {
  border-top-color: var(--azul);
}

.linea-tiempo li:nth-child(2)::before {
  background: var(--turquesa);
  box-shadow: 0 0 0 3px var(--azul);
}

.linea-tiempo li:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 28px rgba(5,24,92,.16);
}

.linea-tiempo strong {
  display: block;
  color: var(--rojo);
  font: 900 34px/1 var(--titulos);
  margin-bottom: 12px;
}

.linea-tiempo li p {
  color: #39445c;
  line-height: 1.6;
}

/* =========================================
   LOCALES - TARJETAS COMPACTAS
========================================= */

.locales {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
  align-items: stretch;
}

.local {
  border: 1px solid #e0e5f0;
  border-radius: 16px;
  padding: 22px 24px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(5,24,92,.07);
  display: flex;
  flex-direction: column;
  gap: 9px;
  scroll-margin-top: 120px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.local:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(5,24,92,.12);
}

.local h2,
.local h3 {
  color: var(--azul);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  margin-bottom: 2px;
}

.local p {
  margin: 0;
  font-size: .96rem;
  line-height: 1.35;
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .88rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f2f4fa;
  width: fit-content;
}

.estado::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8791AE;
}

.estado.si {
  background: #e6f8ec;
  color: #16743a;
}

.estado.si::before {
  background: #17A34A;
}

.estado.no {
  background: #fff0f0;
  color: var(--rojo-oscuro);
}

.estado.no::before {
  background: var(--rojo);
}

/* Tabla de horarios */

.horario {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  line-height: 1.25;
}

.horario th,
.horario td {
  text-align: left;
  padding: 5px 3px;
  border-bottom: 1px solid var(--linea);
  font-weight: 400;
}

.horario td {
  text-align: right;
  white-space: nowrap;
}

.horario tr.hoy th,
.horario tr.hoy td {
  font-weight: 800;
  color: var(--rojo);
}

.nota {
  color: var(--suave);
  font-size: .88rem;
  margin: 0;
}

/* Teléfonos en una sola línea */

.telefonos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px 15px;
  margin: 3px 0;
  padding: 0;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
}

.telefonos li {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0;
  font-size: .9rem;
  line-height: 1.25;
}

.telefonos li + li::before {
  content: "•";
  color: var(--turquesa);
  font-weight: 900;
  margin-right: 10px;
}

.telefonos a {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: var(--azul);
}

.telefonos a:hover {
  color: var(--rojo);
  text-decoration: underline;
}

.local .boton {
  align-self: flex-start;
  margin-top: 5px;
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 10px;
}

/* =========================================
   ENCABEZADOS DE PÁGINAS INTERIORES
========================================= */

.hero-int {
  --bg: #fff;
  background: var(--color);
  position: relative;
  overflow: hidden;
}

.hero-int .envoltura {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr);
  gap: 20px;
  align-items: center;
  padding-block: 26px 46px;
  min-height: 300px;
}

.hero-int.simple .envoltura {
  grid-template-columns: 1fr;
  min-height: 0;
  padding-block: 26px 52px;
}

.hero-int p {
  font-size: clamp(1.1rem,1.6vw,1.28rem);
  line-height: 1.42;
  max-width: 32em;
  margin: .7em 0 0;
  font-weight: 500;
  color: var(--azul);
}

.hero-int.rojo {
  color: #fff;
}

.hero-int.rojo h1,
.hero-int.rojo p,
.hero-int.rojo a,
.hero-int.rojo .miga {
  color: #fff;
}

.miga {
  font-size: .94rem;
  margin-bottom: 18px;
  color: var(--azul);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.miga a {
  color: inherit;
}

.miga span::before {
  content: "/";
  margin-right: 6px;
}

/* =========================================
   CATÁLOGO
========================================= */

.catalogo {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: clamp(24px,5vw,56px);
  align-items: start;
}

.indice {
  position: sticky;
  top: 96px;
  border-left: 4px solid var(--color);
  padding-left: 16px;
}

.indice h2 {
  font: 800 1.2rem/1.1 var(--titulos);
  margin-bottom: 8px;
}

.indice a {
  display: block;
  padding: 4px 0;
  color: var(--texto);
  text-decoration: none;
  font-size: .98rem;
  line-height: 1.25;
}

.indice a:hover {
  color: var(--rojo);
}

.grupo {
  padding-block: 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--linea);
  scroll-margin-top: 120px;
}

.grupo:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.grupo h2 {
  font-size: clamp(1.5rem,2.6vw,2rem);
  margin-bottom: 14px;
}

.grupo:target h2 {
  background: linear-gradient(transparent 62%,var(--color) 62%);
  display: inline;
}

.grupo:target ul {
  margin-top: 14px;
}

.etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.etiquetas li {
  border: 2px solid var(--azul);
  border-radius: 999px;
  padding: 5px 14px;
  background: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

.sueltos {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 0 28px;
}

.sueltos li {
  padding: 11px 0;
  border-bottom: 1px solid var(--linea);
  font: 700 1.25rem/1.15 var(--titulos);
  color: var(--azul);
  scroll-margin-top: 120px;
}

.sueltos li:target {
  background: var(--color);
  padding-inline: 10px;
  border-radius: 6px;
}

.llamada {
  background: var(--color);
  border-radius: 14px;
  padding: clamp(22px,4vw,38px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.llamada h2 {
  font-size: clamp(1.5rem,3vw,2.1rem);
  max-width: 24em;
}

.llamada p {
  margin: .3em 0 0;
  font-weight: 500;
  color: var(--azul);
}

/* =========================================
   ÍNDICE DE PRODUCTOS
========================================= */

.lista-lineas {
  border-top: 3px solid var(--azul);
}

.lista-lineas > li {
  display: grid;
  grid-template-columns: minmax(0,1fr) 200px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 3px solid var(--azul);
}

.lista-lineas h2 {
  font-size: clamp(1.7rem,3.4vw,2.6rem);
}

.lista-lineas h2 a {
  text-decoration: none;
  color: var(--azul);
}

.lista-lineas h2 a:hover {
  color: var(--rojo);
}

.lista-lineas p {
  margin: .4em 0 .6em;
}

.lista-lineas .caja {
  padding: 10px;
}

.enlaces-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: .98rem;
}

/* =========================================
   QUIÉNES SOMOS
========================================= */

.texto-largo {
  max-width: 42em;
}

.dos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px,6vw,70px);
}

.mision {
  background: var(--azul);
  color: #fff;
}

.mision h2 {
  color: #fff;
  margin-bottom: .4em;
}

.mision blockquote {
  margin: 0;
  font: 700 clamp(1.5rem,3.2vw,2.35rem)/1.2 var(--titulos);
  max-width: 27em;
}

.lista-puntos li {
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px solid var(--linea);
}

.lista-puntos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .95em;
  width: 13px;
  height: 11px;
  border-radius: 48%;
  background: var(--azul);
}

.recorrido {
  counter-reset: p;
}

.recorrido li {
  padding: 10px 0 10px 48px;
  position: relative;
  border-bottom: 1px solid var(--linea);
  counter-increment: p;
}

.recorrido li::before {
  content: counter(p);
  position: absolute;
  left: 0;
  top: 9px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rojo);
  color: #fff;
  font: 800 1rem/1 var(--cuerpo);
}

/* =========================================
   TUTORIALES
========================================= */

.tutoriales {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tutorial-tile {
  --c: var(--rosa);
  display: grid;
  grid-template-columns: minmax(0,1fr) 42%;
  align-items: center;
  gap: 10px;
  background: var(--c);
  border-radius: 16px;
  padding: 24px;
  color: var(--azul);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tutorial-tile:hover {
  color: var(--azul);
  transform: translateY(-4px);
  box-shadow: 6px 8px 0 var(--azul);
}

.tutorial-tile h3,
.tutorial-tile h2 {
  font-size: clamp(1.7rem,3vw,2.2rem);
  font-weight: 900;
}

.tutorial-tile p {
  margin: .5em 0 0;
  line-height: 1.35;
  font-weight: 500;
}

.tutorial {
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap: clamp(28px,6vw,64px);
  align-items: start;
}

.materiales {
  background: var(--papel);
  border-radius: 14px;
  padding: 22px;
  position: sticky;
  top: 96px;
}

.materiales h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.materiales .lista-puntos li {
  border-color: var(--linea);
  line-height: 1.35;
}

.pasos {
  counter-reset: paso;
}

.pasos li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 6px 16px;
  padding-bottom: 26px;
}

.pasos li::before {
  content: counter(paso);
  grid-row: span 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--rojo);
  color: #fff;
  display: grid;
  place-items: center;
  font: 900 1.5rem/1 var(--cuerpo);
}

.pasos h3 {
  align-self: end;
  font-size: 1.5rem;
}

.pasos p {
  margin: 0;
}

.consejo {
  background: var(--color);
  padding: 20px 24px;
  border-radius: 14px;
  color: var(--azul);
}

.consejo strong {
  font: 700 1.7rem/1 var(--mano);
  display: block;
  margin-bottom: 4px;
}

.relacionados {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
}

/* =========================================
   CONTACTO
========================================= */

.tel-grande {
  font: 900 clamp(2.4rem,7vw,4.6rem)/1 var(--titulos);
  color: var(--rojo);
  text-decoration: none;
  letter-spacing: -.015em;
  display: inline-block;
}

.redes-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.redes-lista a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  padding: 10px 16px;
  border: 2px solid var(--azul);
  border-radius: 999px;
  text-decoration: none;
}

.redes-lista a:hover {
  background: var(--azul);
  color: #fff;
}

.mapa-sitio {
  columns: 3 260px;
  column-gap: 40px;
}

.mapa-sitio > li {
  break-inside: avoid;
  padding-bottom: 22px;
}

.mapa-sitio h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.mapa-sitio li li {
  padding: 3px 0;
}

/* =========================================
   SERVICIOS
========================================= */

.servicios {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  border-top: 0;
}

.servicios li {
  background: #f2f4fa;
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #e3e7f2;
  transition: transform .25s ease, box-shadow .25s ease;
}

.servicios li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(5,24,92,.10);
}

.servicios li + li {
  border-left: 1px solid #e3e7f2;
  padding-left: 25px;
}

.servicios h3 {
  color: var(--rojo);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 10px;
}

/* =========================================
   INSTAGRAM
========================================= */

.instagram {
  background: var(--rojo);
  color: #fff;
}

.instagram h2,
.instagram .cabeza p {
  color: #fff;
}

.galeria-ig {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 10px;
}

.galeria-ig a {
  display: block;
  border: 4px solid #fff;
  border-radius: 6px;
  overflow: hidden;
}

.galeria-ig img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* =========================================
   AVISO Y PRÓXIMOS EVENTOS
========================================= */

.aviso {
  display: block;
  background: var(--amarillo);
  color: var(--azul);
  text-decoration: none;
  font-weight: 600;
}

.aviso:hover {
  color: var(--azul);
  background: #FFD84D;
}

.aviso[hidden] {
  display: none;
}

.aviso .envoltura {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  padding-block: 13px;
  align-items: baseline;
}

.aviso strong {
  font: 800 1.2rem/1.1 var(--titulos);
}

.aviso .envoltura span {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.proximo {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,6fr);
  gap: clamp(24px,5vw,60px);
  align-items: center;
}

.proximo[hidden] {
  display: none;
}

.proximo-fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
}

.proximo-fotos img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 5px 6px 0 var(--azul);
  border-radius: 6px;
}

.proximo-fotos img:first-child {
  transform: rotate(-2deg);
}

.proximo-fotos img:last-child {
  transform: rotate(2deg);
  margin-top: 26px;
}

.mano {
  font: 700 2rem/1 var(--mano);
  color: var(--rojo);
  margin-bottom: 6px;
}

.precio {
  font: 900 3.4rem/1 var(--titulos);
  color: var(--rojo);
  margin: .3em 0 .1em;
}

/* =========================================
   PIE DE PÁGINA
========================================= */

.pie {
  background: linear-gradient(135deg, #05133f 0%, #05185C 65%, #142C78 100%);
  color: #e5eaff;
  padding-block: 55px 25px;
  font-size: .98rem;
}

.pie a {
  color: #e5eaff;
  text-decoration: none;
  transition: color .2s ease;
}

.pie a:hover {
  color: var(--amarillo);
}

.pie-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.pie-logo {
  width: 210px;
  height: auto;
  margin-bottom: 10px;
}

.pie .lema-mano {
  font: 700 1.7rem/1 var(--mano);
  color: var(--amarillo);
  display: block;
  margin-bottom: 12px;
}

.pie h2 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.pie li {
  padding: 4px 0;
}

.pie-red {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.pie-red a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
}

.pie-red a:hover {
  background: var(--rojo);
  color: #fff;
}

.legal {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 32px;
  padding-top: 18px;
  font-size: .92rem;
  color: #c5cde6;
}

/* =========================================
   GALERÍAS Y FICHAS
========================================= */

.grupo.con-foto {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  gap: 22px;
  align-items: start;
}

.mini-galeria {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.fichas {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
  gap: 20px 14px;
  margin-bottom: 12px;
}

.fichas h3 {
  font-size: 1.2rem;
  margin-top: 9px;
}

.fichas li {
  scroll-margin-top: 120px;
}

.fichas li:target .cuadro {
  border-color: var(--rojo);
  border-width: 4px;
}

/* =========================================
   VISTA PREVIA DE UN SOLO ARCHIVO
========================================= */

[data-pagina][hidden] {
  display: none;
}

/* =========================================
   RESPONSIVE: TABLET Y PORTÁTILES
========================================= */

@media (max-width: 1180px) {

  .cabecera .envoltura {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .menu-boton {
    display: block;
  }

  .buscador {
    order: 5;
    flex: 1 1 100%;
  }

  .resultados {
    left: 0;
    right: auto;
    width: 100%;
  }

  .nav {
    order: 6;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    display: none;
    margin: 0;
    gap: 5px;
  }

  .nav.abierto {
    display: flex;
  }

  .nav > a,
  .nav > button {
    justify-content: space-between;
    border-radius: 8px;
    padding: 13px 15px;
    border: 0;
  }

  .panel-productos {
    position: static;
    border: 0;
    box-shadow: none;
  }

  .panel-productos ul {
    grid-template-columns: 1fr;
    padding: 0 0 10px;
  }

  html {
    scroll-padding-top: 180px;
  }

  .grupo,
  .sueltos li,
  .local {
    scroll-margin-top: 180px;
  }
}

/* =========================================
   RESPONSIVE: TABLET
========================================= */

@media (max-width: 860px) {

  .portada .envoltura,
  .historia,
  .dos,
  .locales,
  .tutoriales,
  .catalogo,
  .tutorial {
    grid-template-columns: minmax(0,1fr);
  }

  .portada .envoltura {
    text-align: center;
    padding-block: 48px 60px;
  }

  .lema-grande {
    font-size: clamp(3rem, 10vw, 5rem);
    white-space: normal;
  }

  .portada-texto {
    margin-inline: auto;
  }

  .portada .acciones {
    justify-content: center;
  }

  .portada .ilus-hero {
    max-width: 310px;
    margin: 12px auto 0;
  }

  .t7,
  .t5,
  .t4,
  .t3,
  .t8 {
    grid-column: span 12;
  }

  .servicios,
  .proximo {
    grid-template-columns: 1fr;
  }

  .servicios li + li {
    border-left: 1px solid #e3e7f2;
    border-top: 1px solid #e3e7f2;
    padding-left: 25px;
  }

  .galeria-ig {
    grid-template-columns: repeat(3,1fr);
  }

  .collage {
    max-width: 430px;
    margin: auto;
  }

  .grupo.con-foto {
    grid-template-columns: 120px minmax(0,1fr);
    gap: 14px;
  }

  .mini-galeria {
    grid-template-columns: repeat(2,1fr);
  }

  .tile {
    min-height: 250px;
  }

  .indice {
    position: static;
    border-left: 0;
    padding-left: 0;
  }

  .indice ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .indice a {
    white-space: nowrap;
    border: 2px solid var(--azul);
    border-radius: 999px;
    padding: 5px 12px;
  }

  .hero-int .envoltura {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-int .ilus {
    max-width: 300px;
    margin: auto;
  }

  .temporada-item {
    grid-template-columns: 90px 1fr;
    gap: 14px 18px;
    padding-block: 26px;
  }

  .temporada-item .boton {
    grid-column: 1/-1;
    justify-self: start;
  }

  .linea-tiempo {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-left: 20px;
  }

  .linea-tiempo::before {
    top: 25px;
    bottom: 25px;
    left: 31px;
    right: auto;
    width: 5px;
    height: auto;
    background: linear-gradient(180deg,#DB1821,#FFC400,#05185C);
  }

  .linea-tiempo li {
    padding: 28px 22px 28px 55px;
  }

  .linea-tiempo li::before {
    top: 30px;
    left: 11px;
    transform: none;
  }

  .materiales {
    position: static;
  }

  .pie-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tutorial-tile {
    grid-template-columns: minmax(0,1fr) 38%;
  }

  .lista-lineas > li {
    grid-template-columns: minmax(0,1fr) 96px;
    gap: 14px;
  }
}

/* =========================================
   RESPONSIVE: TELÉFONOS
========================================= */

@media (max-width: 520px) {

  .cabecera .envoltura {
    gap: 10px;
    min-height: 70px;
  }

  .marca img {
    height: 38px;
  }

  .menu-boton {
    padding: 9px 12px;
    font-size: .92rem;
  }

  .lema-grande {
    font-size: clamp(2.7rem, 11vw, 4rem);
  }

  .portada .boton {
    width: 100%;
    text-align: center;
  }

  .portada .ilus-hero {
    max-width: 270px;
  }

  .pie-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-tile {
    grid-template-columns: 1fr;
  }

  .tutorial-tile .ilus {
    max-width: 210px;
    margin: auto;
  }

  .tel-grande {
    font-size: 2.3rem;
  }

  .local {
    padding: 18px;
  }

  .telefonos {
    gap: 6px 12px;
  }

  .horario {
    font-size: .82rem;
  }

  .temporada-item {
    grid-template-columns: 1fr;
  }

  .temporada-item .boton {
    grid-column: auto;
  }

  .grupo.con-foto {
    grid-template-columns: 1fr;
  }

  .grupo.con-foto > .marco {
    max-width: 180px;
  }

  .lista-lineas > li {
    grid-template-columns: 1fr;
  }

  .lista-lineas .caja {
    max-width: 130px;
  }

  .galeria-ig {
    grid-template-columns: repeat(2,1fr);
  }
}

/* =========================================
   ACCESIBILIDAD Y ANIMACIONES
========================================= */

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

  html {
    scroll-behavior: auto;
  }

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

/* =========================================
   IMPRESIÓN
========================================= */

@media print {

  .tira,
  .cabecera,
  .pie,
  .zigzag,
  .menu-boton,
  .buscador {
    display: none !important;
  }

}


/* =========================================
   TARJETAS DESTACADAS - LOCALES GUIMSA
========================================= */

.locales {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 35px;
    align-items: stretch;
}

.local {
    background: #ffffff;
    border: 2px solid #cbd3e5;
    border-top: 6px solid #05185C;
    border-radius: 16px;
    padding: 32px;
    box-shadow:
        0 8px 20px rgba(5, 24, 92, 0.12),
        0 18px 38px rgba(5, 24, 92, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.local:hover {
    transform: translateY(-6px);
    border-color: #05185C;
    box-shadow:
        0 14px 28px rgba(5, 24, 92, 0.18),
        0 24px 48px rgba(5, 24, 92, 0.14);
}

.local h2 {
    color: #05185C;
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e5e9f2;
}

.local address {
    line-height: 1.7;
    margin-bottom: 20px;
}

.local .horario,
.local .telefonos {
    background: #f3f6fc;
    border: 1px solid #e0e6f2;
    border-radius: 10px;
    padding: 16px;
    margin-top: 15px;
}

.local .boton {
    margin-top: 18px;
}

/* Adaptación para celulares */
@media (max-width: 700px) {
    .locales {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .local {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .local {
        transition: none;
    }
}
