/* Tokens de marca de Green Horizon. Los usan la web y los brochures. */
@font-face { font-family: "Lora"; src: url("/fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  /* Color */
  --bosque: #16331f;        /* verde bosque: texto fuerte, fondos oscuros, botones */
  --bosque-2: #24502f;      /* hover y superficies oscuras secundarias */
  --lima: #7dd958;          /* verde del logo: acentos sobre fondo oscuro, horizonte */
  --lima-tinta: #2f6f22;    /* versión legible del lima sobre blanco (enlaces) */
  --niebla: #eef2ea;        /* fondo claro de secciones, gris verdoso frío */
  --papel: #ffffff;
  --tinta: #17201a;         /* texto principal */
  --tinta-suave: #4b584e;   /* texto secundario */
  --linea: #d3dccf;         /* bordes y separadores */
  --mango: #b23a6e;         /* acento puntual: temporadas */

  /* Tipografía */
  --serif: "Lora", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Green Horizon. Los tokens de color y tipografía están en packages/brand/tokens.css. */

:root {
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --radius: 6px;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem);
  --step-5: clamp(2.6rem, 1.4rem + 5vw, 5.25rem);
  --space-section: clamp(64px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--tinta);
  background: var(--papel);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; background: var(--ph, var(--niebla)); overflow: hidden; }
picture img { width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--bosque); margin: 0 0 0.5em; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-5); letter-spacing: -0.02em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; }
[role="list"] { list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 2px; }
.section-forest :focus-visible, .closing :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--papel); }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--tinta-suave); max-width: 38em; }
.prose { max-width: 36em; }
.muted { color: var(--tinta-suave); }
.small { font-size: var(--step--1); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--bosque); color: var(--papel); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ---------- Botones y enlaces ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: 0.5em 1.05em; font-size: 0.9375rem; }
.btn-primary { background: var(--bosque); color: var(--papel); }
.btn-primary:hover { background: var(--bosque-2); }
.btn-lima { background: var(--lima); color: var(--bosque); }
.btn-lima:hover { background: #95e275; }
.btn-secondary { background: transparent; color: var(--bosque); border-color: var(--bosque); }
.btn-secondary:hover { background: var(--bosque); color: var(--papel); }
.btn-ghost-light { background: transparent; color: var(--papel); border-color: rgb(255 255 255 / .7); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .12); border-color: var(--papel); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--lima-tinta); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.text-link:hover { color: var(--bosque); }

/* ---------- Horizonte: la línea que firma la marca ---------- */
.horizon-rule { height: 2px; background: var(--lima); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--papel); border-bottom: 1px solid var(--linea); transition: background-color .25s, border-color .25s; }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }
.brand-light { display: none; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav ul a { display: block; padding: 8px 10px; text-decoration: none; font-weight: 500; font-size: 0.9688rem; color: var(--tinta); border-radius: var(--radius); }
.site-nav ul a:hover { color: var(--lima-tinta); }
.site-nav ul a[aria-current="page"] { color: var(--bosque); box-shadow: inset 0 -2px 0 var(--lima); border-radius: 0; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--tinta-suave); padding: 8px 4px; }
.lang:hover { color: var(--bosque); }
.nav-toggle { display: none; }

.site-header.is-overlay { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; }
.site-header.is-overlay .brand-dark { display: none; }
.site-header.is-overlay .brand-light { display: block; }
.site-header.is-overlay .site-nav ul a, .site-header.is-overlay .lang { color: var(--papel); }
.site-header.is-overlay .header-cta { background: var(--lima); color: var(--bosque); }
.site-header.is-overlay.is-solid { background: var(--papel); border-color: var(--linea); }
.site-header.is-overlay.is-solid .brand-dark { display: block; }
.site-header.is-overlay.is-solid .brand-light { display: none; }
.site-header.is-overlay.is-solid .site-nav ul a { color: var(--tinta); }
.site-header.is-overlay.is-solid .lang { color: var(--tinta-suave); }
.site-header.is-overlay.is-solid .header-cta { background: var(--bosque); color: var(--papel); }

