/* La Terraza Eventos — estilos (móvil primero) */

/* ---------- Fuentes ---------- */
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Marca ---------- */
:root {
  --azul-alberca: #0088CC;
  --naranja-mango: #FF8A1F;
  --azul-noche: #14305A;
  --crema-arena: #FFF7EA;
  --blanco: #FFFFFF;
  --amarillo-sol: #FFC52E;
  --turquesa: #00B2A9;
  --texto-suave: #4A5D7A;

  --respaldo: "Arial Rounded MT Bold", Arial, system-ui, sans-serif;
  --f-titulo: "Fredoka", var(--respaldo);
  --f-texto: "Nunito", var(--respaldo);

  --radio: 26px;
  --radio-sm: 16px;
  --alto-menu: 100px;
  --ancho: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-menu) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--crema-arena);
  color: var(--azul-noche);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--azul-noche); text-decoration-color: var(--azul-alberca); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--azul-alberca); }
:focus-visible { outline: 3px solid var(--azul-alberca); outline-offset: 3px; border-radius: 6px; }
.destacado { color: var(--azul-alberca); }
.suave { color: var(--texto-suave); }
.pequeno { font-size: .9rem; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--azul-noche); color: var(--blanco); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.saltar:focus { top: 12px; color: var(--blanco); }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 3px solid transparent;
  font-family: var(--f-titulo); font-weight: 600; font-size: 1.1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .15s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton-naranja { background: var(--naranja-mango); color: var(--azul-noche); }
