/* =========================================================
   carlosnovelo.com — estilos del sitio
   Un solo archivo, ordenado por sección.
   Puntos de quiebre (los mismos de Elementor):
     tableta: hasta 1024px   ·   celular: hasta 767px
   ========================================================= */

/* ---------- 1. Variables: colores, letras y tamaños ---------- */
:root {
  --negro: #000000;
  --blanco: #ffffff;
  --verde: #D6FF00;          /* verde lima de botones e iconos */
  --verde-form: #DFF600;     /* verde del botón del formulario */
  --gris-fondo: #F1F1F1;     /* fondo de MERCH y producto */
  --gris-tarjeta: #252525;   /* cuadro «Siguiente carrera» */
  --gris-menu: #313131;      /* fondo del menú desplegable */
  --gris-texto: #7E7E7E;     /* fecha de las noticias */
  --gris-etiqueta: #707070;  /* STANDING, PTS… */
  --gris-claro: #8A8A8A;
  --gris-linea: #8F8F8F;
  --texto: #333333;
  --whatsapp: #25d366;

  --letra: "Montserrat", sans-serif;
  --letra-boton: "Roboto", sans-serif;
  --letra-sistema: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --radio: 20px;             /* esquinas redondas de tarjetas y botones */
  --sombra-tarjeta: 0 0 27px 0 rgba(0, 0, 0, .25);
  --sombra-noticia: 0 0 27px 0 rgba(0, 0, 0, .15);
  --alto-encabezado: 10vh;
  --separacion: 30px;        /* espacio entre tarjetas */
}

/* ---------- 2. Fuentes (archivos en /fuentes) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fuentes/montserrat.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fuentes/montserrat-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fuentes/roboto.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gotham Ultra";
  src: url("../fuentes/opti-alpine-bold-italic.ttf") format("truetype");
  font-weight: normal; font-style: italic; font-display: swap;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--negro);
  color: var(--texto);
  font-family: var(--letra-sistema);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0 0 .9rem; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 8px; top: 8px; z-index: 100; background: var(--blanco); color: var(--negro); padding: 8px 12px; }

/* Botón verde redondo (SHOP, COMPRAR, VER CONTENIDO) */
.boton {
  display: inline-block;
  background: var(--verde);
  color: var(--negro);
  font-family: var(--letra);
  font-weight: 500;
  font-size: .8em;
  line-height: 1;
  padding: .5em 1em;
  border-radius: var(--radio);
  border: 0;
  cursor: pointer;
  transition: all .3s;
}

/* ---------- 4. Encabezado ---------- */
.encabezado {
  position: relative;
  z-index: 9;
  background: var(--negro);
  display: grid;
  grid-template-columns: 3% 10% 7% 60% 8.5% 8.5% 3%;
  align-items: center;
  min-height: var(--alto-encabezado);
}
.encabezado__logo { grid-column: 2; display: flex; justify-content: center; }
.encabezado__logo img { width: 3.9em; }
.encabezado__titulo {
  grid-column: 4;
  text-align: center;
  font-family: var(--letra);
  font-weight: 300;
  font-size: 2rem;
  color: var(--blanco);
}
.encabezado__titulo b { font-weight: 400; }
.encabezado__shop { grid-column: 5; display: flex; justify-content: flex-end; }
.encabezado__menu { grid-column: 6; display: flex; justify-content: center; }

/* Botón hamburguesa y menú desplegable */
.menu-boton {
  background: none; border: 0; padding: .25em; cursor: pointer;
  color: var(--verde); font-size: 22px; line-height: 1;
  width: 33px; height: 33px; display: flex; align-items: center; justify-content: center;
}
.menu-boton svg { width: 1em; height: 1em; fill: currentColor; }
.menu-boton .icono-cerrar { display: none; }
.menu-abierto .menu-boton .icono-abrir { display: none; }
.menu-abierto .menu-boton .icono-cerrar { display: block; }
.menu {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: calc(100% - 1px);
  background: var(--gris-menu);
  margin: 0; padding: 0; list-style: none;
  z-index: 10;
}
.menu-abierto .menu { display: block; }
.menu a {
  display: block;
  padding: 1.5em 20px;
  color: var(--verde);
  font-family: var(--letra);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}
