/* =====================================================================
   Mal Bicho — sitio público (index.html y 404.html)
   Recorrido de la página: cielo → mar → arena (promos, pizarra)
   → orilla (mapa) → agua (juegos) → mar profundo (pie).
   ===================================================================== */

:root {
  /* forma de ola que se repite (se usa como máscara, el color sale de background) */
  --ola: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 Q25 6 50 20 T100 20 T150 20 T200 20 V40 H0Z'/%3E%3C/svg%3E");
  --ancho: 1120px;
  --lado: clamp(1.1rem, 5vw, 2.5rem);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sitio { background: var(--mb-arena); overflow-x: hidden; }
.sitio :focus-visible { outline: 3px solid var(--mb-sol); outline-offset: 3px; border-radius: 6px; }
:where(.sitio) p { margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--mb-abismo); color: #fff; padding: .7em 1em; border-radius: 999px; font-weight: 700;
}
.saltar:focus { top: 1rem; }

/* ---------- Botones del sitio (sobre .mb-btn del theme) ---------- */
.boton { font-size: 1.05rem; font-weight: 800; padding: .75em 1.35em; min-height: 48px; }
.boton--coral { background: var(--mb-coral); color: var(--mb-abismo); }
.boton--coral:hover { background: var(--mb-sol); }
.boton--claro { background: var(--mb-blanco); color: var(--mb-azul); box-shadow: var(--mb-sombra-chica); }
.boton--claro:hover { background: var(--mb-espuma); }
.boton--sol { background: var(--mb-sol); color: var(--mb-abismo); }
.boton--sol:hover { background: var(--mb-blanco); }
.boton--wa { background: #1f8f4e; }
.boton--wa:hover { background: #17733e; }
.boton--ig { background: var(--mb-blanco); color: var(--mb-abismo); }
.boton--ig:hover { background: var(--mb-espuma); }

/* =====================================================================
   HERO: cielo con sol, logo, y el mar que rompe en la arena
   ===================================================================== */
.hero {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, #cfe5f1 0%, var(--mb-bruma) 55%, #f7fbfd 100%);
  padding: clamp(1.2rem, 4vw, 3rem) var(--lado) 0;
  text-align: center;
}
.hero__logo { position: relative; isolation: isolate; }
.hero__logo::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 44%;
  width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, var(--mb-sol) 0 58%, rgba(255, 194, 75, .35) 59% 70%, rgba(255, 194, 75, 0) 71%);
}

.hero__contenido { max-width: var(--ancho); margin: 0 auto; }
.hero__logo { margin: 0 auto; width: min(56vw, 230px); }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(15, 42, 79, .15)); }

.hero__texto { padding: .9rem 0 0; }
/* Título a mano (corto) + texto de lectura: la letra pincel solo para frases cortas */
.hero__titular {
  font-family: var(--mb-font-titulo); color: var(--mb-azul);
  font-size: clamp(2.1rem, 8.5vw, 2.9rem); line-height: 1.02;
  max-width: 16ch; margin: 0 auto;
  text-wrap: balance;
}
.hero__bajada {
  color: var(--mb-abismo); font-weight: 700;
  font-size: clamp(1.08rem, 4.2vw, 1.3rem); line-height: 1.4;
  max-width: 32ch; margin: .55rem auto 0;
  text-wrap: balance;
}
.hero__horario {
  display: inline-flex; align-items: center; gap: .45em;
  margin-top: .9rem; padding: .4em 1em .4em .75em;
  background: var(--mb-blanco); color: var(--mb-azul);
  border-radius: 999px; font-weight: 800; font-size: .95rem; line-height: 1.25;
  box-shadow: var(--mb-sombra-chica); text-align: left; max-width: 100%;
}
.hero__horario svg { flex: none; }
.hero__botones {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin: 1.3rem auto 0; max-width: 26rem;
}
.hero__botones .boton { flex: 1 1 9rem; }
.hero__botones .boton--coral { flex-basis: 100%; font-size: 1.15rem; }

