/* Tipografías del diseño, autoalojadas: las mismas que carga el lienzo, pero sin CDN. */
@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-400.woff2") format("woff2");
  /* Un solo corte cubriendo 400-900: el navegador no engrosa la letra por su cuenta. */
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cascadia Code";
  src: url("../fonts/CascadiaCode-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cascadia Code";
  src: url("../fonts/CascadiaCode-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --ink: #0C0A26;
  --cream: #F3F6EA;
  --purple: #6641E0;
  --lime: #B7D546;
  --cyan: #00C0CE;
  --font-display: "Bebas Neue", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--cyan); }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { box-shadow: 0 10px 24px rgba(183,213,70,0.4); color: var(--ink); }
.btn-outline { background: transparent; border: 1px solid rgba(243,246,234,0.5); color: var(--cream); }
.btn-outline:hover { background: rgba(243,246,234,0.1); color: var(--cream); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { color: var(--cream); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px; gap: 20px;
}
.nav-logo { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav-links a {
  color: var(--cream); font-size: 13px; letter-spacing: 0.03em; transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--lime); }
.nav-cta { background: var(--lime); color: var(--ink); padding: 10px 20px; border-radius: 999px; font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: 0.04em; transition: transform 0.2s ease; }
.nav-cta:hover { transform: scale(1.06); color: var(--ink); }
/* .nav-links a (0,1,1) le ganaba a .nav-cta (0,1,0) y el botón heredaba el
   color crema del nav. El diseño lo quiere en tinta sobre lima. */
.nav-links a.nav-cta, .drawer a.nav-cta { color: var(--ink); }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: 1px solid rgba(243,246,234,0.2); border-radius: 8px; cursor: pointer; flex-shrink: 0; }
.hamburger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--cream); }

