:root {
  --night: #0E2238;
  --night-2: #16304D;
  --ink: #14202E;
  --muted: #4B5767;
  --paper: #FBFCFD;
  --lens: #EAF0F5;
  --line: #CBD5DF;
  --field: #66727F;
  --signal: #1B5A96;
  --signal-dark: #123F6B;
  --beam: #F2B63A;
  --beam-dark: #D99A1E;
  --on-night: #F3F6F9;
  --on-night-muted: #C4CFDB;
  --error: #A4262C;
  --radius: 6px;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --space: clamp(3rem, 8vw, 5.5rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 750;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }

p, ul, ol, dl { margin: 0 0 1em; }
li + li { margin-top: 0.35em; }

a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--signal-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .site-footer :focus-visible, .cta-final :focus-visible { outline-color: var(--beam); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--night); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; color: #fff; outline-color: var(--beam); }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.4rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn-primary { background: var(--beam); color: var(--night); border-color: var(--beam); }
.btn-primary:hover { background: var(--beam-dark); border-color: var(--beam-dark); color: var(--night); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--on-night); border-color: var(--on-night-muted); }
.btn-ghost:hover { color: #fff; border-color: #fff; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.6rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--night); text-decoration: none; margin-right: auto; padding-block: 0.6rem; }
.brand:hover { color: var(--night); }
.brand-mark { width: 40px; height: 28px; flex: none; }
.brand-name { font-weight: 800; font-size: 1rem; line-height: 1.15; letter-spacing: -0.01em; max-width: 9.5rem; }
.brand-tag {
  display: inline-block; font-size: 0.72em; letter-spacing: 0.04em;
  border: 1.5px solid currentColor; border-radius: 3px; padding: 0 0.3em; vertical-align: 0.1em;
}
.header-cta { min-height: 44px; padding: 0.5rem 0.9rem; font-size: 0.95rem; }
.nav-toggle {
  min-height: 44px; padding: 0.5rem 0.8rem; font: inherit; font-weight: 600; font-size: 0.95rem;
  color: var(--night); background: transparent; border: 2px solid var(--field); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; position: relative;
}
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 30em) {
  .header-bar { gap: 0 0.45rem; }
  .brand { gap: 0.45rem; }
  .brand-mark { width: 32px; height: 22px; }
  .brand-name { font-size: 0.9rem; max-width: 7.4rem; }
  .header-cta, .nav-toggle { padding-inline: 0.65rem; font-size: 0.9rem; }
  .nav-toggle { width: 44px; justify-content: center; padding-inline: 0; }
  .nav-toggle-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
@media (max-width: 24em) { .brand-mark { display: none; } .header-bar { padding-inline: 1rem; } .header-cta { padding-inline: 0.55rem; } }

.site-nav { flex-basis: 100%; border-top: 1px solid var(--line); }
html.js .site-nav:not(.is-open) { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0.5rem 0 1rem; }
.nav-item { margin: 0; position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.nav-list > li + li { margin-top: 0; border-top: 1px solid var(--line); }
.nav-item > a { flex: 1; display: block; padding: 0.8rem 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-item > a:hover, .sub-list a:hover { color: var(--signal); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--signal); text-decoration: underline; text-decoration-thickness: 2px; }
.sub-toggle {
  width: 44px; height: 44px; flex: none; background: transparent; border: 0; border-radius: var(--radius);
  cursor: pointer; color: var(--ink); position: relative;
}
.sub-toggle::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 9px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg); transition: transform 0.15s;
}
.sub-toggle[aria-expanded="true"]::before { transform: translate(-50%, -20%) rotate(-135deg); }
html:not(.js) .sub-toggle { display: none; }
.sub-list { list-style: none; margin: 0 0 0.6rem; padding: 0 0 0 1rem; flex-basis: 100%; border-left: 2px solid var(--line); }
.sub-list[hidden] { display: none; }
.sub-list li { margin: 0; }
.sub-list a { display: block; padding: 0.45rem 0.6rem; color: var(--ink); text-decoration: none; }
.nav-lang { gap: 0; padding-block: 0.7rem; }
.nav-item.nav-lang > a { flex: none; padding: 0.3rem 0.75rem; border: 1.5px solid var(--field); font-weight: 600; }
.nav-lang a:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.nav-lang a:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
html[lang^="en"] .nav-lang a[lang="en"], html[lang^="es"] .nav-lang a[lang="es"] { background: var(--night); border-color: var(--night); color: #fff; }

@media (min-width: 64em) {
  .header-bar { flex-wrap: nowrap; gap: 1rem; }
  .brand-name { max-width: none; font-size: 1.1rem; }
  .nav-toggle { display: none; }
  .site-nav, html.js .site-nav:not(.is-open) { display: block; flex-basis: auto; border-top: 0; order: 1; }
  .brand { order: 0; margin-right: 0; }
  .header-cta { order: 2; margin-left: 0.5rem; }
  .site-nav { margin-left: auto; }
  .nav-list { display: flex; align-items: center; padding: 0; }
  .nav-list > li + li { border-top: 0; }
  .nav-item { flex-wrap: nowrap; }
  .nav-item > a { padding: 0.6rem 0.5rem; font-size: 0.95rem; }
  .has-sub > a { padding-right: 0; }
  .sub-toggle { width: 30px; }
  .sub-list {
    position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 15rem; padding: 0.5rem; margin: 0;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(14, 34, 56, 0.14);
  }
  html:not(.js) .sub-list { display: none; }
  .nav-lang { padding: 0 0 0 0.75rem; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    conic-gradient(from 62deg at -8% 38%, transparent 0deg, rgba(255, 228, 168, 0.16) 10deg, rgba(255, 228, 168, 0.05) 30deg, transparent 44deg),
    linear-gradient(170deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--on-night);
  padding-block: clamp(2.25rem, 7vw, 5rem);
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); max-width: 56ch; color: var(--on-night); }
.hero a:not(.btn) { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.price-note { color: var(--on-night-muted); font-size: 0.98rem; max-width: 56ch; margin: 0; }
.price-note strong, .price-note [data-taller="precio"] { color: #fff; font-weight: 700; }

/* Sections */
.section { padding-block: var(--space); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--lens); border-top: 0 !important; }
.section-alt + .section { border-top: 0; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }

.split { display: grid; gap: 2rem; align-items: center; }
.split > .prose { max-width: var(--measure); }
@media (min-width: 52em) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split.reverse > .media { order: -1; }
}

.media {
  width: 100%; border-radius: var(--radius); background: var(--lens);
  background-image: linear-gradient(135deg, rgba(14, 34, 56, 0.05) 25%, transparent 25%, transparent 50%, rgba(14, 34, 56, 0.05) 50%, rgba(14, 34, 56, 0.05) 75%, transparent 75%);
  background-size: 24px 24px; border: 1px solid var(--line);
}
.section-alt .media { background-color: var(--paper); }
.media-img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

.panels { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: 2rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--night); border-radius: var(--radius); padding: 1.5rem; }
.panel h2, .panel h3 { font-size: 1.2rem; }
.panel p { color: var(--muted); }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { border-top: 1px solid var(--line); margin: 0; }
.panel li a { display: block; padding: 0.55rem 0; font-weight: 600; }

