/* Sitio de venta para countries y barrios cerrados.
   Paleta: bosque profundo, arena y marfil, latón como acento. Fraunces (títulos) + Inter (texto), ambas OFL y locales.
   Sin estilos en línea: la CSP es style-src 'self'. */

@font-face {
  font-family: "Fraunces";
  src: url("../fuentes/fraunces-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fuentes/fraunces-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fuentes/fraunces-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fuentes/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bosque: #1e3329;
  --bosque-2: #29453a;
  --arena: #ebe7da;
  --marfil: #f5f2ea;
  --laton: #a8843f;          /* filetes y ornamentos */
  --laton-claro: #c9a86a;    /* texto y trazos sobre bosque */
  --laton-texto: #7a5c24;    /* texto sobre arena o marfil */
  --tinta: #1c2620;
  --gris: #535d55;
  --filete: #cdc6b1;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ancho: 72rem;
  --aire: clamp(5rem, 11vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--arena);
  color: var(--tinta);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "cv11", "ss01";
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--laton-texto); outline-offset: 3px; border-radius: 2px; }
.oculto { position: absolute; width: 0; height: 0; overflow: hidden; }
.ancho { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--marfil); color: var(--bosque); padding: .6rem 1rem;
}
.saltar:focus { top: 1rem; }
.barra :focus-visible, .portada :focus-visible, .seccion-bosque :focus-visible, .pie :focus-visible { outline-color: var(--laton-claro); }

