:root {
  --marino: #0b2f5b;
  --marino-hondo: #072244;
  --agua: #2f8fca;
  --cielo: #e6f1f9;
  --oro: #f0b429;
  --lino: #fbfcfd;
  --tinta: #0a1f38;
  --gris: #51647a;
  --linea: #cfdde9;
  --whats: #128c4a;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 126px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--lino);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

.ancho { width: min(1180px, 100% - 40px); margin-inline: auto; }
.ancho--angosto { width: min(760px, 100% - 40px); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--oro); padding: 10px 14px; z-index: 50; }
.saltar:focus { left: 8px; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.boton--oro { background: var(--oro); color: var(--marino-hondo); }
.boton--oro:hover { background: #ffc94a; }
.boton--linea { border-color: rgba(255,255,255,.55); color: #fff; }
.boton--linea:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.boton--whats { background: var(--whats); color: #fff; width: 100%; min-height: 54px; font-size: 17px; }
.boton--whats:hover { background: #0e7a40; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--linea); }
.cabecera__fila { display: flex; align-items: center; gap: 28px; height: 108px; }
.marca img { display: block; width: 132px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--marino); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--oro); }

/* Portada */
.portada { background: linear-gradient(180deg, var(--cielo) 0%, var(--lino) 78%); padding: 56px 0 72px; }
.portada__rejilla { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: start; }
.portada h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); color: var(--marino); }
.portada__bajada { margin-top: 22px; font-size: 1.15rem; color: var(--gris); max-width: 34em; }
.portada__puntos { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; font-weight: 500; }
.portada__puntos li { padding-left: 30px; position: relative; }
.portada__puntos li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 10px;
  border-left: 3px solid var(--agua); border-bottom: 3px solid var(--agua);
  transform: rotate(-45deg) scale(.8); transform-origin: left bottom;
  left: 6px; top: .1em;
}
.portada__foto { margin: 36px 0 0; border-radius: 18px; overflow: hidden; }
.portada__foto img { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; }

