/* ==========================================================================
   Evolution Power — /ep landing
   Brand kit (isolated from Ordis Automata brand): black + gold + white
   ========================================================================== */

:root {
  --ink: #000000;
  --surface: #0a0a0a;
  --surface-2: #131110;
  --surface-3: #1c1815;
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --gold: #c9a961;
  --gold-bright: #ddc07f;
  --gold-line: rgba(201, 169, 97, 0.28);
  --gold-line-strong: rgba(201, 169, 97, 0.55);

  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: min(1120px, 92vw);
  --radius: 2px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75em 1.25em;
  z-index: 999;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.4vw + 0.6rem, 0.8rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow-center {
  text-align: center;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--gold-line-strong);
  color: var(--white);
  padding: 0.6em 1.35em;
  font-size: 0.85rem;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand-mark {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.6vw + 0.6rem, 0.85rem);
  letter-spacing: 0.12em;
  font-weight: 500;
}
.brand-mark-accent {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-cta {
  display: none;
}
@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.lang-btn {
  padding: 0.3em 0.45em;
  color: var(--white-50);
  transition: color 0.2s ease;
}
.lang-btn.is-active {
  color: var(--gold);
}
.lang-btn:hover {
  color: var(--gold-bright);
}
.lang-sep {
  color: var(--white-50);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #241d12 0%, #000000 55%),
              linear-gradient(180deg, #000000 0%, #0a0805 55%, #000000 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.75) 78%, #000 100%);
}

.sound-toggle {
  position: absolute;
  top: calc(1.1rem + 64px);
  right: max(1.25rem, calc((100vw - var(--container)) / 2));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.sound-toggle:hover {
  border-color: var(--gold-line-strong);
  color: var(--gold);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 6rem 0 4.5rem;
}

.hero-headline {
  font-size: clamp(2.1rem, 4vw + 1rem, 4.1rem);
  max-width: 16ch;
  color: var(--white);
}
.hero-headline strong {
  color: var(--gold);
  font-weight: 800;
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  color: var(--white-70);
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
}

.hero-phone {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--white-70);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-phone:hover {
  color: var(--gold);
  border-color: var(--gold-line-strong);
}

.hero-disclaimer {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-50);
}

/* ==========================================================================
   Sections (shared rhythm)
   ========================================================================== */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.section-title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.3rem);
  max-width: 20ch;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

/* ---------- Benefits ---------- */
.benefits {
  border-top: 1px solid var(--gold-line);
}

.spec-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
}

.spec-card {
  background: var(--surface);
  padding: 2.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  text-align: center;
}

.spec-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem);
  color: var(--gold);
}

.spec-label {
  font-size: 0.9rem;
  color: var(--white-70);
  max-width: 22ch;
}

@media (min-width: 720px) {
  .spec-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- How it works ---------- */
.how {
  border-top: 1px solid var(--gold-line);
}

.steps {
  margin-top: 3rem;
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
}

.step {
  padding-top: 1.4rem;
  border-top: 1px solid var(--gold-line);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--white-70);
  font-size: 0.94rem;
  max-width: 34ch;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
  }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  border-top: 1px solid var(--gold-line);
  background: var(--surface);
  padding: clamp(2.6rem, 4vw, 3.6rem) 0;
}
.trust-bar .eyebrow {
  max-width: var(--container);
  margin-inline: auto;
}

.trust-list {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.2rem;
}

.trust-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--white-70);
  white-space: nowrap;
}

/* ---------- Multi-service strip ---------- */
.multi-strip {
  border-top: 1px solid var(--gold-line);
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.4rem, 4vw, 3.2rem) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.multi-headline {
  font-size: 0.98rem;
  color: var(--white-70);
  flex: 1 1 320px;
}

.multi-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line-strong);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.multi-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.multi-strip .eyebrow {
  flex-basis: 100%;
  margin-bottom: 0;
}

/* ---------- Final CTA ---------- */
.final-cta {
  border-top: 1px solid var(--gold-line);
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-headline {
  font-size: clamp(1.7rem, 2.4vw + 1rem, 2.7rem);
  max-width: 18ch;
}

.final-sub {
  margin-top: 1rem;
  color: var(--white-70);
  max-width: 40ch;
}

.final-actions {
  margin-top: 2rem;
  justify-content: center;
}

/* ---------- Book / inspection form (v30) ---------- */
.book {
  border-top: 1px solid var(--gold-line);
  scroll-margin-top: 5rem; /* el header sticky no debe tapar el título al anclar */
}

.book-sub {
  margin: 1rem auto 0;
  text-align: center;
  color: var(--white-70);
  max-width: 44ch;
}

.book-form {
  margin: 2.6rem auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem 1.6rem;
}
@media (min-width: 720px) {
  .book-form {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.field input,
.field select {
  background: var(--surface-2);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  color-scheme: dark;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus {
  border-color: var(--gold);
}

/* Honeypot: fuera de pantalla para humanos, presente en el DOM para bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: 0;
}

.book-submit {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.book-error {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--white);
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
}
.book-error a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line-strong);
  white-space: nowrap;
}
.book-error a:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.book-consent {
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--white-50);
  max-width: 78ch;
}

/* ---------- Thank-you page (gracias.html) ---------- */
.thanks {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 70svh;
  padding: clamp(4rem, 10vw, 8rem) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.thanks-headline {
  font-size: clamp(2rem, 3.4vw + 1rem, 3.6rem);
  max-width: 18ch;
}

.thanks-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  color: var(--white-70);
}

.thanks-phone {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem);
  color: var(--gold);
}
.thanks-phone:hover {
  color: var(--gold-bright);
}

.thanks-back {
  margin-top: 2.6rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--gold-line);
  padding: 2.6rem 0 3.2rem;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.footer-legal,
.footer-disclaimer {
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--white-50);
  max-width: 78ch;
}

/* Compliance qualifier under the financing spec grid — same treatment as footer legal */
.spec-note {
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--white-50);
  text-align: center;
  margin-top: 18px;
}

.footer-disclaimer {
  font-style: italic;
}