.menu a:hover, .menu a:focus, .menu a.activo { background: var(--verde); color: var(--negro); }

/* ---------- 5. Pie de página ---------- */
.pie {
  display: flex;
  flex-wrap: wrap;
  min-height: 20vh;
  padding: 1em 5em 2em;
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--letra);
}
.pie__logo { width: 20%; padding: .5em; }
.pie__logo img { width: 45%; }
.pie__col { display: flex; flex-direction: column; gap: .5em; padding: 1em; }
.pie__enlaces { width: 25%; align-items: flex-start; padding-right: 0; }
.pie__boletin { width: 30%; align-items: flex-end; }
.pie__redes { width: 25%; align-items: flex-end; padding-right: 0; }
.pie h2 { font-size: 1em; font-weight: 700; }
.pie__enlaces a, .pie__boletin p {
  font-size: .8em; letter-spacing: .02em; line-height: 1; margin: 0 0 -1%;
}
.pie__boletin h2 { margin-bottom: 0; }
.pie__boletin p { margin: 0; text-align: center; }
.boletin { width: 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.boletin input[type=email] {
  width: 100%;
  font-family: var(--letra); font-size: .8em;
  min-height: 33px; padding: 4px 12px;
  background: var(--blanco); color: #1f2124;
  border: 1px solid #69727d; border-radius: 0;
}
.boletin input::placeholder { color: #7a7a7a; opacity: .75; }
.boletin button {
  font-family: var(--letra-boton); font-weight: 500; font-size: 15px; line-height: 1;
  background: var(--verde); color: var(--negro);
  border: 0; border-radius: var(--radio);
  padding: .5em 1em; min-height: 40px; cursor: pointer;
  transition: all .3s;
}
.boletin button:hover { color: var(--blanco); }
.redes { display: flex; gap: 5px; }
.redes a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--verde); color: var(--negro);
  border-radius: 3px; /* esquinas poco redondas, como el original */
}
.redes svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ---------- 6. Portada (Inicio) ---------- */
/* Bloque grande negro con el piloto */
.portada {
  position: relative;
  display: flex;
  min-height: 80vh;
  background: var(--negro) url("../img/inicio-fondo-logo.png") center / contain no-repeat;
  color: var(--blanco);
  font-family: var(--letra);
}
.portada::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, #000000 35%, #000000D6 100%);
  opacity: .95;
}
.portada > * { position: relative; }
.portada__izq { width: 25%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 5% 5%; }
.portada__centro {
  width: 50%;
  background: url("../img/inicio-piloto.png") bottom center / 26em auto no-repeat;
}
.portada__der { width: 25%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 3% 5% 0; }
.portada--movil { display: none; }

/* Cuadro «Siguiente carrera» */
.carrera {
  width: 10em; min-height: 10vh;
  background: var(--gris-tarjeta);
  border-radius: 15px;
  padding: 15px 8px 8px 13px;
  display: flex; flex-direction: column; justify-content: center;
  white-space: nowrap;
}
.carrera h2 { font-size: .7em; font-weight: 400; color: var(--gris-claro); padding-bottom: 3px; }
.carrera p { font-size: .8em; color: var(--blanco); margin: 0; line-height: 1.5; }
.carrera p:first-of-type { font-weight: 500; margin-bottom: -4px; }

/* Cifras: STANDING · PTS · VICTORIAS · PODIUMS */
.cifras { display: flex; width: 50%; margin: 0 auto; padding-left: .9em; min-height: 5vh; }
.cifras div {
  width: 25%;
  border-right: 1px solid var(--texto);
  padding-top: 4%;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  padding-bottom: 5px;
}
.cifras h2 { font-size: .7em; font-weight: 400; color: var(--gris-etiqueta); }
.cifras p { margin: 0; font-size: .9em; font-weight: 700; line-height: 1.5; }
.cifras div:first-child p { font-size: .8em; }