.boton-naranja:hover { color: var(--azul-noche); background: #ff9a3d; }
.boton-contorno { background: transparent; border-color: var(--azul-alberca); color: var(--azul-noche); }
.boton-contorno:hover { background: var(--blanco); color: var(--azul-noche); }
.boton-claro { background: var(--blanco); color: var(--azul-noche); }
.boton-claro:hover { color: var(--azul-noche); }
.boton svg { width: 22px; height: 22px; flex: none; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.siguiente-paso { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky; top: 0; z-index: 50;
  background: var(--crema-arena);
  border-bottom: 2px solid rgba(20, 48, 90, .08);
}
.encabezado-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.encabezado-logo { display: block; flex: none; }
.encabezado-logo img { height: 44px; width: auto; }
.encabezado .boton { min-height: 42px; padding: 8px 16px; font-size: .98rem; }
.menu { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.menu::-webkit-scrollbar { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0 20px 8px; display: flex; gap: 6px; width: max-content; }
.menu a {
  display: block; padding: 6px 12px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.menu a:hover { background: var(--blanco); color: var(--azul-noche); }

@media (min-width: 900px) {
  :root { --alto-menu: 76px; }
  .encabezado-interior { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--ancho); min-height: 76px; margin: 0 auto; padding: 0 20px; }
  .encabezado-barra { height: 76px; padding: 0; display: contents; }
  .encabezado-logo img { height: 52px; }
  .menu { order: 2; margin-left: auto; overflow: visible; }
  .menu ul { padding: 0; }
  .encabezado .boton { order: 3; }
}

/* ---------- Secciones ---------- */
.seccion { position: relative; padding: 64px 0; overflow: hidden; }
.seccion-blanca { background: var(--blanco); }
.seccion-cabeza { max-width: 720px; margin-bottom: 32px; }
.seccion-cabeza p { color: var(--texto-suave); }
.ola { display: block; width: 120px; height: 16px; margin: 4px 0 18px; color: var(--azul-alberca); }
@media (min-width: 900px) { .seccion { padding: 96px 0; } }

/* Pelotas decorativas: siempre en esquinas, nunca encima del texto */
.pelotas { position: absolute; pointer-events: none; }
.pelotas span { position: absolute; border-radius: 50%; display: block; }
.p-amarillo { background: var(--amarillo-sol); }
.p-turquesa { background: var(--turquesa); }
.p-naranja { background: var(--naranja-mango); }
.p-azul { background: var(--azul-alberca); }
.pelotas-esquina { top: 14px; right: 14px; width: 80px; height: 40px; }
.pelotas-esquina span:nth-child(1) { width: 22px; height: 22px; right: 0; top: 0; }
.pelotas-esquina span:nth-child(2) { width: 14px; height: 14px; right: 30px; top: 6px; }
.pelotas-esquina span:nth-child(3) { width: 10px; height: 10px; right: 10px; top: 28px; }
.pelotas-esquina span:nth-child(4) { width: 8px; height: 8px; right: 52px; top: 2px; }
@media (min-width: 900px) {
  .pelotas-esquina { top: 32px; right: 40px; transform: scale(1.5); transform-origin: top right; }
}

/* ---------- Portada ---------- */
.portada { padding: 16px 0 56px; }
.portada-grid { display: grid; gap: 28px; }
.portada-foto { position: relative; margin: 0 4px; }
.portada-foto img { width: 100%; aspect-ratio: 1600 / 877; object-fit: cover; border-radius: var(--radio); }
.portada-foto .pelotas { inset: auto; }
.portada-foto .pf-1 { width: 34px; height: 34px; right: -6px; top: -12px; }
.portada-foto .pf-2 { width: 20px; height: 20px; right: 34px; top: -16px; }
.portada-foto .pf-3 { width: 26px; height: 26px; left: -10px; bottom: 22px; }
.portada-foto .pf-4 { width: 14px; height: 14px; left: -14px; bottom: 54px; }
.portada-foto .pf-5 { width: 12px; height: 12px; right: -14px; top: 30px; }
.portada-texto p.subtitulo { font-size: 1.15rem; color: var(--texto-suave); max-width: 34em; }
.pastillas { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pastillas li {
  background: var(--amarillo-sol); color: var(--azul-noche);
  border-radius: 999px; padding: 6px 16px; font-weight: 800; font-size: .95rem;
}
.pastillas li:nth-child(2) { background: var(--turquesa); }
.pastillas li:nth-child(3) { background: var(--blanco); }
@media (min-width: 900px) {
  .portada { padding: 48px 0 96px; }
  .portada-grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; }
  .portada-foto { order: 2; }
  .portada-foto img { aspect-ratio: 4 / 3.4; }
}

/* ---------- Paquetes ---------- */
.tarjetas-precio { display: grid; gap: 16px; }
.tarjeta {
  background: var(--blanco); border-radius: var(--radio); padding: 24px;
  border: 2px solid rgba(20, 48, 90, .06);
}
.tarjeta-precio h3 { display: flex; align-items: center; gap: 10px; }
.tarjeta-precio h3::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--bola, var(--amarillo-sol)); flex: none; }
.tarjeta-precio:nth-child(2) { --bola: var(--turquesa); }
.tarjeta-precio:nth-child(3) { --bola: var(--naranja-mango); }
.tarjeta-precio dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 10px; column-gap: 12px; }
.tarjeta-precio dt { color: var(--texto-suave); }
.tarjeta-precio dd { margin: 0; font-family: var(--f-titulo); font-weight: 600; font-size: 1.3rem; color: var(--azul-alberca); text-align: right; line-height: 1.3; }
.tabla-precios { display: none; }
@media (min-width: 900px) {
  .tarjetas-precio { display: none; }
  .tabla-precios { display: block; background: var(--blanco); border-radius: var(--radio); padding: 12px 24px; border: 2px solid rgba(20, 48, 90, .06); }
  .tabla-precios table { width: 100%; border-collapse: collapse; }
  .tabla-precios th, .tabla-precios td { padding: 16px 12px; text-align: left; border-bottom: 2px solid var(--crema-arena); }
  .tabla-precios tr:last-child th, .tabla-precios tr:last-child td { border-bottom: 0; }
  .tabla-precios thead th { font-family: var(--f-titulo); font-weight: 600; font-size: 1.1rem; }
  .tabla-precios td { font-family: var(--f-titulo); font-weight: 600; font-size: 1.35rem; color: var(--azul-alberca); }
  .tabla-precios tbody th { font-weight: 700; }
}
.extras { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.extras li { display: flex; gap: 10px; align-items: baseline; }
.extras li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--turquesa); flex: none; transform: translateY(-1px); }
.nota {
  display: inline-block; margin-top: 20px; background: var(--amarillo-sol); color: var(--azul-noche);
  border-radius: var(--radio-sm); padding: 10px 18px; font-weight: 800;
}

