@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F3EFE4;
  --paper: #FAF7F0;
  --sand: #E8E2D4;
  --blush: #F0DDD0;
  --sage: #D7E6E0;
  --ink: #171613;
  --mute: #5A564E;
  --line: #D8D1C3;
  --forest: #1A5346;
  --forest-dark: #143F36;
  --dark: #141311;
  --alert: #8C3A2F;
  /* --fascia kept as alias to forest so leftover rules stay on-brand */
  --fascia: var(--forest);
  --fascia-dark: var(--forest-dark);
  --max: 1180px;
  --nav-h: 4.25rem;
  --sans: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--fascia); text-underline-offset: 0.16em; }
a:hover { color: var(--fascia-dark); }
:focus-visible { outline: 2px solid var(--fascia); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.8rem;
}
.skip:focus { top: 1rem; }

.wrap { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(calc(100% - 1.5rem), var(--max)); } }

.fascia { display: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--ink);
  font-weight: 700; letter-spacing: -0.04em; font-size: 1.05rem;
}
.brand img { width: 28px; height: 28px; border-radius: 3px; }
.where {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mute);
  justify-self: start;
}
.nav { display: flex; align-items: center; gap: 0.2rem 1.1rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--fascia); }
.lang { display: inline-flex; gap: 0.15rem; font-weight: 700; font-size: 0.85rem; }
.lang a { color: var(--mute); text-decoration: none; padding: 0.15rem 0.25rem; }
.lang .is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--fascia); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--ink);
  width: 2.6rem; height: 2.6rem; padding: 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--forest);
  background: var(--forest); color: var(--paper) !important;
  text-decoration: none !important;
  font-weight: 650; font-size: 0.95rem; line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff !important; }
.btn--ghost {
  background: transparent; color: var(--ink) !important;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper) !important; }
.btn--light { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }
.btn--light:hover { background: #fff; }

/* Hero */
.hero { padding: 4.2rem 0 4.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
}
.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
  max-width: 13ch;
}
.lede { margin: 0; max-width: 38rem; color: var(--ink); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.7rem; }
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.hero-meta strong { display: block; font-weight: 700; }
.hero-meta span { color: var(--mute); font-size: 0.9rem; }

.demo-frame {
  background: var(--paper);
  border: 1px solid var(--ink);
}
.demo-caption {
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  background: var(--ink);
  color: var(--paper);
}
.demo-frame iframe {
  display: block; width: 100%; height: 430px; border: 0; background: var(--paper);
}

/* Sections */
.section { padding: 5.5rem 0; }
section[id], .hero { scroll-margin-top: calc(var(--nav-h) + 18px); }