/* Nota de pedido: borde punteado como la costura de una toalla */
/* El texto acompaña mientras se llena el pedido, que es más alto. */
.portada__texto { position: sticky; top: 128px; }
.nota {
  position: relative;
  background: #fff; border-radius: 20px; padding: 26px 26px 22px;
  box-shadow: 0 24px 50px -28px rgba(11,47,91,.45), 0 0 0 1px var(--linea);
  outline: 2px dashed var(--agua); outline-offset: -9px;
}
.nota__encabezado h2 { font-size: 1.75rem; color: var(--marino); }
.nota__encabezado p { margin-top: 6px; color: var(--gris); font-size: .95rem; }
.nota__bloque { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.nota legend { font-weight: 600; font-size: .9rem; color: var(--gris); padding: 0; margin-bottom: 4px; }
.nota legend span { font-weight: 400; }
.renglon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.renglon__nombre { display: grid; }
.renglon__nombre span { font-size: .88rem; color: var(--gris); }
.renglon--prenda { padding: 6px 0; }
.renglon--prenda strong { font-weight: 500; font-size: .96rem; }
.renglon--prenda .contador button { width: 36px; height: 36px; font-size: 20px; }
.mas-prendas summary { cursor: pointer; padding: 12px 0 8px; font-weight: 600; font-size: .95rem; color: var(--marino); }
.contador { display: flex; align-items: center; gap: 4px; }
.contador button {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--marino); background: #fff;
  font: 500 22px/1 var(--sans); color: var(--marino); cursor: pointer;
}
.contador button:hover { background: var(--marino); color: #fff; }
.contador output { min-width: 34px; text-align: center; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; }
.extras legend { width: 100%; }
.extras label {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--linea);
  border-radius: 999px; font-size: .93rem; cursor: pointer;
}
.extras label:has(input:checked) { border-color: var(--marino); background: var(--cielo); }
.extras input { accent-color: var(--marino); width: 16px; height: 16px; margin: 0; }
.total { margin-top: 18px; background: var(--marino); color: #fff; border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; }
.total div { display: grid; }
.total span { font-size: .85rem; opacity: .8; }
.total strong { font: 400 1.7rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.total em { font-style: normal; font-weight: 600; font-size: .92rem; color: var(--oro); margin-top: 4px; }
.total p { font-size: .8rem; opacity: .78; margin-top: 4px; }
.mensual { margin-top: 10px; background: var(--cielo); border-radius: 14px; padding: 0 16px; }
.mensual summary { cursor: pointer; padding: 13px 0; font-weight: 600; font-size: .95rem; color: var(--marino); }
.mensual p { color: var(--gris); font-size: .88rem; }
.mensual #mensual-nota { padding-bottom: 14px; }
.mensual .renglon { padding: 10px 0; }
.mensual__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0 14px; color: var(--marino); }
.mensual__total span { font-weight: 600; }
.mensual__total strong { font: 400 1.5rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campos label { display: grid; gap: 5px; font-size: .88rem; font-weight: 600; color: var(--gris); }
.campos label { min-width: 0; align-content: end; }
.campos input, .campos select {
  font: 400 16px var(--sans); color: var(--tinta); padding: 11px 12px; border: 1.5px solid var(--linea);
  border-radius: 10px; background: #fff; width: 100%; min-width: 0;
}
.campos input:focus, .campos select:focus { border-color: var(--marino); outline: none; box-shadow: 0 0 0 3px rgba(47,143,202,.3); }
.aviso { margin-top: 12px; color: #a3261c; font-size: .92rem; font-weight: 600; }
.nota .boton--whats { margin-top: 16px; }
.nota__pie { margin-top: 10px; text-align: center; font-size: .84rem; color: var(--gris); }

/* Secciones */
.seccion { padding: 88px 0; }
.seccion h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--marino); }
.seccion__bajada { margin-top: 14px; color: var(--gris); max-width: 40em; }
.seccion--suave { background: var(--cielo); }
.seccion--azul { background: var(--marino); color: #fff; }
.seccion--azul h2 { color: #fff; }

/* Temporada alta y reseñas */
.temporada { background: #fff; padding: 64px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.temporada__fila { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 72px; align-items: center; }
.temporada__texto { max-width: 620px; }
/* A la izquierda, para que el botón fijo de WhatsApp no tape los controles. */
.temporada__video { order: -1; display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: var(--marino-hondo); }
.temporada h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--marino); }
.temporada p { margin-top: 24px; color: var(--gris); padding-left: 24px; border-left: 3px solid var(--oro); }
.pie .pie__lema { font: 400 1.15rem var(--serif); color: var(--agua); margin-bottom: 8px; }

/* Condominios */
.condominios { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.condominios li { display: grid; }
.condominios li > * {
  display: block; overflow: hidden; background: #fff; border: 1.5px solid var(--linea); border-radius: 14px;
  text-decoration: none; transition: border-color .15s;
}
.condominios a:hover { border-color: var(--oro); }
.condominios img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.condominios span:not(.oculto) { display: block; padding: 14px 18px 16px; font-weight: 600; line-height: 1.3; color: var(--marino); overflow-wrap: anywhere; }

/* Tabla de paquetes */
.tabla-envoltura { margin-top: 36px; overflow-x: auto; }
.tabla { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabla thead th { text-align: center; font-weight: 600; padding: 0 12px 16px; vertical-align: bottom; color: var(--marino); }
.tabla thead b { display: block; font: 400 2.3rem/1.1 var(--serif); color: var(--agua); margin-top: 4px; }
.tabla tbody th { text-align: left; font-weight: 500; }
.tabla tbody th, .tabla td { padding: 14px 12px; border-top: 1px solid var(--linea); }
.tabla td { text-align: center; font-weight: 600; font-size: 1.1rem; }
.tabla tbody tr:last-child > * { border-bottom: 1px solid var(--linea); }
.prendas { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.prendas img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.prendas h3 { margin-top: 14px; font-size: 1.2rem; color: var(--marino); }
.prendas p { margin-top: 4px; color: var(--gris); font-size: .95rem; }
.ajustes { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 40px; align-items: center; }
.ajustes img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; }
.ajustes h3 { font-size: 1.6rem; color: var(--marino); }
.ajustes p { margin-top: 10px; color: var(--gris); }
.ajustes ul { margin: 14px 0 20px; padding-left: 20px; display: grid; gap: 6px; }
.enlace { font-weight: 600; color: var(--marino); text-underline-offset: 4px; text-decoration-color: var(--oro); text-decoration-thickness: 2px; }

/* Pasos */
.pasos { list-style: none; counter-reset: paso; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pasos li { counter-increment: paso; padding: 0 26px 0 0; position: relative; }
.pasos li + li { padding-left: 26px; border-left: 1px dashed rgba(255,255,255,.35); }
.pasos li::before { content: counter(paso); display: block; font: 400 3.4rem/1 var(--serif); color: var(--oro); margin-bottom: 14px; }
.pasos h3 { font-size: 1.35rem; }
.pasos p { margin-top: 8px; color: rgba(255,255,255,.82); font-size: .98rem; }

/* App y RFID */
.dupla { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.dupla img { border-radius: 16px; width: 100%; max-width: 420px; }
.dupla h3 { font-size: 1.5rem; color: var(--marino); margin-top: 22px; }
.dupla p { margin-top: 8px; color: var(--gris); max-width: 32em; }

/* Preguntas */
#preguntas details { border-bottom: 1px solid #b9cfe2; }
#preguntas details:first-of-type { margin-top: 28px; border-top: 1px solid #b9cfe2; }
#preguntas summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; color: var(--marino); }
#preguntas summary::-webkit-details-marker { display: none; }
#preguntas summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--sans); }
#preguntas details[open] summary::after { content: "−"; }
#preguntas details p { padding: 0 0 20px; color: var(--gris); max-width: 38em; }

/* Cierre y pie */
.cierre { background: var(--marino-hondo); color: #fff; padding: 72px 0; }
.cierre__fila { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cierre h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 18em; }
.cierre p { margin-top: 12px; color: rgba(255,255,255,.8); }
.cierre__acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.pie { background: #fff; padding: 56px 0 28px; border-top: 1px solid var(--linea); font-size: .96rem; }
.pie__rejilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.pie img { width: 130px; margin-bottom: 12px; }
.pie h2 { font: 700 .95rem var(--sans); letter-spacing: 0; color: var(--marino); margin-bottom: 10px; }
.pie p { color: var(--gris); max-width: 24em; }
.pie a { text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie__legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--linea); font-size: .85rem; }

/* WhatsApp siempre a mano; se oculta mientras el cotizador está a la vista */
/* 68px deja libre el aviso "Powered by Netlify" del plan gratuito (64px de alto). Sin el aviso: 24px, 12px en celular
   y padding-bottom de 76px en el body. */
.barra-movil { position: fixed; right: 24px; bottom: 68px; z-index: 30; }
.barra-movil .boton { box-shadow: 0 10px 28px -8px rgba(7,34,68,.6); }
.barra-movil .boton--oro { display: none; }
.barra-movil .boton--whats { width: auto; min-height: 52px; }
.barra-movil.oculta { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .cabecera__fila { justify-content: space-between; height: 88px; }
  .marca img { width: 106px; }
  html { scroll-padding-top: 100px; }
  .portada { padding: 36px 0 56px; }
  .portada__rejilla { grid-template-columns: 1fr; gap: 32px; }
  .portada__foto { margin-top: 28px; }
  .portada__texto { position: static; }
  .seccion { padding: 64px 0; }
  .pasos { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .pasos li:nth-child(3) { padding-left: 0; border-left: 0; }
  .dupla { gap: 28px; }
  .temporada__fila { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; }
  .prendas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 132px; }
  .cabecera .boton { display: none; }
  .nota { padding: 22px 18px 18px; outline-offset: -6px; }
  .campos { grid-template-columns: 1fr; }
  .total strong { font-size: 1.45rem; }
  .tabla { min-width: 0; }
  .tabla thead th { font-size: .78rem; padding: 0 4px 12px; line-height: 1.25; }
  .tabla thead b { font-size: 1.45rem; }
  .tabla tbody th, .tabla td { padding: 12px 4px; }
  .tabla tbody th { font-size: .95rem; }
  .prendas { gap: 20px 12px; }
  .ajustes { grid-template-columns: 1fr; gap: 24px; }
  .ajustes img { max-width: 240px; }
  .pasos { grid-template-columns: 1fr; gap: 28px; }
  .pasos li, .pasos li + li { padding: 0; border-left: 0; }
  .dupla { grid-template-columns: 1fr; }
  .cierre__acciones, .cierre__acciones .boton { width: 100%; }
  .pie__rejilla { grid-template-columns: 1fr; gap: 28px; }
  .temporada { padding: 48px 0; }
  .condominios { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .condominios span:not(.oculto) { padding: 10px 12px 12px; font-size: .95rem; }
  .temporada__fila { grid-template-columns: 1fr; gap: 32px; }
  .temporada__video { order: 0; max-width: 320px; margin-inline: auto; }
  .barra-movil { display: flex; gap: 8px; left: 12px; right: 12px; bottom: 68px; }
  .barra-movil .boton { padding: 0 16px; min-height: 52px; font-size: 16px; }
  .barra-movil .boton--oro { display: inline-flex; flex: 1; }
  .barra-movil.oculta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton, .condominios li > * { transition: none; }
}

/* Aviso de privacidad */
.legal h1 { margin-top: 24px; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--marino); }
.seccion .legal h2 { margin: 32px 0 8px; font-size: 1.3rem; }
