@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0c0c0b;
  --carbon: #151513;
  --carbon-2: #1d1d1a;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --text: #f3f1ea;
  --muted: #a9a69c;
  --yellow: #ebcf25;
  --yellow-2: #f6e15a;
  --on-yellow: #171400;
  --paper: #f1efe8;
  --paper-ink: #151513;
  --radius: 14px;
  --wrap: min(1240px, 100% - 48px);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.55 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 0.95; margin: 0; letter-spacing: 0.005em; text-transform: uppercase; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--on-yellow); }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--yellow); color: var(--on-yellow); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker { font: 600 13px/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* Botones */
.btn { --bg: var(--yellow); --fg: var(--on-yellow); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--bg); color: var(--fg); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform 0.25s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateX(-101%); transition: transform 0.45s var(--ease); }
.btn:hover::after { transform: translateX(0); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --bg: transparent; --fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost::after { background: var(--yellow); }
.btn-ghost:hover { color: var(--on-yellow); }
.btn-dark { --bg: var(--ink); --fg: var(--text); }
.btn-dark::after { background: #2a2a26; }
.btn-wa .wa-ico { width: 20px; height: 20px; }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto; z-index: 60; transition: background 0.3s, transform 0.4s var(--ease), border-color 0.3s; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(12, 12, 11, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top-in { width: var(--wrap); margin-inline: auto; height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: block; width: 150px; }
.brand img { width: 100%; height: auto; }
.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text); opacity: 0.86; padding: 6px 0; }
.top-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.top-nav a:hover { opacity: 1; }
.top-nav a:hover::after, .top-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.top-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn span:nth-child(3) { top: 29px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-btn { display: block; }
  .top-cta { display: none; }
  .top-nav { position: fixed; inset: 74px 0 auto; flex-direction: column; gap: 0; margin: 0; padding: 10px 24px 24px; background: rgba(12, 12, 11, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s; }
  .top-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .top-nav a { font: 700 30px/1 var(--display); text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .top-nav a::after { display: none; }
  .top-nav .nav-wa { display: inline-flex; margin-top: 18px; border: 0; font: 600 16px/1 var(--body); text-transform: none; }
}
@media (min-width: 981px) { .top-nav .nav-wa { display: none; } }
@media (max-width: 560px) { :root { --wrap: min(1240px, 100% - 32px); } .brand { width: 128px; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }

/* Modal con scroll propio y acciones fijas */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(5, 5, 4, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-box { position: relative; width: min(560px, 100%); max-height: min(860px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--carbon); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex: none; }
.modal-head h2 { font-size: 30px; }
.modal-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; flex: none; transition: background 0.2s, transform 0.3s var(--ease); }
.modal-close:hover { background: var(--yellow); color: var(--on-yellow); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px; -webkit-overflow-scrolling: touch; }
.modal-foot { flex: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--carbon); }
.modal-foot .btn { flex: 1 1 200px; }

/* Formularios */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(235, 207, 37, 0.22); }
.field .hint { color: var(--muted); font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 6px 0 4px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--yellow); flex: none; }
.check a { color: var(--text); }
.error { color: #ff8a7a; font-size: 14px; font-weight: 500; }
.error[hidden] { display: none; }
.form-note { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 70px 0 110px; background: var(--ink); }
.foot-grid { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h2 { font-size: 20px; color: var(--yellow); margin-bottom: 14px; }
.foot-grid p, .foot-grid a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; font-size: 15.5px; }
.foot-grid a:hover { color: var(--text); }
.foot-logo { width: 170px; margin-bottom: 16px; }
.foot-note { width: var(--wrap); margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: #7d7a72; font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