.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--blush { background: var(--blush); }
.section--dark {
  background: var(--dark);
  color: var(--bg);
}
.section--green {
  background: var(--forest);
  color: var(--bg);
}
.section--dark .lede,
.section--dark .step p,
.section--green .lede,
.section--green .about-role,
.section--green .about-copy p {
  color: rgba(243, 239, 228, 0.82);
}
.section--dark .step b,
.section--green a { color: var(--sage); }
.section--green a:hover { color: #fff; }
.section--dark .step + .step { border-color: rgba(243, 239, 228, 0.18); }

.section-head { max-width: 36rem; margin-bottom: 2.4rem; }
.section-head h2, .legal-page h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

/* Problems: list, not cards */
.problem-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
}
.issue {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}
.issue:last-child { border-bottom: 1px solid var(--line); }
.issue h3 { margin: 0 0 0.3rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.issue p { margin: 0; color: var(--mute); max-width: 40rem; }

/* Listino */
.launch-offer {
  display: inline-block;
  border: 0;
  background: var(--sage);
  color: var(--forest);
  font-weight: 750;
  padding: 0.55rem 0.85rem;
  margin: 0 0 1.4rem;
}
.listino { width: 100%; border-collapse: collapse; }
.listino caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.listino tr { border-top: 1px solid var(--line); vertical-align: top; }
.listino tr:last-child { border-bottom: 1px solid var(--line); }
.listino tr:hover td { background: rgba(20, 22, 26, 0.035); }
.listino tr.is-featured { background: var(--forest); color: var(--paper); }
.listino tr.is-featured:hover td { background: transparent; }
.listino tr.is-featured .mute,
.listino tr.is-featured .price-was { color: rgba(243, 239, 228, 0.75); }
.listino td { padding: 1.15rem 0.8rem 1.2rem 0; }
.listino td:last-child { padding-right: 0; text-align: right; }
.listino h3 { margin: 0 0 0.25rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.listino .desc { margin: 0; color: var(--mute); font-size: 0.95rem; max-width: 36rem; }
.listino tr.is-featured .desc { color: rgba(243, 239, 228, 0.86); }
.price-now { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.03em; }
.price-month { font-weight: 650; margin-top: 0.15rem; }
.price-was { margin: 0 0 0.25rem; font-size: 0.82rem; color: var(--mute); font-weight: 550; }
.price-was s { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.price-note { margin: 1.3rem 0 0; color: var(--mute); font-size: 0.92rem; max-width: 48rem; }
.listino-extra { margin-top: 0; }

/* Steps — only here, it is a sequence */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step { padding: 1.4rem 1.2rem 0 0; }
.step + .step { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.step b { display: block; color: var(--fascia); font-size: 0.95rem; margin-bottom: 0.6rem; }
.step h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.step p { margin: 0; color: var(--mute); }

/* Work */
.work-item {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.work-item:last-of-type { border-bottom: 1px solid var(--line); }
.work-item:nth-of-type(even) { grid-template-columns: 0.85fr 1.15fr; }
.work-item:nth-of-type(even) .work-copy { order: -1; }
.work-visual {
  border: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  min-height: 220px;
}
.work-visual img { width: 100%; height: auto; }
.tag {
  display: inline-block;
  border: 0;
  background: var(--sage);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.6rem;
}
.work-copy h3 { margin: 0 0 0.5rem; font-size: 1.6rem; letter-spacing: -0.03em; }
.work-copy p { margin: 0 0 0.8rem; color: var(--mute); }
.honesty {
  margin-top: 1.6rem;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  background: var(--sage);
  border-left: 3px solid var(--forest);
  max-width: 48rem;
}

.listino tbody tr:hover { background: color-mix(in srgb, var(--forest) 6%, transparent); }
.listino tr.is-featured:hover { background: var(--forest); }
.listino tr.listino-extra { background: var(--blush); }
.listino tr.listino-extra:hover { background: var(--blush); }
.listino tr.listino-extra .desc { color: #5A564E; }
.issue { transition: padding-left 0.25s var(--ease); }
.issue:hover { padding-left: 0.4rem; }
@media (prefers-reduced-motion: reduce) {
  .issue:hover { padding-left: 0; }
}

/* About */
.about-split {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 3rem;
}
.about-split h2 { margin-top: 0; }
.about-copy p { margin: 0 0 1rem; max-width: 40rem; }
.about-name { margin: 0; font-size: 1.5rem; font-weight: 750; letter-spacing: -0.03em; }
.about-role { margin: 0.3rem 0 0; color: var(--mute); }

/* FAQ */
.faq { max-width: 44rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 650; padding: 1rem 0;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fascia); font-weight: 400; font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { margin: 0; padding: 0 0 1.1rem; color: var(--mute); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
.form-row, .field { margin-bottom: 0.85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
label { display: block; font-size: 0.88rem; font-weight: 650; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink);
  background: transparent; border-radius: 0; padding: 0.55rem 0;
}
textarea { min-height: 7rem; resize: vertical; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.88rem; color: var(--mute); margin: 0.5rem 0 1rem; }
.check input { width: auto; margin-top: 0.25rem; }
.form-note, .form-status { font-size: 0.85rem; color: var(--mute); margin: 0.7rem 0 0; }
.form-status[data-state="blocked"], .form-status[data-state="error"] { color: var(--alert); }
.contact-side h3 { margin: 0 0 0.6rem; font-size: 1.5rem; letter-spacing: -0.03em; }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 1.2rem; }
.contact-list li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.contact-list strong { display: block; font-size: 0.85rem; }

/* Footer */
.site-footer { background: var(--dark); color: var(--bg); padding: 3rem 0 1.4rem; }
.site-footer a { color: var(--bg); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* Enlaces de contacto del pie (WhatsApp, email): contraste ≥ 4,5:1 sobre --dark (#F3EFE4 sobre #141311 ≈ 16:1) y subrayado para no depender del color. */
.site-footer .footer-grid p a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.site-footer .footer-grid p a:hover { color: #fff; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 0.15em; }
.footer-bottom a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(243,239,228,0.15); }
.site-footer h3 { margin: 0 0 0.7rem; font-size: 0.9rem; font-weight: 700; }
.site-footer p, .site-footer li { margin: 0.3rem 0; color: rgba(243,239,228,0.72); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1rem; font-size: 0.85rem; color: rgba(243,239,228,0.6); }

.kicker {
  margin: 0 0 0.35rem;
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.legal-page { padding: 3.2rem 0 5rem; }
.draft-banner { background: var(--sage); border: 0; color: var(--ink); padding: 1rem 1.1rem; margin: 1.1rem 0 1.8rem; }
.legal-page h2 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }

.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--dark); color: var(--bg);
  padding: 0.9rem 1.2rem;
  display: none; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-bar.is-visible { display: flex; }
.cookie-bar p { margin: 0; font-size: 0.9rem; color: rgba(251,251,250,0.75); max-width: 50rem; }
.cookie-bar a { color: #fff; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: left; padding: 5rem 0; }
.notfound h1 { font-size: clamp(3rem, 8vw, 6rem); margin: 0 0 0.6rem; letter-spacing: -0.05em; }

@media (max-width: 920px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .where { display: none; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 0.8rem 1.25rem 1.2rem; display: none; gap: 0.15rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.65rem 0; }
  .nav .btn { margin-top: 0.5rem; width: fit-content; }
  .hero-grid, .problem-split, .about-split, .contact-grid, .footer-grid,
  .work-item, .work-item:nth-of-type(even) { grid-template-columns: 1fr; }
  .work-item:nth-of-type(even) .work-copy { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step + .step { border-left: 0; padding-left: 0; }
  .step:nth-child(odd) { padding-right: 1rem; }
  .hero h1 { max-width: none; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .hero { padding: 2.4rem 0 3rem; }
  .section { padding: 3.6rem 0; }
  .form-row, .hero-meta, .steps { grid-template-columns: 1fr; }
  .listino, .listino tbody, .listino tr, .listino td { display: block; width: 100%; }
  .listino td { padding: 0.2rem 0; }
  .listino td:last-child { text-align: left; padding-bottom: 1.2rem; }
  .listino tr { padding-top: 1rem; }
  .demo-frame iframe { height: 520px; }
}

/* Demo per settore */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.sector-card { display: flex; flex-direction: column; gap: 0.45rem; text-decoration: none; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 0.7rem 0.7rem 1.1rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s; }
.sector-card:hover { transform: translateY(-3px); border-color: var(--forest); box-shadow: 0 18px 36px -24px rgba(20, 19, 17, 0.45); }
.sector-card:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.sector-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; border-radius: 9px; margin-bottom: 0.5rem; border: 1px solid var(--line); }
.sector-card .tag { align-self: flex-start; margin: 0 0.3rem; }
.sector-card h3 { margin: 0.1rem 0.3rem 0; font-size: 1.35rem; letter-spacing: -0.03em; }
.sector-card p { margin: 0 0.3rem; color: var(--mute); font-size: 0.95rem; flex: 1; }
.sector-go { margin: 0.3rem 0.3rem 0; font-weight: 700; color: var(--forest); }
@media (max-width: 1020px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sector-grid { grid-template-columns: 1fr; } }

/* Legal pages */
.legal-meta { color: var(--mute); max-width: 46rem; }
.legal-toc { font-size: 0.92rem; margin: 1rem 0 1.5rem; padding: 0.8rem 1rem; background: var(--sand); border-radius: 10px; }
.legal-toc a { color: var(--forest); }
.legal-page h2[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.legal-page ul { max-width: 50rem; }
.legal-page ul li { margin-bottom: 0.45rem; }
.legal-page p { max-width: 50rem; }
.legal-table-wrap { overflow-x: auto; margin: 0.8rem 0 1rem; -webkit-overflow-scrolling: touch; }
.legal-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.92rem; background: var(--paper); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border: 1px solid var(--line); }
.legal-table thead th { background: var(--forest); color: #F3EFE4; font-weight: 650; }
.legal-table tbody th { font-weight: 650; }
.legal-back { margin-top: 2.2rem; }

/* República Dominicana: mercado destacado (páginas ES), paleta existente */
.rd-market, .rd-price {
  margin-top: 2rem;
  padding: 1.2rem 1.2rem 1.3rem;
  background: var(--sand);
  border-radius: 10px;
  max-width: 50rem;
}
.rd-price { background: var(--sage); }
.rd-market h3, .rd-price h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.rd-market p, .rd-price p {
  margin: 0 0 0.7rem;
  color: var(--ink);
}
.rd-market p:last-child, .rd-price p:last-child { margin-bottom: 0; }