/* Nombre y escudería (abajo a la derecha) */
.piloto-dato {
  width: 80%;
  min-height: 5vh;
  display: flex; justify-content: flex-end; align-items: center;
  font-size: .7em; white-space: nowrap; line-height: 1.5;
}
.piloto-dato p { margin: 1.5em 0 1.4em; }
.piloto-dato--linea { border-bottom: .5px solid var(--texto); }
/* Igual que el original: caja de 22.5×48 con la bandera centrada (contain) */
.piloto-dato img { width: 22.5px; height: 48px; object-fit: contain; margin: 0 9px 0 0; }

/* Franja blanca de patrocinadores */
.patrocinadores { background: var(--blanco); min-height: 10vh; display: flex; justify-content: center; }
.carrusel { width: 90%; height: 10vh; overflow: hidden; }
.carrusel__pista { display: flex; gap: 10px; height: 100%; transition: transform .5s ease; }
.carrusel__pista a, .carrusel__pista span {
  flex: 0 0 calc((100% - 40px) / 5);
  background: center / contain no-repeat;
}

/* Secciones con título grande (MERCH, ÚLTIMAS NOTICIAS) */
.titulo-seccion { padding: 2% 0 1%; text-align: center; font-family: var(--letra); font-size: 2em; font-weight: 700; color: var(--negro); }
.merch { background: var(--gris-fondo); padding: 2em 3em 0; }
/* El % del original se calcula sobre 1140 px (el ancho de la caja interna), no sobre la sección */
.merch .titulo-seccion { max-width: 1140px; margin: 0 auto; padding: calc((100% - 44px) * .02) 0 calc((100% - 44px) * .01); }
.merch-lista { background: var(--gris-fondo); padding: 1.5em 5em 5em; }
.noticias-inicio { background: var(--blanco); padding: 1.5em 5em 5em; }
.noticias-inicio .titulo-seccion { margin-bottom: 20px; }

/* ---------- 7. Tarjetas de producto ---------- */
.rejilla { display: grid; gap: var(--separacion); }
.rejilla--3 { grid-template-columns: repeat(3, 1fr); }
.rejilla--2 { grid-template-columns: repeat(2, 1fr); }
.rejilla--angosta { width: 80%; margin: 0 auto; }

.tarjeta {
  display: flex; flex-direction: column;
  border-radius: var(--radio);
  box-shadow: var(--sombra-tarjeta);
  font-family: var(--letra);
}
.tarjeta__foto {
  position: relative;
  min-height: 40vh;
  border-radius: var(--radio) var(--radio) 0 0;
  background: center / cover no-repeat;
}
.tarjeta__foto::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--negro); opacity: .4;
  transition: opacity .3s;
}
.tarjeta:hover .tarjeta__foto::before { opacity: 0; }
.tarjeta__info {
  min-height: 15vh;
  display: flex; flex-direction: column; align-items: flex-start; gap: .5em;
  padding: 1em;
  background: var(--negro);
  border-radius: 0 0 var(--radio) var(--radio);
  color: var(--blanco);
}
/* Medidas del original: título de 19 px de alto (16 de interlineado) y el precio 40 px debajo del borde de la caja */
.tarjeta__info h3 { font-size: 1em; font-weight: 600; line-height: 16px; padding: 1.5px 0; margin: 2px 0 -5px; }
.tarjeta__precio { margin: 0 0 .9em; font-weight: 700; line-height: 1.5; }
.tarjeta .boton {
  font-size: 15px; text-transform: uppercase;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
}
/* Producto con todas sus variantes agotadas (lo marca js/sitio.js leyendo pagos.js) */
.tarjeta .boton--agotado { opacity: .6; }
/* En la Tienda y en «Otros productos» el precio es más grande */
.tarjeta--tienda .tarjeta__precio { font-size: 1.25em; margin-bottom: 14.4px; }