@media (max-width: 1080px) {
  .header-cta span { display: none; }
  .header-cta { padding-inline: 0.8em; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 42px; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    background: transparent; border: 1.5px solid currentColor; border-radius: 999px; color: var(--bosque); font: 600 0.9375rem var(--sans); cursor: pointer;
  }
  .nav-toggle span { display: inline-flex; align-items: center; gap: 6px; }
  .nav-toggle-close { display: none !important; }
  .nav-open .nav-toggle-open { display: none !important; }
  .nav-open .nav-toggle-close { display: inline-flex !important; }
  .site-header.is-overlay:not(.is-solid) .nav-toggle { color: var(--papel); }
  .site-nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--papel); flex-direction: column; align-items: stretch;
    gap: 8px; padding: 24px var(--gutter) 40px; overflow-y: auto; border-top: 1px solid var(--linea);
  }
  .nav-open .site-nav { display: flex; }
  .nav-open.site-header.is-overlay { background: var(--papel); }
  .nav-open.site-header.is-overlay .brand-dark { display: block; }
  .nav-open.site-header.is-overlay .brand-light { display: none; }
  .nav-open.site-header.is-overlay .nav-toggle { color: var(--bosque); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a, .site-header.is-overlay .site-nav ul a { color: var(--tinta); font-family: var(--serif); font-size: 1.625rem; padding: 12px 0; border-bottom: 1px solid var(--linea); }
  .site-nav ul a[aria-current="page"] { box-shadow: none; color: var(--lima-tinta); }
  .site-header.is-overlay .lang { color: var(--tinta-suave); }
  .lang { padding: 16px 0; }
  .header-cta span { display: inline; }
  .header-cta, .site-header.is-overlay .header-cta { min-height: 52px; background: var(--bosque); color: var(--papel); }
}

