/* Órale Taxes — design tokens from the Claude Design handoff (v4) */
:root {
  --white: #FFFFFF;
  --ink: #111B21;
  --ink-deep: #0B141A;
  --muted: #3B4A54;
  --subtle: #54656F;
  --wa: #25D366;
  --wa-hover: #1EBE5A;
  --green: #0B6B4B;
  --bubble: #D9FDD3;
  --featured: #F4FEF2;
  --red: #CE1126;
  --red-hover: #B00E20;
  --error: #A30E1E;
  --surface: #F6F7F6;
  --surface-2: #F0F2F5;
  --border: #E9EDEF;
  --border-2: #E1E5E8;
  --input: #D1D7DB;
  --section-pad: clamp(56px, 9vw, 112px) 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
a:hover { color: var(--red); }
input:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.container { max-width: 1180px; margin: 0 auto; }
.section { padding: var(--section-pad); }
[id] { scroll-margin-top: 72px; }

h2.h2 {
  font-weight: 800;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 44px;
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
}
.btn-wa { background: var(--wa); color: var(--ink-deep); }
.btn-wa:hover { background: var(--wa-hover); color: var(--ink-deep); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink-deep); color: #fff; }
.btn-ink:hover { background: #fff; color: var(--ink-deep); }

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.24em;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.logo-o { position: relative; display: block; padding-top: 8px; }
.logo-o::after {
  content: "";
  position: absolute;
  top: 5px; left: 9px;
  width: 10px; height: 4px;
  border-radius: 99px;
  background: var(--red);
  transform: rotate(-24deg);
}
.logo-taxes { color: var(--green); }

/* Announcement bar */
.announce {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  padding: 10px 16px;
  min-height: 44px;
  text-align: center;
}
.announce:hover { background: var(--red-hover); color: #fff; }
.announce-cta { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.logo-link { text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 0 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links a:hover { color: var(--ink); }
.nav .btn-wa { font-size: 16px; padding: 0 18px; min-height: 44px; margin-left: 8px; }

/* Hero */
.hero {
  padding: clamp(40px, 7vw, 88px) 20px clamp(48px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(46px, 8.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.highlight {
  white-space: nowrap;
  background: linear-gradient(transparent 62%, var(--wa) 62%, var(--wa) 92%, transparent 92%);
  padding: 0 3px;
}
.hero-sub {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
  max-width: 520px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; width: 100%; }
.hero-ctas .btn-wa { font-size: 18px; padding: 0 26px; min-height: 58px; }
.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  font-weight: 700;
  font-size: 18px;
  padding: 0 12px;
  min-height: 58px;
  display: flex;
  align-items: center;
}
.text-link:hover { color: var(--green); }

/* Chat panel */
.chat {
  background: var(--surface-2);
  border-radius: 28px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  width: 100%;
  justify-self: center;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; border-bottom: 1px solid var(--border-2); }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.avatar-o { position: relative; display: block; font-weight: 800; font-size: 24px; line-height: 1; color: var(--ink-deep); padding-top: 6px; }
.avatar-o::after {
  content: "";
  position: absolute;
  top: 4px; left: 7px;
  width: 9px; height: 4px;
  border-radius: 99px;
  background: var(--red);
  box-shadow: 0 0 0 1.5px var(--wa);
  transform: rotate(-24deg);
}
.chat-name { display: flex; flex-direction: column; }
.chat-name b { font-size: 16px; }
.chat-name span { font-size: 13px; color: var(--green); }
.chip {
  margin: 4px 0 0;
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
}
.bubble {
  max-width: 85%;
  padding: 10px 13px;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}
.bubble-in { align-self: flex-start; background: #fff; border-radius: 4px 16px 16px 16px; }
.bubble-out { align-self: flex-end; background: var(--bubble); border-radius: 16px 4px 16px 16px; }
.ticks { display: block; text-align: right; font-size: 11px; color: var(--subtle); margin-top: 3px; }

/* Trades band */
.trades { background: var(--green); color: #fff; }
.trades-inner { padding: 22px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.trades-label { font-weight: 700; font-size: 17px; margin-right: 8px; }
.pill { background: #fff; color: var(--ink-deep); font-weight: 600; font-size: 16px; padding: 8px 14px; border-radius: 999px; }

/* Services */
#servicios h2.h2 { margin-bottom: 40px; max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.service { background: var(--surface); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.tag { font-size: 14px; font-weight: 600; color: var(--green); }
.service h3 { font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.service p, .step p, .price p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.fit-note { margin: 28px 0 0; font-size: 18px; line-height: 1.5; max-width: 760px; }
.fit-note span { color: var(--muted); }

/* How it works */
.alt { background: var(--surface); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 32px 28px;
}
.step { display: flex; flex-direction: column; gap: 12px; }
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--ink-deep);
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-weight: 700; font-size: 23px; line-height: 1.15; letter-spacing: -0.02em; margin: 4px 0 0; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.price {
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.price-featured { border: 2px solid var(--wa); background: var(--featured); }
.price-badge {
  position: absolute;
  top: -13px; left: 20px;
  background: var(--wa);
  color: var(--ink-deep);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price h3 { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.amount { font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: -0.04em; }
.amount small { font-weight: 500; font-size: 17px; letter-spacing: 0; color: var(--muted); }
.price p { flex: 1; }
.price .btn { font-size: 16px; min-height: 52px; }

/* Lead form */
.narrow { max-width: 780px; margin: 0 auto; }
#contacto h2.h2 { margin-bottom: 14px; }
.form-intro { margin: 0 0 36px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.lead-form {
  background: #fff;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 16px; }
.field input, .field select {
  font: 400 18px "Bricolage Grotesque", system-ui, sans-serif;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--input);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field select { padding: 0 14px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 16px; padding: 0; margin-bottom: 8px; }
.choices { display: grid; gap: 8px; }
.choices-3 { grid-template-columns: 1fr 1fr 1fr; }
.choices-2 { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 12px;
  border: 1.5px solid var(--input);
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
}
.choice input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  padding: 18px;
  background: var(--surface);
  border-radius: 16px;
}
.consent input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--green); }
.consent-text { display: flex; flex-direction: column; gap: 6px; }
.consent-text span:first-child { font-size: 16px; line-height: 1.5; }
.consent-text span:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { grid-column: 1 / -1; margin: 0; color: var(--error); font-weight: 600; }
.submit {
  grid-column: 1 / -1;
  font: 700 18px "Bricolage Grotesque", system-ui, sans-serif;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-height: 58px;
  cursor: pointer;
}
.submit:hover { background: var(--green); }
.submit:disabled { opacity: 0.7; cursor: wait; }
.form-success { background: var(--bubble); border-radius: 24px; padding: 28px; }
.form-success h3 { font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 10px; }
.form-success p { margin: 0; font-size: 18px; line-height: 1.5; }
[hidden] { display: none !important; }

/* FAQ */
.faq-wrap { max-width: 860px; margin: 0 auto; }
#preguntas h2.h2 { margin-bottom: 32px; }
.faq { border-top: 1px solid var(--border-2); }
.faq details { border-bottom: 1px solid var(--border-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  min-height: 68px;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.plus {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--green);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.2s;
}
.faq details[open] .plus { transform: rotate(45deg); }
.faq p { margin: 0 0 24px; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 680px; }

/* Closing band */
.closing-wrap { padding: 0 20px clamp(56px, 8vw, 96px); }
.closing {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--wa);
  color: var(--ink-deep);
  border-radius: 32px;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.closing h2 {
  font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 680px;
  text-wrap: balance;
}
.closing .btn { font-size: 18px; padding: 0 28px; min-height: 58px; }

/* Footer */
.site-footer { background: var(--surface-2); color: var(--muted); }
.footer-inner { padding: 48px 20px; display: flex; flex-direction: column; gap: 20px; font-size: 16px; line-height: 1.6; }
.footer-row { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal { margin: 0; max-width: 760px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--ink); min-height: 44px; display: flex; align-items: center; }

/* Mobile sticky bar */
.mbar, .mbar-spacer { display: none; }
.mbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-2);
}
.mbar .btn { display: flex; font-size: 18px; min-height: 56px; }
.mbar-spacer { height: calc(78px + env(safe-area-inset-bottom)); }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .mbar, .mbar-spacer { display: block; }
}

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; font-size: 17px; line-height: 1.6; }
.legal .back { font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.legal h1 { font-weight: 800; font-size: clamp(40px, 7vw, 56px); line-height: 1.04; letter-spacing: -0.04em; margin: 16px 0 12px; }
.legal .draft { margin: 0 0 32px; font-weight: 600; background: var(--bubble); padding: 10px 14px; border-radius: 12px; }
.legal h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 28px 0 8px; }
.legal p { margin: 0; color: var(--muted); }
