:root {
  --paper: #f4f5fa;
  --paper-2: #e8ebf5;
  --ink: #1b2347;
  --ink-2: #3a4266;
  --muted: #5b6384;
  --line: #d5d9e8;
  --accent: #ff6a3d;
  --accent-ink: #c23f18;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --display: "Comfortaa", "DM Sans", system-ui, sans-serif;
  --navy: #26305e;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.25; }
h1 em, h2 em { font-style: normal; color: var(--accent); }

.label {
  display: inline-block; margin-bottom: 18px;
  font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.label::before { content: "/ "; color: var(--accent); }
.label--light { color: #9aa2c4; }

/* Buttons & links */
.btn {
  display: inline-block; padding: 15px 26px; cursor: pointer;
  font: 600 1rem var(--sans); color: var(--paper); background: var(--ink);
  border: 2px solid var(--ink); border-radius: 0; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.link-arrow { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--accent-ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: flex-end; gap: 9px; color: var(--navy); text-decoration: none; }
.brand svg { display: block; overflow: visible; }
.brand__arch { width: 22px; height: 28px; }
.brand__word { width: 85px; height: 21px; }
.nav__links { display: flex; gap: 30px; align-items: center; font-size: .95rem; }
.nav__links a { text-decoration: none; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav__cta { font-weight: 600; color: var(--ink) !important; border-bottom: 2px solid var(--accent); }
.nav__cta:hover { text-decoration: none !important; }
.nav__toggle {
  display: none; cursor: pointer; background: none; border: 1px solid var(--ink);
  font: 500 .85rem var(--mono); padding: 8px 14px; min-height: 40px; color: var(--ink);
}

/* Hero */
.hero { padding: 56px 0 96px; }
.status { display: inline-flex; align-items: center; gap: 10px; font: .85rem var(--mono); color: var(--muted); margin-bottom: 40px; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #2f9e44; }
.hero__grid { display: grid; grid-template-columns: 1fr 330px; gap: 72px; align-items: end; }
.hero h1 { max-width: 13ch; }
.hero__lead { margin: 32px 0 36px; max-width: 54ch; font-size: 1.15rem; color: var(--ink-2); }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Ticket */
.ticket {
  position: relative; padding: 26px 24px 22px; background: #ffffff; color: var(--ink);
  font: .82rem/1.5 var(--mono); transform: rotate(2deg);
  box-shadow: 0 1px 0 var(--line), 0 18px 30px -18px rgba(20, 30, 70, .3);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle at 5px 0, transparent 5px, #ffffff 5.5px) 0 0 / 10px 10px repeat-x;
}
.ticket::before { top: -10px; transform: scaleY(-1); }
.ticket::after { bottom: -10px; }
.ticket__head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px dashed #c3c9dd; }
.ticket__head strong { letter-spacing: .15em; }
.ticket__rows { padding: 12px 0; border-bottom: 1px dashed #c3c9dd; }
.ticket__rows div, .ticket__total { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.ticket__total { padding: 12px 0 4px; font-weight: 500; font-size: .95rem; }
.ticket__total span:last-child { color: var(--accent-ink); }
.ticket__foot { text-align: center; margin-top: 14px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.ticket__barcode {
  height: 34px; margin-top: 10px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px);
}

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section__head { margin-bottom: 48px; }

/* Services */
.services { border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 260px 1fr 140px; gap: 12px 48px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.service h3 { grid-row: span 2; font-size: 1.6rem; }
.service p { max-width: 60ch; color: var(--ink-2); }
.service__tags { grid-column: 2; font-size: .9rem; color: var(--muted) !important; }
.service__time { grid-column: 3; grid-row: 1; justify-self: end; font: .8rem var(--mono); color: var(--muted); white-space: nowrap; }
.note { margin-top: 20px; font-size: .9rem; color: var(--muted); }

/* AI section */
.section--ink { background: var(--ink); color: #e9ecf7; border-top: 0; }
.ai { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; }
.ai__intro h2 { position: sticky; top: 110px; }
.ai__intro h2 em { color: var(--accent); }
.ai__body p { font-size: 1.12rem; color: #c7cce0; max-width: 58ch; }
.ai__body p + p { margin-top: 18px; }
.ai__body p:first-child { font-size: 1.35rem; color: #ffffff; line-height: 1.45; }
.split-table { width: 100%; margin-top: 44px; border-collapse: collapse; font-size: .98rem; }
.split-table th { text-align: left; padding: 0 0 12px; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #9aa2c4; border-bottom: 1px solid #3a4470; }
.split-table th:last-child { color: var(--accent); }
.split-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid #2b3460; vertical-align: top; color: #aab1cf; width: 50%; }
.split-table td:last-child { color: #ffffff; }

/* Process */
.process { list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.process li { counter-increment: p; padding: 26px 26px 10px 0; }
.process li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.process li::before { content: "Paso " counter(p); display: block; margin-bottom: 18px; font: .78rem var(--mono); color: var(--accent-ink); }
.process h3 { font-size: 1.2rem; margin-bottom: 10px; }
.process p { font-size: .97rem; color: var(--ink-2); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { padding: 0 0 24px; max-width: 62ch; color: var(--ink-2); }

/* Contact */
.contact { padding: 96px 0 110px; background: var(--paper-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; }
.contact__title { font-size: clamp(3.2rem, 8.5vw, 6.6rem); letter-spacing: -.05em; }
.contact__text { margin: 22px 0 36px; max-width: 42ch; color: var(--ink-2); font-size: 1.08rem; }
.contact__direct { list-style: none; border-top: 2px solid var(--ink); }
.contact__direct li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__direct span { font: .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact__direct a { font-weight: 600; font-size: 1.1rem; text-underline-offset: 4px; word-break: break-all; }
.contact__direct a:hover { color: var(--accent-ink); }

.form { display: grid; gap: 22px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; }
.field > label, .field legend { font-weight: 600; font-size: .92rem; }
.field legend { margin-bottom: 10px; }
.opt { font-weight: 400; color: var(--muted); }
.form input:not([type="radio"]), .form textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #ffffff; border: 1px solid #c3c9dd; border-radius: 0; transition: border-color .2s;
}
.form input:not([type="radio"]):focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form textarea { resize: vertical; }
.form textarea::placeholder { color: #8a91ad; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  position: relative; cursor: pointer; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid #c3c9dd; background: #ffffff; font-size: .95rem; transition: background-color .15s, color .15s, border-color .15s;
}
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:hover { border-color: var(--ink); }
.choices label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choices label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.invalid { border-color: var(--accent-ink) !important; }
.form__error { color: var(--accent-ink); font-weight: 500; font-size: .95rem; }
.form .btn { justify-self: start; }
.form__hint { font-size: .88rem; color: var(--muted); margin-top: -10px; }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: var(--navy); }
.footer a { text-underline-offset: 4px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px;
  display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); transition: background-color .2s;
}
.wa-float:hover { background: #1ebe5b; }
.wa-float svg { width: 26px; height: 26px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .ticket { max-width: 340px; }
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service h3, .service__tags, .service__time { grid-column: auto; grid-row: auto; justify-self: start; }
  .ai, .faq-wrap, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .ai__intro h2 { position: static; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(3) { padding-left: 0; border-left: 0; }
  .process li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px 18px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { border-bottom: 0 !important; color: var(--accent-ink) !important; }
  .hero { padding: 36px 0 72px; }
  .status { margin-bottom: 28px; }
  .section, .contact { padding: 72px 0; }
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 22px 0; border-left: 0; }
  .process li + li { border-top: 1px solid var(--line); }
  .form__row { grid-template-columns: 1fr; }
  .split-table td { padding-right: 10px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Marca y menú */
.brand { flex-shrink: 0; }
.nav__links a { white-space: nowrap; }
@media (max-width: 900px) and (min-width: 721px) {
  .nav__links { gap: 20px; font-size: .9rem; }
}

/* Enlaces internos (SEO) */
.service h3 a { text-decoration: none; color: inherit; }
.service h3 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__links a { text-decoration: none; color: var(--ink-2); }
.footer__links a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
