/* ─────────────────────────────────────────────────
   LATAMERS 2026 — styles.css
   Redesign: editorial minimal, typography-first
   ───────────────────────────────────────────────── */

:root {
  /* Palette (unchanged) */
  --bg:             #f6f2eb;
  --surface:        #fffdf9;
  --surface-strong: #f0e8db;
  --surface-muted:  #e8dfd2;
  --text:           #17212b;
  --muted:          #5c6e7e;
  --muted-strong:   #3d4f5e;
  --line:           rgba(23, 33, 43, 0.10);
  --line-strong:    rgba(23, 33, 43, 0.18);
  --accent:         #b79a55;
  --brand-dark:     #17191d;

  /* Layout */
  --container:    1120px;
  --sp:           clamp(3.5rem, 7vw, 6rem);   /* section padding */
  --r:            14px;                        /* card radius */
  --shadow:       0 2px 12px rgba(23,33,43,.05), 0 1px 3px rgba(23,33,43,.04);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, ul, ol { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; cursor: pointer; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Container ─────────────────────────────────── */
.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  padding: 0;
}

/* ── Header ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 235, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--brand-dark);
  flex: 0 0 auto;
  transition: opacity 0.15s ease;
}

.brand-box:hover { opacity: 0.85; }

.brand-logo {
  display: block;
  width: 84px;
  height: auto;
}

/* ── Mobile nav toggle ─────────────────────────── */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.15s ease;
}

.nav-toggle:hover { background: rgba(23, 33, 43, 0.05); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 15px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
}

.hamburger span:nth-child(3) { width: 70%; }

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { width: 100%; transform: translateY(-5.5px) rotate(-45deg); }

/* ── Site nav ──────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 68px;
  left: 1rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(23, 33, 43, 0.10);
}

.site-nav.is-open { display: flex; }

.site-nav a:not(.button) {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--muted-strong);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:not(.button):hover { background: rgba(23, 33, 43, 0.05); color: var(--text); }
.site-nav a.is-active:not(.button) { color: var(--text); font-weight: 700; }

/* ── Buttons ───────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  background: #1d2d3b;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(23, 33, 43, 0.14);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.button-ghost:hover {
  background: rgba(23, 33, 43, 0.05);
  box-shadow: none;
  transform: none;
}

.button-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.button-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1rem;
}

/* ── Scroll anchor offset ──────────────────────── */
.hero, section[id] { scroll-margin-top: 90px; }

