:root {
  --tinta: #1B2620;
  --ocre: #D18A2E;
  --papel: #F5F4EF;
  --verde: #2F6B4F;

  --bg: var(--papel);
  --fg: var(--tinta);
  --suave: #5A655E;
  --linea: #D9D7CE;
  --panel: #FFFFFF;
  --acento: var(--verde);
  --boton: var(--ocre);
  --boton-fg: var(--tinta);
  --chat: #E7E4DA;
  --chat-bot: #FFFFFF;
  --logo-caja: var(--tinta);
  --logo-tranq: var(--ocre);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131B17;
    --fg: #ECEAE2;
    --suave: #A3ABA5;
    --linea: #2C3831;
    --panel: #1B2620;
    --acento: #7FB89A;
    --chat: #1B2620;
    --chat-bot: #24312A;
    --logo-caja: var(--papel);
    --logo-tranq: var(--tinta);
  }
}
:root[data-theme="dark"] {
  --bg: #131B17;
  --fg: #ECEAE2;
  --suave: #A3ABA5;
  --linea: #2C3831;
  --panel: #1B2620;
  --acento: #7FB89A;
  --chat: #1B2620;
  --chat-bot: #24312A;
  --logo-caja: var(--papel);
  --logo-tranq: var(--tinta);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--acento); }
.num, td.n, th.n { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--linea); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marca { display: block; line-height: 0; }
.logo { height: 34px; width: auto; }
/* Positivo sobre papel; negativo (caja papel, tranquera tinta) sobre fondo oscuro */
.logo-caja { fill: var(--logo-caja); }
.logo-tranq { stroke: var(--logo-tranq); }
.logo-nombre { fill: var(--fg); }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a { color: var(--fg); text-decoration: none; font-size: 15px; }
.top nav a.actual { color: var(--acento); font-weight: 600; }
.top nav .btn { padding: 8px 16px; font-size: 15px; }
.top nav a:hover { color: var(--acento); }

h1, h2, h3 { font-stretch: 125%; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
h1 { font-weight: 900; font-size: clamp(34px, 5.4vw, 56px); }
h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
h3 { font-weight: 800; font-size: 19px; margin-bottom: 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--suave); max-width: 34em; }

section { padding: 72px 0; border-bottom: 1px solid var(--linea); }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 6px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-pri { background: var(--boton); color: var(--boton-fg); }
.btn-pri:hover { filter: brightness(1.06); }
.btn-sec { border-color: var(--linea); color: var(--fg); background: transparent; }
.btn-sec:hover { border-color: var(--fg); }

/* Conversación de ejemplo */
.chat { background: var(--chat); border: 1px solid var(--linea); border-radius: 8px; padding: 18px; }
.chat .quien { font-size: 13px; color: var(--suave); margin-bottom: 4px; }
.msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.msg.yo { background: var(--verde); color: #F5F4EF; margin-left: 15%; }
.msg.bot { background: var(--chat-bot); border: 1px solid var(--linea); margin-right: 8%; }
.msg.bot .num { font-size: 14px; }
.chat .botones { display: flex; gap: 8px; margin: -6px 8% 0 0; }
.chat .botones span { flex: 1; text-align: center; padding: 8px; border: 1px solid var(--linea); background: var(--chat-bot); border-radius: 6px; font-size: 14px; color: var(--acento); font-weight: 600; }

.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 32px; }
.pasos p { color: var(--suave); font-size: 16px; }

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
th { font-weight: 700; font-size: 15px; }
td.n, th.n { text-align: right; white-space: nowrap; }
.tabla { overflow-x: auto; border: 1px solid var(--linea); border-radius: 6px; background: var(--panel); }
.tabla table tr:last-child td { border-bottom: 0; }
.nota { font-size: 15px; color: var(--suave); margin-top: 14px; }

.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

