/* Base compartida: tokens, tipografía, cabecera, botones, formulario, WhatsApp, lightbox, pie */
:root {
  --ink: #15191a;
  --ink-2: #1d2224;
  --ink-3: #2a3133;
  --paper: #f5f4ef;
  --sand: #e8e6db;
  --green: #1a7d43;
  --green-hi: #3dbb74;
  --muted: #6a7275;
  --muted-on-dark: #a9b1b3;
  --wa: #25d366;
  --radius: 4px;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1180px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green-hi); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.on-dark { background: var(--ink); color: #eef0ef; }
.on-dark-2 { background: var(--ink-2); color: #eef0ef; }
.on-sand { background: var(--sand); }
.section { padding-block: clamp(64px, 9vw, 120px); }

/* Tipografía */
h1 { font-weight: 300; font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.12; letter-spacing: .015em; }
h2 { font-weight: 300; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: .02em; }
h3 { font-weight: 500; font-size: 1.05rem; line-height: 1.35; letter-spacing: .02em; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.7; max-width: 52ch; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }
.muted { color: var(--muted); }
.on-dark .muted, .on-dark-2 .muted { color: var(--muted-on-dark); }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .6em; font: 500 .95rem/1 var(--font); letter-spacing: .02em; text-decoration: none; padding: 1em 1.5em; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; min-height: 48px; }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-wa { background: var(--wa); color: #072b14; }
.btn-wa:hover { background: #3ee37f; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #146b38; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.on-sand .btn-ghost:hover, .on-paper .btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21,25,26,.94); backdrop-filter: blur(8px); color: #eef0ef; border-bottom: 1px solid var(--ink-3); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 128px; height: auto; }
.brand small { font-size: .78rem; color: var(--muted-on-dark); letter-spacing: .04em; border-left: 1px solid var(--ink-3); padding-left: 14px; line-height: 1.3; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: .92rem; letter-spacing: .02em; color: #d9dedf; padding-block: 8px; }
.nav a:hover { color: #fff; }
.nav .btn { padding: .75em 1.1em; min-height: 42px; font-size: .88rem; color: #072b14; }
.nav .btn:hover { color: #072b14; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink-3); color: #fff; width: 46px; height: 46px; border-radius: var(--radius); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; margin-inline: auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; left: 0; }
.menu-btn span::after { position: absolute; top: 6px; left: 0; }
@media (max-width: 900px) {
  .brand small { display: none; }
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--ink-3); display: none; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--ink-3); }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
}

/* Formulario */
.form-card { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); }
.form-card h3 { font-size: 1.25rem; font-weight: 400; margin-bottom: 6px; }
.form-card .hint { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .8em .9em; border: 1.5px solid #c9ccc4; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(61,187,116,.45); border-color: var(--green); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #0f6b36; font-weight: 500; }
.form-status.err { color: #a12a1f; font-weight: 500; }
.form-card .btn[disabled] { opacity: .65; cursor: progress; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin-block: 28px 32px; display: grid; gap: 18px; }
.contact-list dt { font-size: .82rem; color: var(--muted-on-dark); }
.contact-list dd { font-size: 1.08rem; }
.contact-list a { text-decoration-color: var(--green-hi); text-underline-offset: 4px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #072b14; text-decoration: none; padding: 14px 18px 14px 16px; border-radius: 999px; font-weight: 500; font-size: .92rem; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* Lightbox */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; font: inherit; text-align: left; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(10,12,12,.88); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox p { color: #e8ecec; text-align: center; margin-top: 12px; font-size: .95rem; }
.lightbox .close { position: absolute; right: 0; top: -52px; background: var(--paper); border: 0; border-radius: 50%; width: 42px; height: 42px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }

/* Pie */
.site-footer { background: #0f1213; color: var(--muted-on-dark); padding-block: 36px; font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.site-footer a { text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