/* ---------- 8. Tarjetas de noticia ---------- */
.noticia {
  display: flex;
  border-radius: var(--radio);
  box-shadow: var(--sombra-noticia);
  font-family: var(--letra);
}
.noticia__foto {
  width: 35%; min-height: 40vh;
  border-radius: var(--radio) 0 0 var(--radio);
  background: center / cover no-repeat;
}
.noticia__texto {
  width: 65%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .5em;
  padding: 1em;
  background: var(--blanco);
  border-radius: 0 var(--radio) var(--radio) 0;
}
.noticia h3 { font-size: 1.2em; font-weight: 600; color: var(--negro); line-height: 1; }
.noticia .boton { font-size: .8em; }
.lista-noticias { display: grid; gap: var(--separacion); grid-template-columns: 1fr; }

/* Fecha y hora con icono */
.fecha { display: flex; flex-wrap: wrap; gap: 0 .5em; margin: 0; padding: 0; list-style: none; font-size: .8em; color: var(--gris-texto); line-height: 1.5; }
.fecha li { display: flex; align-items: center; gap: 5px; }
.fecha svg { width: 14px; height: 14px; fill: var(--verde); }
.fecha--negra { color: var(--negro); }
.fecha--negra svg { fill: var(--negro); }

/* ---------- 9. Portada de páginas interiores (Galería, Tienda…) ---------- */
.cabecera {
  position: relative;
  min-height: 26vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 3em;
  background: center / cover no-repeat;
  font-family: var(--letra);
}
.cabecera::before { content: ""; position: absolute; inset: 0; background: var(--negro); opacity: .4; }
.cabecera--suave::before { opacity: .3; }
.cabecera--alta { min-height: 40vh; }
.cabecera h1 { position: relative; text-align: center; font-size: 2.5em; font-weight: 700; color: var(--blanco); line-height: 1; }
.cabecera--galeria { background-image: url("../img/portadas/galeria.jpg"); }
.cabecera--patrocinador { background-image: url("../img/portadas/patrocinador.jpg"); background-position: 0 -529px; }
.cabecera--tienda { background-image: url("../img/portadas/tienda.jpg"); background-position: 0 -800px; }
.cabecera--noticias { background-image: url("../img/portadas/noticias.jpg"); }

/* ---------- 10. Galería ---------- */
.galeria-seccion { background: var(--blanco); padding: 4em 6em 5em; }
/* Filas «justificadas»: cada foto crece según su proporción (--p = ancho/alto) */
.galeria { display: flex; flex-wrap: wrap; gap: 10px; --alto-fila: 200px; }
.galeria::after { content: ""; flex-grow: 999999; margin-left: -10px; } /* el -10px anula el gap: así no cae a una fila sola cuando la última está llena */
.galeria a {
  position: relative; display: block; overflow: hidden;
  flex-grow: calc(var(--p) * 100);
  flex-basis: calc(var(--p) * var(--alto-fila));
  height: var(--alto-fila);
}
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.galeria a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .8s; }
.galeria a:hover::after { opacity: 1; }