/* Formulario */
form { display: grid; gap: 14px; }
label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
input, select {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--fg);
  background: var(--panel); border: 1px solid var(--linea); border-radius: 6px;
}
input:focus, select:focus { outline: 2px solid var(--acento); outline-offset: 1px; border-color: transparent; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#estado-form { font-size: 16px; min-height: 1.6em; margin: 0; }
#estado-form.ok { color: var(--acento); font-weight: 600; }
#estado-form.error { color: #B5452F; }

.firma { font-weight: 700; margin-top: 18px; }
footer { padding: 32px 0 48px; color: var(--suave); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 820px) {
  .hero, .dos { grid-template-columns: 1fr; gap: 40px; }
  .pasos { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 52px 0; }
  .top nav { gap: 14px; }
}
@media (max-width: 480px) {
  .fila { grid-template-columns: 1fr; }
  .msg.yo { margin-left: 8%; }
  th, td { padding: 10px 8px; font-size: 15px; }
}

/* Planes */
.planes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.plan { background: var(--panel); border: 1px solid var(--linea); border-radius: 6px; padding: 24px; }
.plan h2 { margin-bottom: 4px; }
.plan .desde { font-size: 15px; color: var(--suave); margin-bottom: 14px; }
.plan .desde .num { font-size: 22px; color: var(--fg); font-weight: 500; }
.plan p { font-size: 16px; color: var(--suave); }
td.c, th.c { text-align: center; }
td.no { color: var(--suave); }
@media (max-width: 820px) {
  .planes { grid-template-columns: 1fr; }
}

/* Botón flotante de WhatsApp: por ahora abre el WhatsApp de Nicolás; cuando haya número propio, el del bot */
.wa-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  background: var(--verde); color: #F5F4EF; border-radius: 50%; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.wa-flotante:hover { filter: brightness(1.1); }

/* Portada más sobria: planilla en lugar de burbujas de chat */
h1 { font-weight: 800; font-size: clamp(32px, 4.6vw, 50px); }
.antetitulo { font-size: 15px; color: var(--acento); font-weight: 600; margin-bottom: 14px; }
.planilla { margin: 0; background: var(--panel); border: 1px solid var(--linea); border-radius: 6px; padding: 18px 18px 12px; }
.planilla figcaption { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.planilla table { font-size: 15px; }
.planilla td.n, .planilla th.n { padding-left: 8px; }
.planilla tbody tr:last-child td { border-bottom: 0; }
.pie-planilla { font-size: 13px; color: var(--suave); margin: 8px 0 0; }
.mensaje-ejemplo { border-left: 3px solid var(--ocre); padding: 4px 0 4px 20px; }
.mensaje-ejemplo .de { font-size: 13px; color: var(--suave); margin: 0 0 4px; }
.mensaje-ejemplo .texto { font-size: 16px; margin: 0 0 18px; }
.mensaje-ejemplo pre.texto { font-size: 14px; white-space: pre-wrap; line-height: 1.6; }
.consentimiento { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--suave); }
.consentimiento input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--verde); }

/* Páginas de texto legal */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal li { margin-bottom: 6px; }
.aviso-borrador { border: 1px solid var(--ocre); border-radius: 6px; padding: 12px 14px; font-size: 15px; }
/* Que ninguna columna empuje el ancho de la página en el celular */
.hero > *, .dos > * { min-width: 0; }
.planilla { overflow-x: auto; }
.mensaje-ejemplo { align-self: start; }
@media (max-width: 480px) {
  .planilla { padding: 14px 12px 10px; }
  .planilla table { font-size: 14px; }
  .planilla th, .planilla td { padding: 9px 6px; }
}

/* ---------- Rediseño 2026-11: más aire, jerarquía y llamadas claras ---------- */
.wrap { max-width: 1120px; padding: 0 20px; }
.angosto { max-width: 780px; }
body { font-size: 17px; }
section { padding: 96px 0; }
h1 { font-weight: 800; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; letter-spacing: -0.015em; }
.antetitulo { font-size: 14px; font-weight: 700; color: var(--ocre); margin-bottom: 14px; letter-spacing: 0; }
.btn-grande { padding: 15px 26px; font-size: 16px; }
.btn { border-radius: 8px; transition: transform .12s ease, filter .12s ease, border-color .12s ease; }
.btn-pri:hover { transform: translateY(-1px); }

/* Encabezado fijo con la reserva siempre a mano */
header.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
header.top .wrap { height: 68px; }
.top nav { gap: 22px; }
.top nav .btn-pri { padding: 8px 16px; font-size: 15px; color: var(--tinta); }

/* Portada */
.portada { padding: 72px 0 96px; }
.hero { grid-template-columns: 1.05fr 1fr; gap: 64px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: 19px; line-height: 1.6; max-width: 32em; }
.garantia { margin-top: 18px; font-size: 15px; color: var(--suave); }

