/* MiRestconIA · tokens y base */
:root {
  --naranja: #ef520f;
  --naranja-2: #df2c05;
  --naranja-claro: #ff8a4c;
  --grad: linear-gradient(135deg, #ff8a4c 0%, var(--naranja) 45%, var(--naranja-2) 100%);
  --noche: #10152f;
  --noche-2: #090d1d;
  --noche-3: #1a2042;
  --hueso: #f7f4ef;
  --blanco: #ffffff;
  --tinta: #10152f;
  --tinta-2: #4a5070;
  --linea: rgba(16, 21, 47, 0.1);
  --linea-osc: rgba(255, 255, 255, 0.12);
  --verde-wa: #25d366;

  --f-display: "DM Sans", system-ui, sans-serif;
  --f-texto: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radio: 22px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--f-texto);
  color: var(--tinta);
  background: var(--hueso);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blanco); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--naranja-claro); outline-offset: 3px; border-radius: 8px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 700 0.8rem/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--naranja-2); margin-bottom: 14px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 700 1rem/1 var(--f-display); text-decoration: none; cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.2s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--glow { background: var(--grad); color: var(--blanco); box-shadow: 0 14px 40px -12px rgba(239, 82, 15, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--glow:hover { box-shadow: 0 20px 50px -12px rgba(239, 82, 15, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--glass { background: rgba(255, 255, 255, 0.08); color: var(--blanco); border: 1px solid var(--linea-osc); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn--glass svg { color: var(--verde-wa); }
.btn--wa { background: var(--verde-wa); color: #06351b; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s; }
.top.is-solida { background: rgba(9, 13, 29, 0.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea-osc); }
.top__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blanco); font: 800 1.2rem/1 var(--f-display); letter-spacing: -0.02em; }
.marca img { width: 40px; height: 40px; border-radius: 11px; }
.marca em { font-style: normal; color: var(--naranja-claro); }
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font: 500 0.95rem var(--f-display); transition: color 0.2s; }
.top__nav a:hover { color: var(--blanco); }
.top__entrar svg { width: 18px; height: 18px; fill: none; }
.hero__entrar { margin-top: 18px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.65); }
.hero__entrar a { color: var(--blanco); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.hero__entrar a:hover { border-color: var(--naranja-claro); }
@media (max-width: 760px) {
  .top__nav { display: none; }
  .top__entrar { margin-left: auto; padding: 0 14px; }
  .top__entrar-mas { display: none; }
  .top__in { gap: 12px; }
  .top .btn--wa { width: 42px; padding: 0; }
  .top .btn--wa span { display: none; }
  .top__in { justify-content: space-between; height: 64px; }
  .marca img { width: 34px; height: 34px; }
}

/* Secciones */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sec__head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1.04; font-weight: 800; max-width: 16ch; }
.sec__sub { margin-top: 14px; color: var(--tinta-2); font-size: 1.08rem; max-width: 52ch; }

/* Modal de video */
.modal { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 20px; background: var(--noche-2); overflow: visible; }
.modal::backdrop { background: rgba(5, 7, 16, 0.86); backdrop-filter: blur(6px); }
.modal__marco { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; position: relative; isolation: isolate; }
.modal__marco iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__pronto { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; color: var(--blanco); }
.modal__pronto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.14; z-index: -1; }
.modal__pronto p { max-width: 40ch; font-size: 1.05rem; }
.modal__pronto b { display: block; font: 800 1.5rem/1.2 var(--f-display); margin-bottom: 6px; }
.modal__x { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea-osc); background: rgba(255, 255, 255, 0.1); color: var(--blanco); cursor: pointer; font-size: 1rem; }

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