/* Visor de fotos (al dar clic en la galería) */
.visor {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .9);
  display: none; align-items: center; justify-content: center;
}
.visor.abierto { display: flex; }
.visor img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.visor button {
  position: absolute; background: none; border: 0; color: var(--blanco);
  font-size: 40px; line-height: 1; padding: 10px 16px; cursor: pointer; opacity: .8;
}
.visor button:hover { opacity: 1; }
.visor__cerrar { top: 10px; right: 10px; }
.visor__ant { left: 10px; top: 50%; transform: translateY(-50%); }
.visor__sig { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- 11. Patrocinadores: formulario ---------- */
.contenido {
  background: var(--blanco);
  padding: 2em 6em 3em;
  font-family: var(--letra);
  color: var(--negro);
  display: flex; flex-direction: column; gap: .5em;
}
.contenido h2 { font-size: 2em; font-weight: 700; padding-bottom: 8px; }
.contenido__texto { font-size: .9em; }
.contenido__texto p { margin: 0 0 .5em; }

.formulario { display: flex; flex-wrap: wrap; margin: 0 -5px -10px; }
.campo { width: 100%; padding: 0 5px; margin-bottom: 10px; display: flex; flex-direction: column; }
.campo--mitad { width: 50%; }
.campo label { font-size: .9em; padding-bottom: .5em; line-height: 1; color: var(--negro); }
.campo input, .campo textarea {
  width: 100%;
  font-family: var(--letra); font-size: .9em;
  padding: 6px 16px; min-height: 40px;
  background: var(--blanco); color: #1f2124;
  border: 1px solid #69727d; border-radius: 3px;
  line-height: 1.4;
}
.campo textarea { resize: vertical; height: 93px; padding-top: 8px; }
.campo input::placeholder, .campo textarea::placeholder { color: #7a7a7a; opacity: .7; }
.formulario__enviar {
  width: 100%;
  font-family: var(--letra); font-size: 1em; font-weight: 600; text-transform: uppercase;
  background: var(--verde-form); color: var(--negro);
  border: 0; border-radius: 3px;
  padding: 12px 24px; min-height: 40px; line-height: 1;
  cursor: pointer; transition: all .3s;
}
.formulario__enviar:hover { background: var(--negro); color: var(--verde-form); }

/* Campo trampa contra spam: invisible para personas */
.trampa { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Mensajes después de enviar */
.aviso { width: 100%; margin: 6px 5px 0; padding: 10px 14px; font-family: var(--letra); font-size: .85em; border-radius: 3px; }
.aviso--ok { background: var(--verde); color: var(--negro); }
.aviso--error { background: #ffe1e1; color: #a00000; border: 1px solid #e0a0a0; }
.pie .aviso { margin: 0; text-align: center; }
.enviando { opacity: .6; pointer-events: none; }

/* ---------- 12. Tienda: ficha de producto ---------- */
.producto {
  display: flex;
  min-height: 85vh;
  padding: 3em 6em 0 5em;
  background: var(--gris-fondo);
}
.producto__fotos { width: 55%; padding-right: 3em; }
.producto__datos { width: 45%; display: flex; flex-direction: column; gap: .5em; font-family: var(--letra); }

.fotos { margin-bottom: 2em; }
.fotos__principal { position: relative; display: block; }
.fotos__principal img { width: 100%; height: 80vh; object-fit: contain; }
.fotos__lupa {
  position: absolute; top: 1em; right: 1em; z-index: 2;
  width: 36px; height: 36px; border-radius: 100%;
  background: var(--blanco); display: flex; align-items: center; justify-content: center;
}
.fotos__lupa svg { width: 20px; height: 20px; }
.fotos__miniaturas { display: flex; flex-wrap: wrap; margin: 1em -4px 0; padding: 0; list-style: none; }
.fotos__miniaturas li { width: 25%; padding: 0 4px 8px; }
.fotos__miniaturas button { display: block; padding: 0; border: 0; background: none; cursor: pointer; opacity: .5; transition: opacity .2s; width: 100%; }
.fotos__miniaturas button.activa, .fotos__miniaturas button:hover { opacity: 1; }
.fotos__miniaturas img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.producto h1 { font-size: 1.4em; font-weight: 700; color: var(--negro); line-height: 1; }
.producto__precio { margin: 0 0 -.4em; font-size: 1.2em; color: var(--negro); line-height: 1.5; }
.producto__linea { border: 0; border-top: 1px solid var(--gris-linea); margin: 5px 0 11px; }

/* Selector de talla / color */
/* Mismo alto que la tabla de variaciones del original (100.8 px + 14.4 px de margen, menos el gap de 8) */
.variantes { display: flex; min-height: 100.8px; background: rgba(128, 128, 128, .14); margin-bottom: 6.4px; }
.variantes label {
  width: 100px; padding: 15px 15px 15px 33px;
  font-family: var(--letra-sistema); font-size: 14.4px; font-weight: 700; color: var(--texto); line-height: 1.8;
}
.variantes__caja { flex: 1; padding: 15px 15px 15px 0; display: flex; flex-direction: column; }
.variantes select {
  width: 100%;
  font-family: var(--letra-boton); font-size: 16px; color: var(--negro);
  padding: 8px 48px 8px 16px; min-height: 42px;
  border: 1px solid #666; border-radius: 3px;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/></svg>") right 16px center no-repeat;
  -webkit-appearance: none; appearance: none;
}
.variantes__limpiar { align-self: flex-start; font-size: .75em; color: var(--texto); margin-top: 6px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; visibility: hidden; }
.variantes__limpiar.visible { visibility: visible; }
.existencia { margin: 0; font-size: .9em; }
.existencia:empty { display: none; }
.existencia--agotado { color: #e2401c; }

/* Botón Comprar / Pedir por WhatsApp / Agotado */
.comprar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 1em; }
.comprar__boton {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--letra); font-size: .8em; font-weight: 700; text-transform: uppercase; line-height: 1;
  background: var(--verde); color: var(--negro);
  border: 0; border-radius: var(--radio);
  min-height: 37px; padding: 10.5px 18px; cursor: pointer;
  transition: all .2s;
}
.comprar__boton:hover { background: var(--negro); color: var(--verde); }
.comprar__boton svg { width: 16px; height: 16px; fill: currentColor; }
.comprar__boton[aria-disabled=true] { opacity: .5; cursor: not-allowed; pointer-events: none; }
/* La nota va debajo del botón sin empujar la descripción (cabe en el hueco que deja el original) */
.comprar__nota { position: absolute; left: 0; top: calc(100% + 2px); width: 100%; font-size: .7em; line-height: 1.5; color: #555; margin: 0; }

.producto__descripcion { font-size: .8em; color: var(--negro); }
.producto__descripcion p { margin: 0 0 1.125em; }
.producto__descripcion ul { margin: 0 0 1em; padding-left: 40px; }
.producto__descripcion > :last-child { margin-bottom: 0; }

.otros { background: var(--blanco); padding: 2em 3em 0; }
.otros h2 { text-align: center; font-family: var(--letra); font-size: 1.6em; font-weight: 700; color: var(--negro); }
.otros-lista { background: var(--blanco); padding: 1.5em 4em 3em; }
.tienda-seccion { background: var(--blanco); padding: 5em 5em; }
.tienda-categoria { text-align: center; font-family: var(--letra); font-size: .8em; color: var(--gris-texto); margin: -3em 0 2.2em; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- 13. Noticias (lista y entrada) ---------- */
.noticias-seccion { background: var(--blanco); padding: 3em 5em 5em; }
.entrada {
  background: var(--blanco);
  padding: 2em 6em 3em;
  font-family: var(--letra);
  display: flex; flex-direction: column; gap: .5em;
}
.entrada__cuerpo { font-size: .9em; color: var(--negro); }
.entrada__cuerpo p { margin: 0 0 .9rem; }
.entrada__cuerpo figure { margin: 0 0 1em; text-align: center; }
.entrada__cuerpo figure img { height: auto; }
/* Fotos lado a lado dentro de una noticia */
.columnas { display: flex; gap: 2em; margin-bottom: 1.75em; }
.columna { flex: 1; min-width: 0; }
.columna figure { margin: 0; }
@media (max-width: 781px) { .columnas { flex-direction: column; gap: 24px; } }

/* ---------- 14. Próximamente ---------- */
.proximo {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 0 0 7%;
  overflow: hidden;
  font-family: var(--letra);
  color: var(--blanco);
  text-align: center;
}
.proximo__fondos { position: absolute; inset: 0; }
.proximo__fondos div {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; transition: opacity 1s;
}
.proximo__fondos div.activo { opacity: 1; }
.proximo__fondos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .6) 60%, rgba(0, 0, 0, .97) 100%); }
.proximo > *:not(.proximo__fondos) { position: relative; }
.proximo__logos { display: flex; align-items: center; width: 35%; margin-bottom: 2px; }
.proximo__logos div { flex: 1; display: flex; }
.proximo__logos div:first-child { justify-content: flex-end; }
.proximo__logos div:nth-child(2) { flex: 0 0 67px; justify-content: center; }
.proximo__logos img { width: 95px; }
.proximo__logos svg { width: 20px; height: 20px; fill: var(--blanco); }
.proximo h1 { font-size: 1.6em; font-weight: 300; font-style: italic; letter-spacing: .05em; margin-bottom: 8px; }
.proximo h2 { font-family: "Gotham Ultra", sans-serif; font-size: 1.3em; font-weight: 100; font-style: italic; letter-spacing: .02em; }

/* ---------- 15. Página de gracias / error ---------- */
.gracias { background: var(--blanco); min-height: 50vh; padding: 5em 3em; text-align: center; font-family: var(--letra); color: var(--negro); }
.gracias h1 { font-size: 2.5em; font-weight: 700; margin-bottom: .6em; }
.gracias p { font-size: 1em; }
.gracias .boton { font-size: 1em; margin-top: 1em; }

/* ---------- 16. WhatsApp flotante ---------- */
.whatsapp {
  position: fixed; right: 28px; bottom: 28px; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--letra);
}
.whatsapp__boton {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 1px 6px 24px 0 rgba(7, 94, 84, .24);
  transition: transform .3s;
}
.whatsapp__boton:hover { transform: scale(1.05); }
.whatsapp__boton svg { width: 36px; height: 36px; fill: var(--blanco); }
.whatsapp__globo {
  position: relative;
  background: var(--blanco); color: #000;
  font-size: 14px; line-height: 1.3;
  padding: 10px 30px 10px 14px; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transform: translateX(10px);
  transition: all .4s;
}
.whatsapp__globo.visible { opacity: 1; visibility: visible; transform: none; }
.whatsapp__globo button { position: absolute; top: 4px; right: 6px; background: none; border: 0; font-size: 16px; line-height: 1; cursor: pointer; color: #666; }

/* =========================================================
   TABLETA (hasta 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  /* Encabezado: logo, botón SHOP y menú (sin el nombre) */
  .encabezado { grid-template-columns: 20% 58% 11% 11%; padding-left: 1em; }
  .encabezado__logo { grid-column: 1; }
  .encabezado__logo img { width: 71%; }
  .encabezado__titulo { display: none; }
  .encabezado__shop { grid-column: 3; justify-content: center; }
  .encabezado__menu { grid-column: 4; }

  .pie { padding: 1em 2em 2em; }
  .pie__logo img { width: 75%; }
  .pie__boletin p, .pie__redes h2 { text-align: right; }

  .rejilla--3 { grid-template-columns: repeat(2, 1fr); }
  .entrada { padding: 3em; }
  .cabecera--patrocinador { background-position: 0 0; }
  .cabecera--tienda { background-position: 0 -436px; }
  .galeria { --alto-fila: 150px; }
}

/* =========================================================
   CELULAR (hasta 767px)
   ========================================================= */
@media (max-width: 767px) {
  .encabezado { grid-template-columns: 28% 42% 20% 10%; padding: 0 1em 0 .5em; }
  .encabezado__logo img { width: 80%; }
  .encabezado__shop { justify-content: flex-start; }

  /* Portada: se cambia por la versión de celular */
  .portada { display: none; }
  .portada--movil {
    display: flex; justify-content: center; align-items: flex-start;
    min-height: 75vh;
    background: var(--negro) url("../img/inicio-fondo-logo.png") center / contain no-repeat;
  }
  .portada--movil .portada__centro {
    position: absolute; inset: 0; width: auto;
    background-position: 2.3em 5em; background-size: 20em auto;
  }
  .portada--movil .portada__nombre { position: relative; width: 50%; }
  .portada--movil .piloto-dato { width: 100%; justify-content: center; }
  .portada--movil .piloto-dato--gris { color: var(--gris-claro); }
  .piloto-dato img { width: 19.5px; margin-right: 8px; }

  .carrusel__pista a, .carrusel__pista span { flex-basis: calc((100% - 20px) / 3); }

  .titulo-seccion, .merch .titulo-seccion { font-size: 1.7em; padding: 2% 0 0; }
  .noticias-inicio .titulo-seccion { font-size: 2em; padding: 2% 0 1%; }
  .merch-lista { padding: 1em 1.5em 4em; }
  .noticias-inicio { padding: 1.5em 1.5em 4em; }

  .rejilla--3, .rejilla--2 { grid-template-columns: 1fr; }
  .rejilla--angosta { width: 100%; }
  .tarjeta__info { gap: .25em; }
  .tarjeta__info h3 { font-size: .8em; line-height: 12.8px; padding: 1.1px 0; margin: 5px 0 0; }
  .tarjeta .boton { font-size: .8em; }
  .tarjeta--tienda .tarjeta__precio { font-size: 1em; }

  .noticia { flex-direction: column; }
  .noticia__foto { width: 100%; border-radius: var(--radio) var(--radio) 0 0; }
  .noticia__texto { width: 100%; border-radius: 0 0 var(--radio) var(--radio); padding: 1em 1em 2em; }
  .noticia h3 { font-size: 1em; }
  .noticia__texto > .boton { margin-top: .6px; } /* en el original el botón va .6 px abajo dentro de su caja de 26.2 px */

  .cabecera { padding: 0 1.5em; }
  .cabecera h1 { font-size: 2em; }
  .cabecera--patrocinador { background-position: 0 -99px; }
  .cabecera--patrocinador h1 { font-size: 1.9em; }
  .cabecera--tienda { background-position: 0 -630px; }

  .galeria-seccion { padding: 3em 1.5em; }
  .contenido { padding: 2em 1.5em 3em; }
  .contenido h2 { font-size: 1.5em; }
  .campo--mitad { width: 100%; }

  .producto { flex-direction: column; padding: 2em 1.5em 3em; }
  .producto__fotos, .producto__datos { width: 100%; padding: 0; }
  .fotos__principal img { height: auto; }
  .producto h1 { font-size: 1.2em; margin-top: -1em; }
  .producto__precio { font-size: 1em; }
  .variantes label { width: auto; padding-left: 17px; padding-right: 18px; }
  .otros-lista { padding: 1em 1.5em 3em; }
  .tienda-seccion { padding: 3em 1.5em; }
  .noticias-seccion { padding: 3em 1.5em 5em; }

  .entrada { padding: 2em 1.5em; }

  .pie { padding: 0 2em 2em; }
  .pie__logo, .pie__col { width: 100%; align-items: center; text-align: center; }
  .pie__logo { text-align: center; }
  .pie__logo img { width: 50%; }
  .boletin { align-items: center; }
  .pie__boletin p, .pie__redes h2 { text-align: center; }

  .proximo { padding: 0 5% 30%; }
  .proximo__logos { width: 90%; }
  .proximo__logos div:nth-child(2) { flex-basis: 52.6px; }
  .proximo__logos img { width: 75px; }
  .proximo__logos svg { width: 16px; height: 16px; }
  .proximo h1 { font-size: 1.1em; line-height: 1; margin-bottom: 0; }
  .proximo h2 { font-size: 1em; }

  .whatsapp { right: 14px; bottom: 14px; }
  .whatsapp__globo { max-width: 200px; }
}