/* El mar: capas de olas con máscara; el color es variable del theme */
.mar { position: relative; height: 92px; margin: 1rem calc(-1 * var(--lado)) 0; }
.ola {
  position: absolute; left: 0; right: 0; bottom: 0;
  -webkit-mask: var(--ola) repeat-x 0 0 / var(--t) 100%;
  mask: var(--ola) repeat-x 0 0 / var(--t) 100%;
  animation: ola var(--v) linear infinite;
}
.ola--fondo  { --t: 260px; --v: 26s; height: 92px; background: var(--mb-azul); }
.ola--medio  { --t: 200px; --v: 18s; height: 66px; background: var(--mb-cielo); animation-direction: reverse; }
.ola--frente { --t: 320px; --v: 22s; height: 42px; background: var(--mb-agua); }
.ola--espuma { --t: 150px; --v: 14s; height: 20px; background: var(--mb-arena); animation-direction: reverse; }
@keyframes ola {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to   { -webkit-mask-position: var(--t) 0; mask-position: var(--t) 0; }
}
@media (prefers-reduced-motion: reduce) { .ola { animation: none; } }

/* Escritorio: logo a la izquierda, texto a la derecha */
@media (min-width: 860px) {
  .hero { text-align: left; padding-top: 2.5rem; }
  .hero__contenido {
    max-width: 1000px;
    display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 4.5rem; align-items: center;
  }
  .hero__logo { width: 100%; }
  .hero__texto { padding: 0; }
  .hero__titular { margin: 0; font-size: clamp(3rem, 5vw, 4.2rem); max-width: 14ch; }
  .hero__bajada { margin: .7rem 0 0; font-size: 1.4rem; max-width: 30ch; }
  .hero__botones { justify-content: flex-start; margin: 1.6rem 0 0; max-width: none; }
  .hero__botones .boton, .hero__botones .boton--coral { flex: 0 0 auto; font-size: 1.1rem; }
  .mar { height: 120px; }
  .ola--fondo { height: 120px; }
  .ola--medio { height: 86px; }
  .ola--frente { height: 54px; }
}

/* =====================================================================
   Secciones
   ===================================================================== */
.seccion { padding: clamp(2.2rem, 7vw, 4.5rem) var(--lado); scroll-margin-top: .5rem; }
.seccion > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.seccion__cabeza { margin-bottom: 1.4rem; }
.seccion__titulo { font-size: clamp(2.6rem, 10vw, 4rem); margin: 0; }
.seccion__titulo--claro { color: var(--mb-blanco); }
.seccion__fecha { font-weight: 800; color: var(--mb-abismo); font-size: 1.05rem; margin-top: .1rem; }
.seccion__fecha:first-letter { text-transform: uppercase; }
.seccion__intro { max-width: 46ch; margin-top: .6rem; font-size: 1.08rem; }

/* Arena con granitos */
.arena {
  background-color: var(--mb-arena);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(226, 201, 149, .9) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 70% 80%, rgba(226, 201, 149, .7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 45% 60%, rgba(255, 255, 255, .55) 0 1px, transparent 1.4px);
  background-size: 23px 19px, 31px 29px, 17px 23px;
}
.arena--sigue { padding-top: 0; }

.cargando { color: var(--mb-azul); font-weight: 700; padding: 1rem 0; }