/* ── Eyebrow / note label ──────────────────────── */
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.note-label {
  display: block;
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── Section base ──────────────────────────────── */
.section { padding: var(--sp) 0; }

.bg-toned {
  background: var(--surface-strong);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bg-callout {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── Section intro (heading block) ────────────── */
.section-intro {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-intro h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 22ch;
}

.section-intro p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 56ch;
}

.section-intro-center {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-intro-center h2,
.section-intro-center p { margin: 0 auto; }

/* ── Hero ──────────────────────────────────────── */
.hero { padding-top: clamp(2.5rem, 5vw, 5rem); }

.hero-body {
  display: grid;
  gap: 1.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 760px;
}

.hero-body h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 15ch;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 0.5rem;
}

/* Hero strip — three notes */
.hero-strip {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.hero-notes { display: grid; gap: 0; }

.hero-note { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.hero-note:first-child { border-top: none; padding-top: 0; }

.hero-note p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Cards ─────────────────────────────────────── */
.card {
  padding: 1.75rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  display: grid;
  align-content: start;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (hover: hover) {
  .card:hover { border-color: var(--line-strong); }
}

.card-warm {
  background: #fdf9f1;
  border-color: rgba(183, 154, 85, 0.2);
}

.card-soft { background: rgba(255, 253, 249, 0.7); }

.card-recommended {
  background: linear-gradient(160deg, #fdf6e6 0%, #fdfaf3 100%);
  border-color: rgba(183, 154, 85, 0.28);
}

.card-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
}

.card-badge-muted {
  background: var(--surface-muted);
  color: var(--muted-strong);
}

/* ── List (dash style) ─────────────────────────── */
.list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.list li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}

.list li::before {
  content: "—";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ── Layout: two-col / trio ────────────────────── */
.two-col { display: grid; gap: 1rem; }
.two-col-wide { /* will be 1.3fr 0.7fr on desktop */ }
.trio { display: grid; gap: 0; }

/* ── Callout (Antes) ───────────────────────────── */
.callout-inner {
  display: grid;
  gap: 2rem;
}

.callout-copy { display: grid; gap: 1rem; }

.callout-copy h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 22ch;
}

.callout-body {
  color: var(--muted-strong);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 52ch;
}

/* ── Enfoque (editorial split) ─────────────────── */
.editorial-split { display: grid; gap: 2.5rem; }

.editorial-heading { display: grid; gap: 1rem; }

.editorial-heading h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 20ch;
}

.editorial-body { display: grid; gap: 1.25rem; }

.editorial-body p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 50ch;
}

/* ── Steps (Servicios) ─────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  grid-template-areas:
    "num title"
    ". desc";
  column-gap: 1.5rem;
  row-gap: 0.35rem;
  padding: 1.25rem 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-num {
  grid-area: num;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding-top: 0.2rem;
}

.step-title {
  grid-area: title;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.step-desc {
  grid-area: desc;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Results ───────────────────────────────────── */
.result-col {
  display: grid;
  gap: 0.75rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.result-col:first-child {
  border-top: 2px solid var(--accent);
}

.result-col h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.result-col p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Tools ─────────────────────────────────────── */
.tools-section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.tools-label {
  text-align: center;
  display: block;
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tools-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool-item {
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 92px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.76);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.tool-item:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.tool-item img {
  height: 22px;
  width: auto;
  max-width: 94px;
  display: block;
}

.tool-item span {
  color: var(--muted-strong);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ── FAQ (accordion) ───────────────────────────── */
.accordion {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.accordion-item { border-top: 1px solid var(--line); }
.accordion-item:last-child { border-bottom: 1px solid var(--line); }

.accordion-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 3.5rem 1.25rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.accordion-item[open] > summary::after {
  content: "−";
  background: var(--surface-strong);
  border-color: var(--line-strong);
  color: var(--muted-strong);
}

.accordion-body {
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

@keyframes accordionIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.accordion-item[open] > .accordion-body {
  animation: accordionIn 0.2s ease forwards;
}

/* ── Contact ───────────────────────────────────── */
.contact-section {
  padding: var(--sp) 0 calc(var(--sp) * 1.4);
}

.contact-inner {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.contact-inner h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 20ch;
}

.contact-lead {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 52ch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-top: 0.5rem;
}

/* ── Footer ────────────────────────────────────── */
.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
}

.footer-inner { display: grid; gap: 2rem; }
.footer-brand { display: grid; gap: 1rem; }
.footer-brand-box { width: fit-content; }

.footer-tagline {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 42ch;
}

.footer-meta {
  display: grid;
  gap: 0.375rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-meta a { transition: color 0.15s ease; }
.footer-meta a:hover { color: var(--text); }

/* ── Scroll reveal ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────────────
   RESPONSIVE — 520px
   ───────────────────────────────────────────────── */
@media (min-width: 520px) {
  .hero-notes {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-note {
    padding: 0 1.5rem;
    border-top: none;
    border-left: 1px solid var(--line);
  }

  .hero-note:first-child,
  .hero-note:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }

  .hero-note:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }
}

/* ─────────────────────────────────────────────────
   RESPONSIVE — 700px
   ───────────────────────────────────────────────── */
@media (min-width: 700px) {
  .container { width: min(calc(100% - 3rem), var(--container)); }

  .two-col { grid-template-columns: repeat(2, 1fr); }
  .two-col-wide { grid-template-columns: 1.3fr 0.7fr; }

  .trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  /* All result cols get accent top border on desktop */
  .trio .result-col {
    border-top: 2px solid var(--accent);
    padding: 2rem 2rem 0;
  }

  .trio .result-col + .result-col {
    border-left: 1px solid var(--line);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Callout: two columns */
  .callout-inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
    align-items: center;
  }
}

/* ─────────────────────────────────────────────────
   RESPONSIVE — 860px
   ───────────────────────────────────────────────── */
@media (min-width: 860px) {
  /* Nav */
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    top: auto; left: auto; right: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav a:not(.button) {
    padding: 6px 10px;
    border-radius: 7px;
  }

  /* Layout */
  .container { width: min(calc(100% - 4rem), var(--container)); }
  .header-inner { min-height: 78px; }
  .brand-logo { width: 98px; }

  .hero-notes {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-note,
  .hero-note:nth-child(3) {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .hero-note:nth-child(3) {
    grid-column: auto;
  }

  .hero-note:first-child,
  .hero-note:nth-child(3) {
    border-left: none;
  }

  .tools-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  /* Enfoque editorial split */
  .editorial-split {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 5rem;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .footer-meta { text-align: right; }
}

/* ─────────────────────────────────────────────────
   RESPONSIVE — 1080px
   ───────────────────────────────────────────────── */
@media (min-width: 1080px) {
  .hero-body h1 { font-size: 4.2rem; }

  .section-intro h2,
  .callout-copy h2,
  .editorial-heading h2 {
    font-size: clamp(2.2rem, 3.5vw, 3.1rem);
  }

  .contact-inner h2 { font-size: 3rem; }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