/* Captura del panel */
.ventana { margin: 0; border: 1px solid var(--linea); border-radius: 12px; background: var(--panel); overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(27, 38, 32, .35), 0 2px 6px rgba(27, 38, 32, .06); }
.ventana-barra { padding: 10px 16px; border-bottom: 1px solid var(--linea); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--suave); background: color-mix(in srgb, var(--panel) 92%, var(--fg)); }
.ventana-cuerpo { padding: 20px 20px 8px; }
.ventana-finca { font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.ventana-cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ventana-cifras div { border: 1px solid var(--linea); border-radius: 8px; padding: 12px 14px; }
.ventana-cifras span { display: block; font-size: 13px; color: var(--suave); }
.ventana-cifras b { font-size: 22px; font-weight: 500; }
.ventana table { font-size: 15px; }
.ventana tbody tr:last-child td { border-bottom: 0; }
.ventana figcaption { padding: 10px 20px 14px; font-size: 13px; color: var(--suave); }

/* Ejemplo de mensaje */
.mensaje-ejemplo { background: var(--panel); border: 1px solid var(--linea); border-left: 3px solid var(--ocre); border-radius: 10px; padding: 22px 24px; }
.botones-ejemplo { display: flex; gap: 8px; margin-top: -4px; }
.botones-ejemplo span { flex: 1; text-align: center; padding: 9px; border: 1px solid var(--linea); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--acento); }

/* Banda de precio */
.banda-precio { background: var(--tinta); color: var(--papel); border-bottom: 0; }
.banda-precio .antetitulo { color: var(--ocre); }
.banda-precio p { color: #C9CEC9; max-width: 34em; }
.banda-precio .btn-sec { color: var(--papel); border-color: #3A4A41; }
.banda-precio .btn-sec:hover { border-color: var(--papel); }
.banda { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.banda .acciones { margin-top: 0; }

/* Preguntas frecuentes */
details { border-bottom: 1px solid var(--linea); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--linea); margin-top: 8px; }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--suave); }
details[open] summary::after { content: "–"; }
details p { color: var(--suave); padding-right: 36px; margin-bottom: 18px; }

/* Reserva */
.seccion-reserva { border-bottom: 0; }
.seccion-reserva form { background: var(--panel); border: 1px solid var(--linea); border-radius: 12px; padding: 28px; box-shadow: 0 18px 40px -24px rgba(27, 38, 32, .3); }
.firma-bloque { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--linea); }
.firma-bloque h3 { margin-bottom: 10px; }
.seccion-reserva form .btn-pri { width: 100%; padding: 15px; font-size: 16px; }

@media (max-width: 900px) {
  .solo-ancho { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  section { padding: 64px 0; }
  .portada { padding: 40px 0 64px; }
}
@media (max-width: 480px) {
  .acciones .btn-grande { width: 100%; text-align: center; }
  .ventana-cifras b { font-size: 18px; }
  .seccion-reserva form { padding: 20px; }
}
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }
@media (max-width: 480px) {
  .logo { height: 28px; }
  .top nav { gap: 8px; }
  .top nav .btn { padding: 7px 12px; font-size: 14px; }
}

/* Títulos con serifa (Fraunces); el logo y los textos siguen en Archivo */
h1, h2, h3, summary, .ventana-finca {
  font-family: "Fraunces", Georgia, serif;
  font-stretch: normal;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}
h1 { font-weight: 600; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; }
h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-weight: 600; font-size: 21px; }
summary { font-weight: 600; font-size: 19px; }
.ventana-finca { font-weight: 600; font-size: 16px; }
.plan h2 { font-size: 30px; }

/* ---------- Cumplimiento: pie, aviso de cookies, accesibilidad, formularios de pedidos ---------- */
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ocre); color: var(--tinta); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ocre); outline-offset: 2px; border-radius: 4px;
}
.pie { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.pie p { margin: 0 0 6px; }
.pie-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.boton-arrepentimiento { font-weight: 700; }
.aviso-cookies { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 460px; background: var(--panel); border: 1px solid var(--linea); border-radius: 12px; padding: 16px 18px; box-shadow: 0 18px 40px -20px rgba(0,0,0,.4); display: flex; gap: 14px; align-items: flex-end; }
.aviso-cookies[hidden] { display: none; }
.aviso-cookies p { font-size: 14px; color: var(--suave); margin: 0; }
.aviso-cookies .btn { flex: none; padding: 8px 14px; font-size: 14px; }
.tarjeta-solicitud { background: var(--panel); border: 1px solid var(--linea); border-radius: 12px; padding: 24px; margin: 28px 0 8px; display: grid; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 700; margin-bottom: 8px; }
.opcion { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 8px; cursor: pointer; margin: 0; }
.opcion input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--verde); }
textarea { width: 100%; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--fg); background: var(--panel); border: 1px solid var(--linea); border-radius: 6px; resize: vertical; }
#estado-solicitud.ok { color: var(--acento); font-weight: 600; }
#estado-solicitud.error { color: #B5452F; }
.etiqueta-prox { display: inline-block; font-size: 13px; padding: 2px 8px; border: 1px solid var(--linea); border-radius: 999px; color: var(--suave); white-space: nowrap; }
@media (max-width: 600px) {
  .aviso-cookies { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; }
  .wa-flotante { bottom: 20px; }
}
