:root{
  --ink:#1B2A41; --ink-2:#111C2C; --sand:#EDE6D6; --cotton:#FAF8F3;
  --ochre:#C97C2A; --ochre-dark:#B56A20; --cocoa:#3D2B1F; --sage:#8A9A8E;
  --line: rgba(27,42,65,0.12); --line-dark: rgba(250,248,243,0.16);
  --ink-soft: rgba(27,42,65,0.60);
  --r-lg:16px; --r-md:12px; --r-sm:8px;
  --shadow: 0 18px 40px -24px rgba(27,42,65,0.35);
  --maxw:1200px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{ background:var(--cotton); color:var(--ink); font-family:'Inter', sans-serif; line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} *{transition:none !important; animation:none !important;} }
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
h1,h2,h3,h4{font-family:'Fraunces', serif; font-weight:600; letter-spacing:-0.015em; line-height:1.12;}
.mono{font-family:'IBM Plex Mono', monospace;}
:focus-visible{outline:2px solid var(--ochre); outline-offset:3px;}

/* lang visibility */
[data-lang-es]{ display:none; }
body.lang-es [data-lang-en]{ display:none; }
body.lang-es [data-lang-es]{ display:revert; }

/* buttons */
.btn{ display:inline-block; font-family:'Inter',sans-serif; font-weight:600; font-size:0.95rem; padding:14px 28px; border-radius:40px; cursor:pointer; border:none; transition:background .18s, color .18s, transform .18s; }
.btn-primary{ background:var(--ochre); color:var(--cotton); box-shadow:0 10px 22px -10px rgba(201,124,42,0.6); }
.btn-primary:hover{ background:var(--ochre-dark); }
.btn-ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--line); }
.btn-ghost:hover{ border-color:var(--ochre); color:var(--ochre); }

/* eyebrow */
.eyebrow{ display:inline-flex; align-items:center; gap:10px; font-family:'IBM Plex Mono',monospace; font-size:0.74rem; color:var(--ochre); letter-spacing:0.02em; margin-bottom:18px; }
.eyebrow::before{ content:""; width:26px; height:1.5px; background:var(--ochre); display:inline-block; }

/* HEADER */
.site-header{ position:sticky; top:0; z-index:50; background:rgba(250,248,243,0.86); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand{ display:flex; align-items:center; gap:11px; }
.brand svg{ width:34px; height:34px; flex-shrink:0; }
.brand-word{ font-family:'Fraunces',serif; font-size:1.05rem; font-weight:700; line-height:1; }
.brand-word span{ display:block; font-family:'IBM Plex Mono',monospace; font-size:0.56rem; letter-spacing:0.22em; color:var(--ochre); margin-top:3px; }
.nav{ display:none; align-items:center; gap:32px; }
@media (min-width:980px){ .nav{ display:flex; } }
.nav a{ font-size:0.92rem; color:var(--ink); position:relative; padding:4px 0; }
.nav a::after{ content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:var(--ochre); transition:width .2s; }
.nav a:hover::after, .nav a.active::after{ width:100%; }
.header-cta{ display:flex; align-items:center; gap:14px; }
.header-lang{ display:flex; align-items:center; gap:7px; font-family:'IBM Plex Mono',monospace; font-size:0.8rem; }
.header-lang button{ background:none; border:none; cursor:pointer; color:var(--ink-soft); font-family:inherit; font-size:inherit; padding:2px; display:inline-flex; align-items:center; gap:5px; }
.header-lang button.active{ color:var(--ochre); font-weight:600; }
.header-lang .flag{ width:19px; height:13px; border-radius:2px; display:inline-block; vertical-align:middle; box-shadow:0 0 0 1px rgba(0,0,0,0.08); }
.header-lang span.sep{ color:var(--line); }
.header-cta .btn{ display:none; }
@media (min-width:560px){ .header-cta .btn{ display:inline-block; padding:10px 20px; font-size:0.86rem; } }
.menu-toggle{ display:inline-flex; background:none; border:none; cursor:pointer; padding:6px; }
@media (min-width:980px){ .menu-toggle{ display:none; } }
.menu-toggle svg{ width:24px; height:24px; }
.mobile-nav{ display:none; flex-direction:column; padding:12px 28px 20px; border-bottom:1px solid var(--line); background:var(--cotton); }
.mobile-nav.open{ display:flex; }
.mobile-nav a{ padding:12px 0; border-bottom:1px solid var(--line); font-size:1rem; }
.mobile-nav a:last-of-type{ border-bottom:none; }

/* SECTIONS */
section{ position:relative; }
.section-pad{ padding:88px 0; }
@media (max-width:700px){ .section-pad{ padding:60px 0; } }
.section-head{ max-width:680px; margin-bottom:52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(1.8rem,3.4vw,2.5rem); }
.section-head p{ color:var(--ink-soft); margin-top:16px; font-size:1.05rem; }
.edge-top{ clip-path:polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%); }
.edge-bottom{ clip-path:polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%); }