/* ───────── Barra ───────── */
.barra {
  position: sticky; top: 0; z-index: 20;
  background: var(--bosque); color: var(--marfil);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.barra.bajando { border-bottom-color: rgba(201, 168, 106, .35); }
.barra-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.marca { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.marca-icono { width: 2.1rem; height: 2.1rem; color: var(--laton-claro); flex: none; }
.marca-texto { font-family: var(--serif); font-size: 1.2rem; line-height: 1.1; }
.marca-texto small { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .02em; opacity: .75; margin-top: .15rem; }
@media (max-width: 480px) { .barra .marca-texto { font-size: 1rem; } }

.menu { display: flex; align-items: center; gap: 1.75rem; font-size: .94rem; }
.menu a { text-decoration: none; opacity: .85; white-space: nowrap; }
.menu a:hover { opacity: 1; text-decoration: underline; }
.menu .menu-destacado {
  opacity: 1; border: 1px solid var(--laton-claro); color: var(--laton-claro);
  padding: .5rem 1rem; border-radius: 999px;
}
.menu .menu-destacado:hover { background: var(--laton-claro); color: var(--bosque); text-decoration: none; }
.menu-boton {
  display: none; font: inherit; font-size: .94rem; color: var(--marfil);
  background: none; border: 1px solid rgba(245, 242, 234, .4); border-radius: 999px; padding: .45rem 1rem; cursor: pointer;
}

@media (max-width: 1000px) {
  .menu-boton { display: block; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bosque); border-top: 1px solid rgba(201, 168, 106, .3);
    padding: .5rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
  }
  .menu.abierto { display: flex; }
  .menu a { padding: .85rem 0; border-bottom: 1px solid rgba(245, 242, 234, .1); }
  .menu .menu-destacado { margin-top: 1rem; text-align: center; border-bottom: 1px solid var(--laton-claro); }
}

/* ───────── Botones ───────── */
.acciones { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.5rem; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 1rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.boton svg { width: 1.2rem; height: 1.2rem; flex: none; }
.boton-laton { background: var(--laton-claro); color: var(--bosque); }
.boton-laton:hover { background: #d8bb83; }
.boton-linea-clara { border-color: rgba(245, 242, 234, .45); color: var(--marfil); }
.boton-linea-clara:hover { border-color: var(--marfil); }
.boton-bosque { background: var(--bosque); color: var(--marfil); }
.boton-bosque:hover { background: var(--bosque-2); }
.boton-linea { border-color: var(--bosque); color: var(--bosque); background: transparent; }
.boton-linea:hover { background: var(--bosque); color: var(--marfil); }
.boton-ancho { width: 100%; }

/* ───────── Portada ───────── */
.portada { background: var(--bosque); color: var(--marfil); padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4.5rem, 9vw, 8rem); overflow: hidden; }
.portada-grilla { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portada h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.015em;
  max-width: 13ch;
}
.portada .entrada { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34rem; margin-top: 1.75rem; color: rgba(245, 242, 234, .86); }
.portada-puntos { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .55rem; font-size: .98rem; }
.portada-puntos li { display: flex; gap: .8rem; align-items: baseline; }
.portada-puntos li::before { content: ""; flex: none; width: 1.4rem; height: 1px; background: var(--laton-claro); transform: translateY(-.3em); }

.portada-plano { margin: 0; }
.plano { width: 100%; height: auto; max-width: 34rem; margin-inline: auto; }
.plano .t { fill: none; stroke: var(--laton-claro); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.plano .fino { stroke-width: .8; opacity: .75; }
.plano .sendero { stroke-dasharray: .004 .012; stroke-width: 1.6; }
.plano .destacado { stroke: var(--marfil); stroke-width: 2; }
.plano .rotulo { fill: var(--marfil); font: 400 13px var(--serif); letter-spacing: .04em; }

/* El único movimiento automático del sitio: el plano se dibuja una vez al abrir. */
@media (prefers-reduced-motion: no-preference) {
  .plano .t:not(.sendero) { stroke-linecap: butt; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: trazar 1.6s cubic-bezier(.4, 0, .2, 1) forwards; }
  .plano .t.t1 { animation-delay: .1s; }
  .plano .t.t2 { animation-delay: .5s; }
  .plano .t.t3 { animation-delay: .8s; }
  .plano .t.t4 { animation-delay: 1.1s; animation-duration: 1.2s; }
  .plano .t.t5 { animation-delay: 1.5s; animation-duration: 1.1s; }
  .plano .t.t6 { animation-delay: 1.8s; animation-duration: 1s; }
  .plano .t.sendero, .plano .rotulo { opacity: 0; animation: asomar .8s ease forwards 2.4s; }
}
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes asomar { to { opacity: 1; } }

/* ───────── Secciones ───────── */
.seccion { padding-block: var(--aire); }
.seccion-marfil { background: var(--marfil); }
.seccion-bosque { background: var(--bosque); color: var(--marfil); }

.encabezado h2 {
  font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.12; letter-spacing: -.01em; max-width: 18ch;
}
.encabezado h2::before {
  content: ""; display: block; width: 3rem; height: 1px; background: var(--laton); margin-bottom: 1.75rem;
}
.encabezado p { color: var(--gris); max-width: 32rem; margin-top: 1.25rem; font-size: 1.08rem; }
.encabezado-ancho { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.encabezado-ancho h2 { max-width: 22ch; }

.dos-columnas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.dos-columnas > .encabezado { position: sticky; top: 7rem; }

.lista-resuelve { margin: 0; border-top: 1px solid var(--filete); }
.lista-resuelve > div {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem;
  padding-block: 1.9rem; border-bottom: 1px solid var(--filete);
}
.lista-resuelve dt { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.lista-resuelve dd { margin: 0; color: var(--gris); }

/* Viñetas de línea (cancha, quincho, tranquera) */
.vineta { width: 9rem; height: auto; margin-bottom: 1.75rem; }
.vineta path, .vineta rect, .vineta circle { fill: none; stroke: var(--laton); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.vineta .fino { stroke-width: .8; }

/* ───────── Preguntas ───────── */
.preguntas { border-top: 1px solid var(--filete); }
.preguntas details { border-bottom: 1px solid var(--filete); }
.preguntas summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  font: 400 1.2rem/1.35 var(--serif); padding-block: 1.5rem;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; font: 300 1.5rem/1 var(--serif); color: var(--laton-texto); flex: none; transition: transform .2s; }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { color: var(--gris); max-width: 38rem; padding-bottom: 1.6rem; }

/* ───────── Pie ───────── */
.pie { background: var(--bosque); color: rgba(245, 242, 234, .82); padding-block: 4rem 2rem; font-size: .94rem; }
.pie-grilla { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.pie .marca { color: var(--marfil); margin-bottom: 1rem; }
.pie nav { display: grid; gap: .5rem; align-content: start; }
.pie a { text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(201, 168, 106, .25); font-size: .82rem; opacity: .75; }

/* ───────── 404 ───────── */
.error { min-height: 100vh; display: grid; place-items: center; background: var(--bosque); color: var(--marfil); text-align: center; padding: 2rem 1rem; }
.error .vineta { margin: 0 auto 2rem; }
.error .vineta path, .error .vineta circle { stroke: var(--laton-claro); }
.error h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.error p { color: rgba(245, 242, 234, .82); }
.error .acciones { justify-content: center; }

/* ───────── Pantallas medianas y chicas ───────── */
@media (max-width: 960px) {
  .portada-grilla, .dos-columnas, .contacto-grilla { grid-template-columns: minmax(0, 1fr); }
  .dos-columnas > .encabezado { position: static; }
  .portada-plano { max-width: 26rem; width: 100%; margin-inline: auto; }
  .pie-grilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pie-grilla > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .lista-resuelve > div { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-block: 1.5rem; }
  .pie-grilla { grid-template-columns: minmax(0, 1fr); }
  .portada-plano { max-width: 19rem; }
}

/* ───────── Retoques del 23/11: imagen en la portada, tarjetas y ritmo ───────── */
.portada-plano { position: relative; }
.portada-celu {
  position: absolute; right: -.5rem; bottom: -2.5rem; z-index: 1;
  width: clamp(7.5rem, 13vw, 11rem); height: auto;
  border: 5px solid #0f1c16; border-radius: 1.3rem; background: var(--marfil);
  box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, .45);
}
.lista-resuelve { border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lista-resuelve > div {
  display: block; padding: 1.6rem 1.5rem; border: 1px solid var(--filete); border-top: 3px solid var(--laton);
  border-radius: 4px; background: var(--marfil);
}
.lista-resuelve > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lista-resuelve dt { margin-bottom: .6rem; }
.seccion-bosque .encabezado p { color: rgba(245, 242, 234, .8); }
.seccion-bosque .encabezado h2::before { background: var(--laton-claro); }
.seccion-bosque .lista-resuelve > div { background: var(--bosque-2); border-color: rgba(201, 168, 106, .25); border-top-color: var(--laton-claro); }
.seccion-bosque .lista-resuelve dd { color: rgba(245, 242, 234, .8); }
.pie nav { gap: 0; }
.pie nav a, .pie-legal a, .pie p a { display: inline-block; padding-block: .55rem; }
@media (min-width: 1001px) and (max-width: 1180px) { .menu { gap: 1.1rem; } .barra .marca-texto { font-size: 1.05rem; } }
@media (max-width: 700px) {
  .lista-resuelve { grid-template-columns: minmax(0, 1fr); }
  .portada-celu { right: -.25rem; bottom: -1.5rem; }
}

/* ───────── Beneficios, pasos y contacto (recorte del 23/11) ───────── */
.estado {
  display: inline-block; font-size: .85rem; color: var(--laton-texto);
  border: 1px solid var(--laton); border-radius: 999px; padding: .25rem .8rem; margin-bottom: 1rem;
}
.beneficios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3rem); }
.beneficio img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top;
  background: var(--arena); border: 1px solid var(--filete); border-radius: 4px; margin-bottom: 1.1rem;
}
/* Recortes legibles: sin forzar 16:9; las capturas altas (horarios, celular) van angostas y centradas. */
.beneficio img { aspect-ratio: auto; object-fit: contain; }
.beneficio img.alto { max-width: 17rem; margin-inline: auto; }
.beneficio img.celu { aspect-ratio: 9 / 14; object-fit: cover; object-position: top; max-width: 15rem; }
.beneficio h3 { font-size: 1.4rem; line-height: 1.25; margin-bottom: .5rem; }
.beneficio p { color: var(--gris); }
.beneficio p.estado { color: var(--laton-texto); }
.beneficio-proximo { border: 1px solid var(--laton); border-radius: 4px; padding: 1.5rem; align-self: start; }
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.pasos li {
  counter-increment: paso; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem;
  padding-block: 1.25rem; border-top: 1px solid rgba(201, 168, 106, .3);
}
.pasos li:last-child { border-bottom: 1px solid rgba(201, 168, 106, .3); }
.pasos li::before { content: counter(paso); grid-row: span 2; font: italic 400 2rem/1 var(--serif); color: var(--laton-claro); }
.pasos h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: .3rem; }
.pasos p { color: rgba(245, 242, 234, .82); }
.contacto-grilla { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.contacto { background: var(--arena); border: 1px solid var(--filete); padding: clamp(1.25rem, 4vw, 2.5rem); }
.contacto-o { text-align: center; color: var(--gris); font-size: .9rem; margin: 1.1rem 0; }
.pedido { display: grid; gap: .9rem; }
.pedido label { display: grid; gap: .35rem; font-size: .9rem; color: var(--gris); }
.pedido input {
  font: inherit; font-size: 1rem; color: var(--tinta); width: 100%; min-width: 0;
  background: var(--marfil); border: 1px solid var(--filete); border-radius: 4px; padding: .7rem .8rem;
}
.pedido input:focus { border-color: var(--laton); outline: 1px solid var(--laton); outline-offset: 0; }
.pedido-nota { font-size: .85rem; color: var(--gris); }
@media (max-width: 700px) {
  :root { --aire: 3rem; }
  .beneficios { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .encabezado-ancho { margin-bottom: 1.75rem; }
  .encabezado h2 { font-size: 1.75rem; }
  .encabezado h2::before { margin-bottom: 1rem; }
  .lista-resuelve > div { padding: 1.1rem; }
  .lista-resuelve dt { font-size: 1.15rem; margin-bottom: .3rem; }
  .preguntas summary { font-size: 1.1rem; padding-block: 1.1rem; }
  .pie { padding-block: 2.5rem 1.5rem; }
  .pie-legal { margin-top: 1.5rem; }
  .pie-grilla { gap: 1rem; }
  .pie-grilla > :first-child p { display: none; }
  .pie nav { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
  .beneficio img { margin-bottom: .8rem; }
  .beneficio h3 { font-size: 1.25rem; }
  .beneficio-proximo { padding: 1.1rem; }
  .contacto-grilla { gap: 1.25rem; }
  .contacto-grilla .encabezado p { margin-top: .6rem; }
  .pasos li { padding-block: .9rem; }
  .pedido-nota { display: none; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