/* ---------- Portada ---------- */
.hero { position: relative; min-height: max(620px, 100svh); display: flex; color: var(--papel); background: var(--bosque); isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(10 26 15 / .55) 0%, rgb(10 26 15 / .05) 22%, rgb(10 26 15 / .05) 38%, rgb(10 26 15 / .55) 62%, rgb(10 26 15 / .88) 100%);
}
.hero-inner { display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-title { color: var(--papel); font-size: var(--step-5); max-width: 13ch; margin: 0 0 clamp(20px, 2.6vw, 32px); font-weight: 500; }
/* El horizonte: atraviesa toda la pantalla y se dibuja una sola vez al cargar */
.hero-line {
  height: 2px; background: var(--lima); margin-inline: calc(50% - 50vw); width: 100vw;
  transform-origin: left center; animation: horizon 1.4s cubic-bezier(.2, .7, .2, 1) .2s both;
}
@keyframes horizon { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-below { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-top: clamp(20px, 2.6vw, 32px); }
.hero-lead { font-size: var(--step-1); line-height: 1.5; max-width: 34em; margin: 0; color: rgb(255 255 255 / .92); }
@media (prefers-reduced-motion: reduce) { .hero-line { animation: none; } }

/* ---------- Cifras (como el reflejo bajo el horizonte del logo) ---------- */
.stats { background: var(--bosque); color: var(--papel); padding-block: clamp(28px, 4vw, 44px); }
.stats-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; }
.stat dd { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--lima); font-variant-numeric: lining-nums; }
.stat dt { font-size: 0.9375rem; color: rgb(255 255 255 / .8); }
@media (max-width: 900px) { .stats-list { grid-template-columns: repeat(2, 1fr); } .stat:last-child { grid-column: 1 / -1; } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--space-section); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.section-mist { background: var(--niebla); }
.section-forest { background: var(--bosque); color: var(--papel); }
.section-forest h2, .section-forest h3 { color: var(--papel); }
.section-forest .lead { color: rgb(255 255 255 / .85); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--tinta-suave); font-size: var(--step-1); margin: 0; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.section-head-row h2 { margin: 0; }
.section-title-sm { font-size: var(--step-3); margin-bottom: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-center { align-items: center; }
.rounded-img { border-radius: var(--radius); aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro-quote { font-family: var(--serif); font-size: var(--step-2); line-height: 1.45; color: var(--tinta); max-width: 26em; }
.intro-img { aspect-ratio: 4 / 5; border-radius: var(--radius); }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .intro-img { aspect-ratio: 4 / 3; } }

/* Filas de producto */
.product-rows { list-style: none; border-top: 1px solid var(--linea); }
.product-row { border-bottom: 1px solid var(--linea); }
.product-row-link { display: grid; grid-template-columns: 200px 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding-block: 20px; text-decoration: none; color: inherit; }
.product-row-img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.product-row-img img { transition: transform .5s ease; }
.product-row-link:hover .product-row-img img { transform: scale(1.04); }
.product-row-text { display: flex; flex-direction: column; gap: 6px; }
.product-row-name { font-size: var(--step-3); margin: 0; }
.product-row-summary { color: var(--tinta); max-width: 40em; }
.product-row-items { color: var(--tinta-suave); font-size: var(--step--1); }
.product-row-more { font-weight: 600; color: var(--lima-tinta); text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.product-row-link:hover .product-row-name { color: var(--lima-tinta); }
@media (max-width: 720px) {
  .product-row-link { grid-template-columns: 112px 1fr; align-items: start; }
  .product-row-more { display: none; }
  .product-row-name { font-size: var(--step-2); }
  .product-row-items { display: none; }
}

/* Dos climas */
.climates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.climate { display: flex; flex-direction: column; }
.climate-img { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.climate-text { padding-top: 24px; border-top: 2px solid var(--lima); margin-top: 24px; }
.climate-mirador .climate-text { border-top-color: #9fb6c9; }
.climate-place { color: var(--tinta-suave); font-size: var(--step--1); font-weight: 500; }
.climate h3 { margin-bottom: 4px; }
@media (max-width: 760px) { .climates-grid { grid-template-columns: 1fr; } }

/* Por qué */
.why-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.why-list dt { font-family: var(--serif); font-size: var(--step-2); color: var(--lima); margin-bottom: 8px; }
.why-list dd { color: rgb(255 255 255 / .85); }
@media (max-width: 860px) { .why-grid, .why-list { grid-template-columns: 1fr; } }

/* Proceso (vista previa) */
.process-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; counter-reset: step; }
.process-preview li { counter-increment: step; }
.process-preview-img { aspect-ratio: 3 / 4; border-radius: var(--radius); margin-bottom: 16px; }
.process-preview h3 { font-size: var(--step-1); display: flex; gap: 10px; align-items: baseline; }
.process-preview h3::before { content: counter(step); font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--lima-tinta); }
.process-preview p { color: var(--tinta-suave); font-size: 0.9688rem; }
@media (max-width: 900px) { .process-preview { grid-template-columns: repeat(2, 1fr); } }

/* Clientes */
.clients-title { font-size: var(--step-2); text-align: center; }
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 64px; }
.client-logos img { max-height: 72px; width: auto; }

/* Brochures */
.brochure-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.brochure-cover { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--linea), 0 18px 40px -24px rgb(22 51 31 / .45); margin-bottom: 20px; background: var(--papel); }
.brochure-cover img { aspect-ratio: 612 / 792; width: 100%; object-fit: cover; transition: transform .4s ease; }
.brochure-cover:hover img { transform: translateY(-4px); }
.brochure-card h3 { font-size: var(--step-2); margin-bottom: 6px; }
.brochure-card p { color: var(--tinta-suave); }
.brochure-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (max-width: 860px) { .brochure-cards { grid-template-columns: 1fr; max-width: 420px; } }

/* Banda final */
.closing { background: var(--bosque); color: var(--papel); padding-block: clamp(72px, 10vw, 136px); }
.closing h2 { color: var(--papel); margin: 0 0 clamp(24px, 3vw, 36px); max-width: 18ch; }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-top: clamp(24px, 3vw, 36px); }
.closing-row p { margin: 0; font-size: var(--step-1); color: rgb(255 255 255 / .85); }