/* ---------- Incluye ---------- */
.lista-incluye { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lista-incluye li {
  display: flex; align-items: center; gap: 14px;
  background: var(--blanco); border-radius: var(--radio-sm); padding: 14px 18px;
  font-weight: 700; font-size: 1.08rem;
}
.lista-incluye li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--amarillo-sol); }
.lista-incluye li:nth-child(4n+2)::before { background: var(--turquesa); }
.lista-incluye li:nth-child(4n+3)::before { background: var(--naranja-mango); }
.lista-incluye li:nth-child(4n+4)::before { background: var(--azul-alberca); }
@media (min-width: 640px) { .lista-incluye { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .lista-incluye { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Galería ---------- */
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.galeria button {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radio-sm); overflow: hidden; aspect-ratio: 1 / 1;
}
.galeria button:first-child { grid-column: span 2; aspect-ratio: 16 / 10; border-radius: var(--radio); }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.galeria button:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
  .galeria { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .galeria button { border-radius: var(--radio); }
  .galeria button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .galeria { grid-auto-flow: dense; }
  .galeria button:nth-child(9), .galeria button:nth-child(10) { grid-column: span 2; aspect-ratio: auto; }
}
.visor {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%; color: var(--blanco);
}
.visor::backdrop { background: rgba(20, 48, 90, .92); }
.visor-interior { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 12px 24px; gap: 12px; }
.visor img { max-height: calc(100vh - 150px); width: auto; max-width: 100%; border-radius: var(--radio); }
.visor-pie { font-size: 1rem; text-align: center; max-width: 40em; margin: 0; }
.visor-boton {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blanco); color: var(--azul-noche); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; font-family: var(--f-titulo); font-weight: 700;
}
.visor-cerrar { top: 12px; right: 12px; }
.visor-anterior { left: 12px; top: 50%; transform: translateY(-50%); }
.visor-siguiente { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .visor-anterior, .visor-siguiente { top: auto; bottom: 16px; transform: none; }
  .visor-interior { padding-bottom: 80px; }
}

/* ---------- Reseñas ---------- */
.resenas { display: grid; gap: 16px; }
.resena { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.resena .estrellas { color: var(--azul-noche); letter-spacing: 2px; font-size: 1.05rem; }
.resena .estrellas span { color: var(--amarillo-sol); }
.resena blockquote { margin: 0; font-size: 1.1rem; }
.resena figcaption { font-weight: 800; margin-top: auto; }
.resena figcaption small { display: block; font-weight: 400; color: var(--texto-suave); }
@media (min-width: 800px) { .resenas { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Preguntas ---------- */
.preguntas { display: grid; gap: 10px; max-width: 820px; }
.preguntas details { background: var(--blanco); border-radius: var(--radio-sm); border: 2px solid rgba(20, 48, 90, .06); }
.preguntas summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative;
  font-family: var(--f-titulo); font-weight: 600; font-size: 1.12rem; border-radius: var(--radio-sm);
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--amarillo-sol); color: var(--azul-noche);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
}
.preguntas details[open] summary::after { content: "−"; background: var(--turquesa); }
.preguntas details p { padding: 0 20px 18px; margin: 0; }

/* ---------- Reglamento ---------- */
.reglas { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 820px; counter-reset: regla; }
.reglas li { display: flex; gap: 14px; align-items: flex-start; background: var(--blanco); border-radius: var(--radio-sm); padding: 14px 18px; counter-increment: regla; }
.reglas li::before {
  content: counter(regla); flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--amarillo-sol); color: var(--azul-noche); display: grid; place-items: center;
  font-family: var(--f-titulo); font-weight: 700;
}
.reglas li:nth-child(even)::before { background: var(--turquesa); }

/* ---------- Ubicación ---------- */
.ubicacion-grid { display: grid; gap: 24px; }
.direccion { font-style: normal; font-size: 1.15rem; margin-bottom: 12px; max-width: 26em; }
.mapa {
  position: relative; border-radius: var(--radio); overflow: hidden; background: var(--blanco);
  aspect-ratio: 4 / 3; display: grid; place-items: center; border: 2px solid rgba(20, 48, 90, .08);
}
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa-aviso { text-align: center; padding: 24px; display: grid; gap: 14px; justify-items: center; }
.mapa .pelotas { inset: 0; }
.mapa .pelotas span:nth-child(1) { width: 26px; height: 26px; left: 18px; top: 18px; }
.mapa .pelotas span:nth-child(2) { width: 14px; height: 14px; left: 52px; top: 22px; }
.mapa .pelotas span:nth-child(3) { width: 18px; height: 18px; right: 20px; bottom: 20px; }
@media (min-width: 900px) { .ubicacion-grid { grid-template-columns: 1fr 1.3fr; align-items: center; gap: 48px; } }

/* ---------- Cierre y pie ---------- */
.cierre { background: var(--azul-noche); color: var(--blanco); padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.cierre h2 { color: var(--blanco); max-width: 18em; margin: 0 auto 24px; }
.cierre .pelotas { inset: 0; }
.cierre .pelotas span:nth-child(1) { width: 30px; height: 30px; left: 18px; top: 18px; }
.cierre .pelotas span:nth-child(2) { width: 16px; height: 16px; left: 56px; top: 14px; }
.cierre .pelotas span:nth-child(3) { width: 12px; height: 12px; left: 26px; top: 56px; }
.cierre .pelotas span:nth-child(4) { width: 22px; height: 22px; right: 22px; bottom: 20px; }
.cierre .pelotas span:nth-child(5) { width: 12px; height: 12px; right: 56px; bottom: 16px; }

.pie { background: var(--azul-noche); color: var(--blanco); padding: 8px 0 110px; border-top: 2px solid rgba(255, 255, 255, .12); }
.pie a { color: var(--blanco); text-decoration-color: var(--amarillo-sol); }
.pie a:hover { color: var(--amarillo-sol); }
.pie :focus-visible { outline-color: var(--amarillo-sol); }
.pie-grid { display: grid; gap: 28px; padding-top: 40px; }
.pie-logo img { width: 200px; height: auto; }
.pie h2 { font-size: 1.15rem; color: var(--amarillo-sol); margin-bottom: .6em; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pie address { font-style: normal; }
.pie-aviso { margin-top: 36px; padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, .12); font-size: .95rem; }
.pie-aviso p { margin: 0 0 .4em; }
@media (min-width: 800px) { .pie-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--naranja-mango); color: var(--azul-noche);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(20, 48, 90, .2);
  transition: transform .15s ease;
}
.whatsapp-flotante:hover { transform: scale(1.06); color: var(--azul-noche); }
.whatsapp-flotante svg { width: 34px; height: 34px; }
@media (min-width: 900px) { .whatsapp-flotante { right: 28px; bottom: 28px; } }

/* ---------- Consulta ---------- */
.consulta { padding: 32px 0 80px; }
.consulta-grid { display: grid; gap: 28px; }
.formulario { background: var(--blanco); border-radius: var(--radio); padding: 24px 20px; display: grid; gap: 20px; border: 2px solid rgba(20, 48, 90, .06); }
.campo { display: grid; gap: 6px; }
.campo label, .campo legend { font-weight: 800; }
.campo .ayuda { color: var(--texto-suave); font-size: .95rem; margin: 0; }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; color: var(--azul-noche); background: var(--crema-arena);
  border: 2px solid rgba(20, 48, 90, .18); border-radius: 14px; padding: 12px 14px; min-height: 52px;
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 3px solid var(--azul-alberca); outline-offset: 1px; border-color: var(--azul-alberca); }
.campo [aria-invalid="true"] { border-color: #B3261E; }
.error { color: #B3261E; font-weight: 700; font-size: .95rem; margin: 0; }
.dia-semana { font-weight: 800; color: var(--azul-noche); margin: 0; min-height: 1.6em; }
fieldset.campo { border: 0; padding: 0; margin: 0; min-width: 0; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.opciones label { position: relative; }
.opciones input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opciones span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 999px;
  border: 2px solid rgba(20, 48, 90, .18); background: var(--crema-arena); font-weight: 700; cursor: pointer;
}
.opciones input:checked + span { background: var(--amarillo-sol); border-color: var(--amarillo-sol); }
.opciones input:focus-visible + span { outline: 3px solid var(--azul-alberca); outline-offset: 2px; }
.estimado {
  background: var(--crema-arena); border-radius: var(--radio-sm); padding: 18px 20px;
  border: 2px dashed rgba(0, 136, 204, .5);
}
.estimado-precio { font-family: var(--f-titulo); font-weight: 700; font-size: 2rem; color: var(--azul-alberca); margin: 0; line-height: 1.2; }
.estimado p { margin: 0; }
.formulario .boton { width: 100%; }
.consulta-lateral .tarjeta { display: grid; gap: 8px; }
.consulta-lateral ul { margin: 0; padding-left: 1.2em; }
@media (min-width: 900px) {
  .consulta { padding: 56px 0 96px; }
  .consulta-grid { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 48px; }
  .formulario { padding: 36px; }
}

/* ---------- 404 ---------- */
.no-encontrada { padding: 72px 0 120px; text-align: center; }
.no-encontrada .botones { justify-content: center; }
.no-encontrada .numero { font-family: var(--f-titulo); font-weight: 700; font-size: 6rem; line-height: 1; color: var(--azul-alberca); margin: 0 0 8px; }