.steps { list-style: none; counter-reset: step; padding: 0; max-width: var(--measure); }
.steps > li { counter-increment: step; position: relative; padding-left: 3.25rem; margin: 0 0 1.5rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--night); color: #fff; font-weight: 700;
}
.steps h3 { margin-bottom: 0.3em; }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.5rem; height: 0.9rem;
  border-right: 2.5px solid var(--signal); border-bottom: 2.5px solid var(--signal); transform: rotate(40deg);
}

/* Price block */
.price {
  max-width: var(--measure); background: var(--paper); border: 2px solid var(--night); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.price-figure { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem); font-weight: 750; line-height: 1.3; color: var(--night); letter-spacing: -0.01em; }
.price p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { max-width: var(--measure); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1rem 2.5rem 1rem 0; font-weight: 700; font-size: 1.08rem; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.5rem; top: 0.85rem; font-size: 1.5rem; line-height: 1; font-weight: 400; color: var(--signal);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0 1rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Final CTA */
.cta-final { background: var(--night); color: var(--on-night); padding-block: var(--space); }
.cta-final h2 { color: #fff; max-width: 26ch; }
.cta-final p { max-width: 56ch; }
.cta-final a:not(.btn) { color: #fff; }

.related { max-width: var(--measure); }
.related ul { padding-left: 1.2em; }

.notice { font-size: 0.93rem; color: var(--muted); max-width: var(--measure); }

/* Forms */
.quote-form { max-width: 44rem; }
.quote-form fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.quote-form legend { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.01em; padding: 0; margin-bottom: 1rem; }
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 40em) { .field-row { grid-template-columns: repeat(3, 1fr); } .field-row.two { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: 0.92em; }
.hint { display: block; color: var(--muted); font-size: 0.93rem; margin: -0.15rem 0 0.4rem; }
.quote-form input[type="text"], .quote-form input[type="email"], .quote-form input[type="tel"],
.quote-form select, .quote-form textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--field); border-radius: var(--radius);
}
.quote-form textarea { min-height: 8rem; resize: vertical; }
.quote-form input[type="file"] { font: inherit; max-width: 100%; padding: 0.6rem 0; }
.quote-form input:focus-visible, .quote-form select:focus-visible, .quote-form textarea:focus-visible { border-color: var(--signal); }
.quote-form :user-invalid { border-color: var(--error); }
.quote-form fieldset.field { margin: 0 0 1.2rem; }
.quote-form legend.label { font-size: 1rem; font-weight: 650; letter-spacing: 0; margin-bottom: 0.35rem; }
.choice { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.7rem; }
.choice input { width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--signal); }
.choice label { font-weight: 400; margin: 0; }
.choice label > span[lang] { display: block; margin-top: 0.4rem; color: var(--muted); }
.choices-inline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.form-submit { margin-top: 0.5rem; }
.form-notice { font-size: 0.95rem; color: var(--muted); margin-top: 1rem; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-muted); padding-top: var(--space); font-size: 0.97rem; }
.site-footer a { color: var(--on-night); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-name { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 0.5rem; }
.footer-brand { max-width: 34ch; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }
.footer-title { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li + li { margin-top: 0.55rem; }
.footer-base {
  margin-top: 2.5rem; padding-block: 0 2rem; font-size: 0.9rem;
  background: linear-gradient(rgba(196, 207, 219, 0.3), rgba(196, 207, 219, 0.3)) no-repeat content-box top / 100% 1px;
}
.footer-base p:first-child { padding-top: 1.5rem; }
.footer-base p { max-width: 80ch; }
@media (min-width: 64em) { .footer-grid { grid-template-columns: minmax(14rem, 1fr) 3fr; } }

/* Error page */
.not-found .hero h1 { max-width: none; }

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

@media print {
  .site-header, .site-nav, .site-footer, .cta-final, .hero-actions { display: none; }
  .hero { background: none; color: #000; }
  .hero h1 { color: #000; }
}
.cf-turnstile { margin: 0.5rem 0 1rem; min-height: 65px; }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); border-left: 4px solid var(--signal); background: var(--lens); }
.form-status.is-error { border-left-color: var(--error); color: var(--error); }
.form-status:focus { outline: 2px solid var(--signal); outline-offset: 2px; }

/* Foto de portada bajo el hero */
.hero-foto { margin: 1.75rem 0 0.5rem; border-radius: 12px; overflow: hidden; background: var(--lens, #EAF0F5); }
.hero-foto .media-img, .hero-foto .media { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 0; }