/* ---------- Páginas internas ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 88px); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: end; padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero-grid.no-image { grid-template-columns: 1fr; }
.page-hero h1 { font-size: var(--step-5); max-width: 14ch; }
.page-hero .lead { margin: 0; }
.page-hero-img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* Manifiesto */
.manifesto-inner { max-width: 44rem; }
.manifesto p { font-family: var(--serif); font-size: var(--step-2); line-height: 1.5; color: var(--tinta); }
.manifesto .manifesto-sign { font-style: italic; color: var(--lima-tinta); margin-top: 1.5em; }
.mission { display: grid; gap: 32px; }
.mission h3 { margin-bottom: 8px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; margin-top: 24px; }
.values div { border-top: 2px solid var(--lima); padding-top: 16px; }
.values dt { font-family: var(--serif); font-size: var(--step-1); color: var(--bosque); margin-bottom: 6px; font-weight: 500; }
.values dd { color: var(--tinta-suave); }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.team-list { margin-top: 24px; border-top: 1px solid var(--linea); }
.team-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.team-name { font-family: var(--serif); font-size: var(--step-1); color: var(--bosque); }
.team-role { color: var(--tinta-suave); }
.team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.team-photo { aspect-ratio: 2 / 3; border-radius: var(--radius); }
.team-photos .team-photo:nth-child(2) { margin-top: 48px; }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 16px; }
.place { border-top: 2px solid var(--lima); padding-top: 20px; }
.place p { margin: 0 0 4px; }
@media (max-width: 860px) { .team, .places { grid-template-columns: 1fr; } .team-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Fichas de producto */
.products { display: grid; gap: clamp(56px, 8vw, 112px); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.product.is-flipped .product-media { order: 2; }
.product-main { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.product-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.product-thumb { aspect-ratio: 1; border-radius: var(--radius); }
.product-info h2 { font-size: var(--step-4); }
.product-facts { display: grid; gap: 12px; margin: 24px 0 32px; border-top: 1px solid var(--linea); }
.product-facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding-top: 12px; }
.product-facts dt { font-weight: 600; color: var(--bosque); font-size: 0.9375rem; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product.is-flipped .product-media { order: 0; }
  .product-main { aspect-ratio: 4 / 3; }
  .product-facts div { grid-template-columns: 1fr; gap: 2px; }
}
.notes { max-width: 44rem; }
.notes p { font-family: var(--serif); font-size: var(--step-1); color: var(--bosque); margin: 0 0 0.6em; }
.notes p:first-child::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--mango); margin-right: 12px; vertical-align: 0.1em; }
.line-brochure { display: flex; justify-content: center; }