/* ---------- Promos: carteles pintados a mano ---------- */
.promos { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
/* auto-fit: con 2 o 3 promos las tarjetas llenan el ancho (antes quedaban amontonadas a la izquierda) */
@media (min-width: 640px) { .promos { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; } }
/* una sola promo: que no se estire a todo el ancho */
.promos:has(> .promo:only-child) { grid-template-columns: minmax(0, 560px); }
.promo { min-height: 9.5rem; align-content: center; }

.promo {
  position: relative;
  padding: 1.15rem 1.25rem 1.2rem;
  border: 3px solid var(--mb-abismo);
  border-radius: 22px 10px 26px 12px / 14px 24px 12px 22px;
  box-shadow: 5px 6px 0 var(--mb-abismo);
  color: var(--mb-abismo);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t p" "d p" "h p";
  column-gap: 1rem; align-items: start;
  transform: rotate(-.8deg);
}
.promo:nth-child(even) { transform: rotate(.7deg); }
.promo--coral { background: var(--mb-coral); }
.promo--sol { background: var(--mb-sol); }
.promo__titulo {
  grid-area: t; margin: 0;
  font-size: clamp(2rem, 8vw, 2.4rem); color: var(--mb-abismo); line-height: 1;
}
.promo__detalle { grid-area: d; margin-top: .35rem; font-weight: 700; font-size: 1.05rem; }
.promo__hasta { grid-area: h; margin-top: .5rem; font-size: .9rem; font-weight: 800; opacity: .85; }
.promo__precio {
  grid-area: p; align-self: center;
  display: grid; place-items: center; text-align: center;
  min-width: 5.6rem; aspect-ratio: 1; padding: .4rem;
  border-radius: 50%; background: var(--mb-abismo); color: var(--mb-sol);
  font-family: var(--mb-font-titulo); font-size: 1.75rem; line-height: 1; white-space: nowrap;
  transform: rotate(8deg);
  box-shadow: 0 0 0 4px var(--mb-blanco) inset, 0 0 0 2px var(--mb-abismo);
}
.promo--sol .promo__precio { color: var(--mb-coral); }

.promos__vacio {
  display: flex; align-items: center; gap: 1rem;
  background: var(--mb-blanco); border: 3px dashed var(--mb-arena-osc); border-radius: 20px;
  padding: 1rem 1.2rem; max-width: 40rem;
}
.promos__vacio img { width: 84px; height: auto; flex: none; transform: rotate(-8deg); }
.promos__vacio strong { display: block; font-family: var(--mb-font-titulo); font-weight: 400; font-size: 1.6rem; color: var(--mb-azul); line-height: 1.1; margin-bottom: .2rem; }

/* ---------- Menú: pizarra con tiza y marco de madera ---------- */
.pizarra {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 255, 255, .05), transparent 50%),
    var(--mb-marino);
  color: var(--mb-blanco);
  border: 12px solid #a7773f;
  border-image: linear-gradient(135deg, #b98547, #8a5d2c 40%, #b98547 60%, #7b5226) 1;
  box-shadow: 0 14px 30px rgba(15, 42, 79, .25);
  padding: clamp(1.3rem, 5vw, 2.6rem);
}
.pizarra__cabeza { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; margin-bottom: 1rem; }
.pizarra__titulo { margin: 0; color: var(--mb-blanco); font-size: clamp(2.5rem, 9.5vw, 3.6rem); }
.pizarra__nota { color: var(--mb-agua); font-weight: 700; font-size: .95rem; }
.pizarra__grupos { display: grid; gap: 1.4rem 3rem; }
@media (min-width: 760px) { .pizarra__grupos { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.pizarra__cat {
  margin: 0 0 .3rem; color: var(--mb-sol); font-size: 2rem;
  border-bottom: 2px dashed rgba(143, 195, 220, .45); padding-bottom: .15rem;
}
.pizarra__items { list-style: none; margin: 0; padding: 0; }
.pizarra__item { display: flex; align-items: baseline; gap: .5rem; padding: .45rem 0; }
.pizarra__nombre { font-weight: 800; font-size: 1.15rem; }
.pizarra__puntos { flex: 1; border-bottom: 3px dotted rgba(234, 243, 248, .45); transform: translateY(-.3em); min-width: 1.5rem; }
.pizarra__precio { font-family: var(--mb-font-titulo); font-size: 1.85rem; line-height: 1; white-space: nowrap; color: var(--mb-blanco); }
.cargando--tiza { color: var(--mb-espuma); }

/* =====================================================================
   Juegos: en el agua
   ===================================================================== */
.agua {
  position: relative; color: var(--mb-blanco);
  background: linear-gradient(180deg, var(--mb-oceano) 0%, var(--mb-azul) 45%, var(--mb-marino) 100%);
  margin-top: 60px;
}
.agua::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 60px;
  background: var(--mb-oceano);
  -webkit-mask: var(--ola) repeat-x 0 0 / 240px 100%;
  mask: var(--ola) repeat-x 0 0 / 240px 100%;
}
.agua .seccion__intro { color: var(--mb-bruma); }

.juegos { display: grid; gap: 1.3rem; }
@media (min-width: 760px) { .juegos { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
@media (min-width: 760px) and (max-width: 1079px) {
  /* con 3 juegos en 2 columnas, el tercero va centrado abajo */
  .juegos > .juego:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - .8rem); }
}
@media (min-width: 1080px) { .juegos { grid-template-columns: repeat(3, 1fr); } }

.juego {
  background: var(--mb-blanco); color: var(--mb-abismo);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 10px 0 rgba(15, 42, 79, .35);
  display: flex; flex-direction: column;
}
.juego__escena { position: relative; display: block; aspect-ratio: 320 / 150; overflow: hidden; }
/* captura real del juego (assets/juego-*.webp) */
.juego__foto { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.juego:hover .juego__foto { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .juego__foto { transition: none; } .juego:hover .juego__foto { transform: none; } }

.juego__cuerpo { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.juego__titulo { margin: 0; font-size: 2.3rem; }
.juego__desc { font-size: 1.02rem; }
.juego__btn { align-self: flex-start; }

.ranking { margin-top: .4rem; border-top: 2px dashed var(--mb-espuma); padding-top: .8rem; }
.ranking__titulo { margin: 0 0 .4rem; font-family: var(--mb-font); font-weight: 800; font-size: 1rem; color: var(--mb-azul); }
.ranking__lista { margin: 0; padding: 0; list-style: none; counter-reset: pos; }
.ranking__lista li {
  counter-increment: pos;
  display: flex; align-items: center; gap: .6rem;
  padding: .3rem 0; font-weight: 700;
}
.ranking__lista li::before {
  content: counter(pos);
  flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mb-bruma); color: var(--mb-azul); font-weight: 800; font-size: .9rem;
}
.ranking__lista li:first-child::before { background: var(--mb-sol); color: var(--mb-abismo); }
.ranking__alias { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking__score { font-family: var(--mb-font-titulo); font-weight: 400; font-size: 1.45rem; color: var(--mb-azul); line-height: 1; }
.ranking__lista--vacia li::before { display: none; }
.ranking__vacio { color: var(--mb-oceano); font-weight: 600; }

.ruleta-aviso {
  margin-top: 1.8rem;
  display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.1rem; align-items: center;
  background: rgba(15, 42, 79, .45); border: 2px solid rgba(143, 195, 220, .4);
  border-radius: 24px; padding: 1.1rem 1.2rem;
}
.ruleta-aviso__rueda { width: 76px; height: 76px; animation: gira 14s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ruleta-aviso__rueda { animation: none; } }
.ruleta-aviso__titulo { margin: 0 0 .2rem; color: var(--mb-sol); font-size: 1.9rem; }
.ruleta-aviso__texto p { color: var(--mb-bruma); }
.ruleta-aviso .boton { grid-column: 1 / -1; justify-self: stretch; }
@media (min-width: 760px) {
  .ruleta-aviso { grid-template-columns: auto 1fr auto; padding: 1.2rem 1.6rem; }
  .ruleta-aviso__rueda { width: 96px; height: 96px; }
  .ruleta-aviso .boton { grid-column: auto; }
}

/* =====================================================================
   Cómo llegar: la orilla
   ===================================================================== */
.orilla { position: relative; background: var(--mb-bruma); margin-top: 0; }
.orilla::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 44px;
  background: var(--mb-arena);
  -webkit-mask: var(--ola) repeat-x 0 0 / 300px 100%;
  mask: var(--ola) repeat-x 0 0 / 300px 100%;
  transform: scaleY(-1);
}
.orilla { padding-top: calc(clamp(2.2rem, 7vw, 4.5rem) + 30px); padding-bottom: clamp(2.2rem, 7vw, 4rem); }
.llegar { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .llegar { grid-template-columns: 1fr 1.4fr; align-items: center; gap: 2.5rem; } }
.llegar__texto { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.llegar__texto > p { font-size: 1.08rem; max-width: 38ch; }
.llegar__datos { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; width: 100%; }
.llegar__datos li {
  display: flex; align-items: flex-start; gap: .7rem;
  background: var(--mb-blanco); border-radius: var(--mb-radio); padding: .75rem .9rem;
  box-shadow: var(--mb-sombra-chica); color: var(--mb-abismo); line-height: 1.35;
}
.llegar__datos svg { flex: none; color: var(--mb-oceano); margin-top: .05rem; }
.llegar__datos strong { display: block; color: var(--mb-azul); font-weight: 800; }
.llegar__mapa {
  border: 4px solid var(--mb-blanco); border-radius: 24px; overflow: hidden;
  box-shadow: var(--mb-sombra); background: var(--mb-espuma);
  aspect-ratio: 4 / 3;
}
.llegar__mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =====================================================================
   Pie: mar profundo
   ===================================================================== */
.pie {
  background: var(--mb-abismo); color: var(--mb-espuma);
  padding: 2.4rem var(--lado) 4.5rem;
  display: grid; gap: 1.6rem;
}
.pie > * { max-width: var(--ancho); width: 100%; margin: 0 auto; }
.pie__marca { display: flex; align-items: center; gap: 1rem; }
.pie__bicho { width: 88px; height: auto; flex: none; }
.pie__nombre { font-family: var(--mb-font-titulo); font-size: 2.2rem; color: var(--mb-blanco); line-height: 1; }
.pie__sub { font-weight: 700; }
.pie__horario { color: var(--mb-agua); font-size: .95rem; margin-top: .2rem; }
.pie__escribinos { font-weight: 800; color: var(--mb-blanco); margin-bottom: .5rem; }
/* WhatsApp e Instagram: dos botones iguales, uno al lado del otro */
.pie__redes { display: flex; gap: .6rem; width: 100%; }
.pie__redes > .boton { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; padding-left: .8em; padding-right: .8em; }
.pie__redes > .boton > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pie__redes > .boton[hidden] { display: none; }
.pie__legal { font-size: .88rem; color: var(--mb-agua); }
.pie__legal a { color: inherit; }

/* ---------- El tiempo en Solanas (arriba de los juegos) ---------- */
.clima { position: relative; margin-bottom: clamp(2.2rem, 6vw, 3.5rem); }
.clima[hidden] { display: none; }
.clima__cabeza { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .8rem; }
.clima__titulo { margin: 0; font-family: var(--mb-font-titulo); font-weight: 400; font-size: clamp(2rem, 7vw, 2.6rem); color: var(--mb-blanco); line-height: 1.05; }
.clima__ahora { margin: 0; color: var(--mb-espuma); font-size: .95rem; }
.clima__ahora b { color: var(--mb-sol); font-size: 1.15rem; }
.clima__dias { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.clima__dias > li { display: flex; }
.clima__dia {
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem;
  padding: .9rem .6rem .7rem; border-radius: var(--mb-radio); cursor: pointer;
  font: inherit; color: inherit; background: rgba(11, 39, 66, .28); border: 1px solid rgba(203, 228, 238, .22);
  transition: background-color .15s, border-color .15s, transform .15s;
}
.clima__dia:hover, .clima__dia[aria-expanded="true"] { background: rgba(11, 39, 66, .45); border-color: var(--mb-sol); transform: translateY(-2px); }
.clima__dias > li:first-child .clima__dia { background: rgba(255, 194, 61, .16); border-color: rgba(255, 194, 61, .45); }
.clima__dia > span { display: block; }
.clima__nombre { font-weight: 800; color: var(--mb-blanco); }
.clima__ico { font-size: 2.2rem; line-height: 1.15; }
.clima__estado { font-size: .9rem; color: var(--mb-espuma); }
.clima__temp { font-family: var(--mb-font-titulo); font-size: 1.9rem; line-height: 1; color: var(--mb-blanco); }
.clima__temp b { font-weight: 400; color: var(--mb-sol); }
.clima__temp > span { font-size: 1.4rem; color: var(--mb-agua); }
.clima__datos { margin-top: .35rem; font-size: .82rem; line-height: 1.5; color: var(--mb-espuma); }
.clima__datos > span { display: block; }
.clima__mas { margin-top: .35rem; font-size: .78rem; font-weight: 800; color: var(--mb-sol); text-decoration: underline; text-underline-offset: 3px; }
.clima__fuente { margin: .6rem 0 0; font-size: .78rem; color: var(--mb-agua); text-align: right; }
.clima__fuente a { color: inherit; }

/* el detalle de un día */
.clima__pop {
  --flecha: 50%;
  position: absolute; z-index: 30; max-width: 100%;
  padding: .9rem 1rem 1rem; border-radius: var(--mb-radio);
  background: var(--mb-blanco); color: var(--mb-abismo); box-shadow: 0 14px 40px rgba(11, 39, 66, .4);
  animation: clima-pop .16s ease-out;
}
.clima__pop::before {
  content: ""; position: absolute; top: -8px; left: calc(var(--flecha) - 9px);
  border: 9px solid transparent; border-top: 0; border-bottom-color: var(--mb-blanco);
}
@keyframes clima-pop { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .clima__pop { animation: none; } .clima__dia { transition: none; } }
.clima__pop-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.clima__pop h3 { margin: 0; font-family: var(--mb-font-titulo); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--mb-azul); }
.clima__pop h3 small { display: block; font-family: var(--mb-font); font-size: .82rem; font-weight: 700; color: var(--mb-oceano); margin-top: .2rem; }
.clima__cerrar {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--mb-bruma); color: var(--mb-abismo); font-size: 1.3rem; line-height: 1;
}
.clima__cerrar:hover { background: var(--mb-espuma); }
.clima__pop-estado { margin: .5rem 0 .6rem; font-size: .95rem; }
.clima__pop-estado b { color: var(--mb-coral-osc); }
.clima__horas { list-style: none; margin: 0 0 .7rem; padding: .5rem .3rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .2rem; border-radius: 10px; background: var(--mb-bruma); }
.clima__horas li { display: flex; flex-direction: column; align-items: center; gap: .05rem; font-size: .8rem; }
.clima__h { font-weight: 800; color: var(--mb-oceano); }
.clima__hico { font-size: 1.3rem; line-height: 1.2; }
.clima__horas b { font-size: .95rem; }
.clima__horas small { color: var(--mb-oceano); min-height: 1.1em; font-size: .72rem; }
.clima__det { margin: 0; display: grid; gap: .3rem; font-size: .9rem; }
.clima__det > div { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px dashed var(--mb-espuma); padding-bottom: .25rem; }
.clima__det dt { font-weight: 800; }
.clima__det dd { margin: 0; text-align: right; }
.clima__consejo { margin: .6rem 0 0; font-weight: 700; font-size: .88rem; color: var(--mb-azul); }

@media (max-width: 640px) {
  .clima__dias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .pie { grid-template-columns: 1fr auto; align-items: center; }
  .pie > * { margin: 0; }
  .pie__legal { grid-column: 1 / -1; }
  .pie { justify-content: center; }
}


/* =====================================================================
   404
   ===================================================================== */
.perdido {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #cfe5f1 0%, var(--mb-bruma) 60%);
}
.perdido__contenido {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem var(--lado) 1rem; gap: .8rem;
}
.perdido__bicho { width: min(60vw, 260px); height: auto; animation: costado 3.2s ease-in-out infinite alternate; }
@keyframes costado {
  from { transform: translateX(-28px) rotate(-3deg); }
  to   { transform: translateX(28px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .perdido__bicho { animation: none; } }
.perdido__titulo { margin: 0; font-size: clamp(2.6rem, 11vw, 4.2rem); max-width: 14ch; }
.perdido__texto { max-width: 34ch; font-size: 1.1rem; }
.perdido .mar { margin: 0; }
.perdido__arena { height: 64px; }

/* Letra chica de la ruleta (antes era un style en línea) */
.ruleta-aviso__condiciones { font-size: .82rem; margin-top: .4em; color: var(--mb-espuma); }

/* Mapa: dibujo de respaldo debajo del iframe de Google (si tarda o no carga, no queda una caja vacía) */
.llegar__mapa { position: relative; }
.llegar__mapa iframe { position: absolute; inset: 0; }
.llegar__respaldo { position: absolute; inset: 0; display: block; }
.llegar__respaldo svg { width: 100%; height: 100%; display: block; }
.llegar__respaldo span {
  position: absolute; left: 50%; top: 62%; transform: translateX(-50%);
  background: var(--mb-blanco); color: var(--mb-abismo); font-weight: 800; font-size: .9rem;
  padding: .3em .8em; border-radius: 999px; box-shadow: var(--mb-sombra-chica); white-space: nowrap;
}