/* image placeholders */
.imgph{ position:relative; background:var(--sand); border-radius:var(--r-lg); overflow:hidden; display:flex; align-items:center; justify-content:center; color:var(--ink-soft); }
.imgph-note{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; text-align:center; padding:24px; }
.imgph-note svg{ width:30px; height:30px; opacity:0.5; }
.imgph-note span{ font-family:'IBM Plex Mono',monospace; font-size:0.74rem; max-width:30ch; line-height:1.5; opacity:0.7; }

/* STATS */
.stats{ background:var(--ink); color:var(--cotton); }
.stats-grid{ display:grid; grid-template-columns:1fr 1fr; gap:38px 24px; }
@media (min-width:820px){ .stats-grid{ grid-template-columns:repeat(4,1fr); } }
.stat .num{ font-family:'Fraunces',serif; font-size:clamp(2rem,3.6vw,2.8rem); font-weight:600; color:var(--cotton); line-height:1.05; }
.stat .num .u{ color:var(--ochre); }
.stat .lbl{ margin-top:12px; font-size:0.9rem; color:rgba(250,248,243,0.66); max-width:24ch; }

/* PROCESS ICON STEPS */
.proc-ribbon{ display:grid; grid-template-columns:1fr; gap:22px; }
@media (min-width:760px){ .proc-ribbon{ grid-template-columns:repeat(3,1fr); } }
.proc-step{ position:relative; background:var(--cotton); border:1px solid var(--line); border-radius:var(--r-lg); padding:30px 26px; }
.proc-step .pico{ width:52px; height:52px; border-radius:14px; background:rgba(201,124,42,0.12); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.proc-step .pico svg{ width:26px; height:26px; color:var(--ochre); }
.proc-step .pnum{ position:absolute; top:20px; right:24px; font-family:'Fraunces',serif; font-size:2.6rem; font-weight:600; line-height:1; color:var(--ochre); opacity:0.85; }
.inline-flag{ display:inline-flex; align-items:center; gap:6px; margin-top:12px; font-size:0.86rem; font-weight:600; color:var(--ink); background:var(--sand); padding:6px 12px; border-radius:20px; }
.inline-flag svg{ width:20px; height:14px; border-radius:2px; box-shadow:0 0 0 1px rgba(0,0,0,0.08); }
.proc-step h3{ font-size:1.15rem; margin-bottom:8px; }
.proc-step p{ color:var(--ink-soft); font-size:0.92rem; }

/* crosscut banner */
.crosscut{ margin-top:28px; display:flex; gap:16px; align-items:flex-start; background:var(--ink); color:var(--cotton); border-radius:var(--r-lg); padding:26px 30px; }
.crosscut svg{ width:30px; height:30px; color:var(--ochre); flex-shrink:0; margin-top:3px; }
.crosscut h4{ color:var(--cotton); font-size:1.08rem; }
.crosscut p{ color:rgba(250,248,243,0.72); font-size:0.92rem; margin-top:5px; max-width:70ch; }

/* FOOTER */
.site-footer{ background:var(--ink-2); color:rgba(250,248,243,0.72); padding:64px 0 30px; }
.footer-grid{ display:grid; grid-template-columns:1fr; gap:40px; }
@media (min-width:760px){ .footer-grid{ grid-template-columns:1.4fr 1fr 1fr; } }
.footer-brand .brand-word{ color:var(--cotton); }
.footer-brand p{ margin-top:18px; font-size:0.9rem; max-width:38ch; line-height:1.7; }
.footer-col h4{ font-family:'Inter',sans-serif; font-size:0.78rem; letter-spacing:0.1em; text-transform:uppercase; color:rgba(250,248,243,0.5); margin-bottom:16px; font-weight:600; }
.footer-col a, .footer-col p{ display:block; font-size:0.92rem; margin-bottom:10px; color:rgba(250,248,243,0.72); }
.footer-col a:hover{ color:var(--ochre); }
.footer-bottom{ border-top:1px solid var(--line-dark); margin-top:48px; padding-top:24px; display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size:0.82rem; color:rgba(250,248,243,0.5); }

/* sticky mobile CTA */
.sticky-cta{ position:fixed; left:0; right:0; bottom:0; z-index:60; background:var(--ink); padding:12px 16px; display:flex; justify-content:center; box-shadow:0 -4px 14px rgba(0,0,0,0.14); }
.sticky-cta .btn{ width:100%; max-width:420px; text-align:center; }
@media (min-width:980px){ .sticky-cta{ display:none; } }
body{ padding-bottom:66px; }
@media (min-width:980px){ body{ padding-bottom:0; } }
.inline-flag[data-lang-es]{ display:none; }
body.lang-es .inline-flag[data-lang-en]{ display:none; }
body.lang-es .inline-flag[data-lang-es]{ display:inline-flex; }