#menu-toggle { display: none; }
.drawer-backdrop, .drawer {
  position: fixed; inset: 0; z-index: 199;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  background: rgba(12,10,38,0.6);
}
.drawer {
  left: auto; width: min(280px, 78vw); background: var(--ink);
  display: flex; flex-direction: column; gap: 22px; padding: 24px 26px;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#menu-toggle:checked ~ .drawer-backdrop, #menu-toggle:checked ~ .drawer { opacity: 1; pointer-events: auto; }
#menu-toggle:checked ~ .drawer { transform: translateX(0); }
.drawer a { color: var(--cream); font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.drawer-close { align-self: flex-end; background: none; border: none; color: var(--cream); font-size: 26px; cursor: pointer; }

/* Hero */
.hero {
  position: relative; background: var(--ink); overflow: hidden;
  padding: 120px 40px 100px; display: flex; align-items: center; min-height: 620px;
}
.hero-gear { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: 560px; max-width: 60vw; opacity: 0.22; }
.hero-content { position: relative; max-width: 680px; display: flex; flex-direction: column; gap: 22px; }
.hero-content .eyebrow { color: var(--lime); }
.hero h1 { font-size: clamp(44px, 6.5vw, 84px); line-height: 1.02; color: var(--cream); white-space: pre-line; }
.hero p { font-size: 16px; line-height: 1.7; color: rgba(243,246,234,0.8); max-width: 520px; margin: 0; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Sections */
section { padding: 100px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(36px, 5vw, 54px); margin: 0 0 14px; }
.section-head p { font-size: 15px; opacity: 0.7; margin: 0; }

.services-light { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.service-card {
  background: #fff; border-top: 4px solid var(--purple); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(12,10,38,0.18); }
.service-dot { width: 34px; height: 34px; border-radius: 50%; transition: transform 0.3s ease; }
.service-card:hover .service-dot { transform: rotate(15deg) scale(1.15); }
.service-card h3 { font-size: 21px; }
.service-card p { font-size: 13.5px; line-height: 1.6; opacity: 0.7; margin: 0; }

.banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); padding: 0; }
.banner div { padding: 90px 48px; display: flex; align-items: center; }
.banner h2 { font-size: clamp(40px, 6vw, 70px); }
.banner-left { background: var(--purple); }
.banner-left h2 { color: var(--cream); }
.banner-right { background: var(--lime); justify-content: flex-end; }
.banner-right h2 { color: var(--ink); text-align: right; }

.process-dark { background: var(--ink); }
.process-dark .section-head p, .process-dark .section-head h2 { color: var(--cream); }
.process-dark .section-head p { opacity: 0.7; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.process-card {
  padding: 30px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 210px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.process-card:hover { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(0,0,0,0.35); }
.process-card:nth-child(odd) { background: var(--purple); }
.process-card:nth-child(even) { background: #1a1640; }
.process-num { font-family: var(--font-display); font-weight: 900; font-size: 44px; color: var(--lime); display: inline-block; }
.process-card h3 { font-size: 21px; color: var(--cream); }
.process-card p { font-size: 13.5px; line-height: 1.6; color: rgba(243,246,234,0.8); margin: 0; }

.faq-light { background: var(--cream); }
.faq-wrap { max-width: 820px; }
.faq-item { border-bottom: 1px solid rgba(12,10,38,0.13); padding: 20px 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 900; font-size: 19px; text-transform: uppercase; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--purple); font-size: 22px; font-family: var(--font-mono); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { font-size: 14px; line-height: 1.7; opacity: 0.7; margin: 12px 0 0; }

.contact-dark { background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.contact-copy h2 { font-size: clamp(34px, 5vw, 50px); color: var(--cream); margin: 0 0 14px; }
.contact-copy p { font-size: 15px; color: rgba(243,246,234,0.7); margin: 0 0 28px; }
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
/* inline-flex, no inline: en inline el relleno vertical no cuenta para la
   altura de línea, así que al envolver a dos filas las píldoras se encimaban
   10px —el <li> medía 20px y la píldora 42. */
.contact-links a { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px; font-family: var(--font-display); font-weight: 900; font-size: 15px; text-transform: uppercase; }
.contact-links .link-lime { background: var(--lime); color: var(--ink); }
.contact-links .link-outline { border: 1px solid rgba(243,246,234,0.35); color: var(--cream); }

.contact-form { display: flex; flex-direction: column; gap: 14px; background: var(--cream); padding: 30px; border-radius: 12px; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 13px 15px; border: 1px solid rgba(12,10,38,0.13); border-radius: 8px;
  font-family: var(--font-mono); font-size: 14px; background: #fff; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form button { background: var(--ink); color: var(--cream); border: none; padding: 14px; border-radius: 8px; font-family: var(--font-display); font-weight: 900; font-size: 16px; cursor: pointer; text-transform: uppercase; }
.form-msg { font-family: var(--font-mono); font-size: 13px; margin: 0; }
.form-msg.success { color: var(--purple); }
.form-msg.error { color: #c0405a; }
form[data-state="sending"] button { opacity: 0.6; cursor: wait; }

footer {
  background: var(--ink); padding: 40px; padding-bottom: 72px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid rgba(243,246,234,0.13);
}
footer img { height: 26px; }
footer p { font-size: 12px; color: rgba(243,246,234,0.55); margin: 0; }

@media (min-width: 768px) { footer { padding-bottom: 48px; } }

@media (max-width: 640px) {
  .nav { padding: 12px 18px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 20px 60px; }
  section { padding: 60px 20px; }
  .contact-grid { gap: 36px; }
}

/* Selector de idioma */
.lang-toggle {
  background: none;
  border: 1px solid rgba(243,246,234,0.45);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--lime); color: var(--lime); }
.drawer .lang-toggle { align-self: flex-start; }
/* .drawer a (0,1,1) le imponía 22px en mayúsculas al botón, que además es hijo
   de un flex en columna: salía ocupando todo el ancho del cajón. */
.drawer a.nav-cta { font-size: 16px; text-transform: none; align-self: flex-start; padding: 12px 24px; }