/* Pasos del proceso */
.steps { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.step { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(24px, 4vw, 48px); border-bottom: 1px solid var(--linea); }
.step-img { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.step-text { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: baseline; }
.step-num { font-family: var(--serif); font-size: var(--step-4); color: var(--lima-tinta); line-height: 1; grid-row: span 2; }
.step h2 { font-size: var(--step-3); margin-bottom: 8px; }
.step p { grid-column: 2; color: var(--tinta-suave); font-size: var(--step-1); max-width: 28em; }
@media (max-width: 760px) { .step { grid-template-columns: 1fr; } }

/* Compradores */
.how { list-style: none; counter-reset: how; margin: 24px 0 32px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 2.5em 1fr; padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: var(--step-1); }
.how li::before { content: counter(how); font-family: var(--serif); color: var(--lima-tinta); font-size: var(--step-2); line-height: 1.1; }
.stack { display: grid; gap: 40px; }
.season { background: var(--niebla); border-left: 4px solid var(--mango); padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0; }
.season p { margin: 0; }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 16px; height: 2px; background: var(--lima-tinta); }
.faq-wrap { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq details:first-child { border-top: 1px solid var(--linea); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-family: var(--serif); font-size: var(--step-1); color: var(--bosque); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--lima-tinta); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; margin: 0; color: var(--tinta-suave); max-width: 40em; }

/* Galería */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--papel); color: var(--tinta); font: 500 0.9375rem var(--sans); cursor: pointer; }
.filters button:hover { border-color: var(--bosque); }
.filters button[aria-pressed="true"] { background: var(--bosque); border-color: var(--bosque); color: var(--papel); }
.gallery { list-style: none; columns: 4 260px; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery img { transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgb(8 18 11 / .96); color: var(--papel); }
.lightbox[open] { display: grid; place-items: center; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgb(8 18 11 / .9); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lightbox-caption { padding: 12px 24px 24px; margin: 0; text-align: center; color: rgb(255 255 255 / .85); }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .5); background: rgb(0 0 0 / .3); color: var(--papel); display: grid; place-items: center; cursor: pointer; }
.lightbox-btn:hover { background: rgb(255 255 255 / .15); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-item { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--linea); }
.contact-item h2 { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--tinta-suave); margin-bottom: 6px; letter-spacing: 0; }
.contact-item p { margin: 0 0 6px; }
.big-link { font-family: var(--serif); font-size: var(--step-2); color: var(--bosque); text-decoration: none; overflow-wrap: anywhere; }
.big-link:hover { color: var(--lima-tinta); text-decoration: underline; }
.contact-item .btn { margin-top: 12px; }
.map { border-radius: var(--radius); background: var(--niebla); padding: 24px; display: grid; gap: 12px; justify-items: start; }
.map.is-loaded { padding: 0; overflow: hidden; }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }
.aerial { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.map-aerial { min-height: 420px; place-items: center; justify-items: center; background: var(--bosque) url("/img/palma-extensa-720.webp") center / cover; position: relative; }
.map-aerial::before { content: ""; position: absolute; inset: 0; background: rgb(10 26 15 / .45); border-radius: var(--radius); }
.map-aerial .btn { position: relative; }
.map-aerial.is-loaded::before { display: none; }
.map-aerial iframe { height: 460px; }
@media (max-width: 860px) { .aerial { grid-template-columns: 1fr; } .map-aerial { min-height: 300px; } }
.contact-form { background: var(--niebla); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: grid; gap: 18px; }
.contact-form h2 { font-size: var(--step-3); margin: 0 0 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--bosque); }
.optional { font-weight: 400; color: var(--tinta-suave); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #b9c6b5; border-radius: var(--radius);
  background: var(--papel); color: var(--tinta); font: 400 1rem/1.4 var(--sans);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bosque); box-shadow: 0 0 0 3px rgb(125 217 88 / .55); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { margin: 0; color: #b3261e; font-size: 0.875rem; font-weight: 500; }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field-check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--bosque); }
.field-check label { font-weight: 400; color: var(--tinta); }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 500; }
.form-notice { display: none; margin: 0; padding: 12px 16px; border-radius: var(--radius); background: var(--papel); font-weight: 500; }
.form-notice:target { display: block; }
.form-notice.is-success { color: var(--lima-tinta); }
.form-notice.is-error { color: #b3261e; }
.form-status.is-success { color: var(--lima-tinta); }
.form-status.is-error { color: #b3261e; }
.contact-form .btn { justify-self: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .contact-form .btn { justify-self: stretch; } }

/* Legal y 404 */
.legal { max-width: 46rem; }
.legal h2 { font-size: var(--step-2); margin-top: 1.6em; }
.not-found { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bosque); color: rgb(255 255 255 / .82); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 0.8fr 1.3fr; gap: 40px; padding-block: clamp(48px, 6vw, 80px); }
.footer-brand img { width: 150px; height: auto; margin-bottom: 20px; }
.footer-tagline { font-family: var(--serif); font-size: var(--step-1); color: var(--papel); max-width: 16em; }
.footer-title { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--lima); margin-bottom: 16px; letter-spacing: 0; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--papel); text-decoration: underline; }
.footer-contact { list-style: none; display: grid; gap: 12px; }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--lima); margin-top: 3px; }
.footer-base { border-top: 1px solid rgb(255 255 255 / .14); padding-block: 24px 96px; font-size: 0.875rem; }
.footer-base p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--lima); color: var(--bosque);
  font-weight: 600; text-decoration: none; box-shadow: 0 10px 28px -10px rgb(22 51 31 / .6);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { background: #95e275; }
.is-home .wa-float { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.is-home.past-hero .wa-float { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 0 15px; right: 16px; bottom: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media print {
  .site-header, .wa-float, .closing, .site-footer, .nav-toggle { display: none !important; }
}
