/**
 * styles.css v2 — Origen Digital MX
 * Dirección: "Editorial Structural"
 *   - Tipografía editorial gigante (H1 protagonista)
 *   - Grid sutil de fondo en secciones cálidas
 *   - Etiquetas de sección en JetBrains Mono estilo comentario de código
 *   - Bento cards con tarjeta oscura firma (bracket watermark)
 *   - Alternancia cálido/blanco entre secciones
 */


/* ============================================
   1. TOKENS
   ============================================ */
:root {
  /* Marca */
  --brand: #0E3A35;
  --brand-hover: #0a2b27;

  /* Texto */
  --text-strong: #16211f;
  --text: #5a5a56;
  --text-muted: #8a8983;
  --text-subtle: #a6a49b;

  /* Fondos */
  --bg-white: #ffffff;
  --bg-warm: #F7F5EF;

  /* Bordes y líneas */
  --border: #e5e3da;
  --border-strong: #c9c7bd;
  --hairline: rgba(14, 58, 53, 0.14);

  /* WhatsApp */
  --whatsapp: #25D366;
  --whatsapp-hover: #1ea855;

  /* Estados */
  --error: #b91c1c;

  /* Tipografía */
  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Radios */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 14px;

  /* Transiciones */
  --t-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Sombras Premium */
  --shadow-sm: 0 4px 12px rgba(14, 58, 53, 0.04), 0 1px 2px rgba(14, 58, 53, 0.02);
  --shadow-md: 0 12px 24px rgba(14, 58, 53, 0.08), 0 4px 8px rgba(14, 58, 53, 0.04);
  --shadow-glow: 0 0 24px rgba(14, 58, 53, 0.2);

  /* Layout */
  --container: 1120px;
  --pad-x: 1.25rem;
}

@media (min-width: 768px) {
  :root { --pad-x: 2.5rem; }
}


/* ============================================
   2. BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-white);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-strong);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Fondo con grid sutil (para secciones cálidas) */
.bg-grid {
  background-color: var(--bg-warm);
  background-image:
    linear-gradient(rgba(14, 58, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 58, 53, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Etiqueta de sección estilo comentario de código */
.label-mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--brand);
  opacity: 0.55;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Línea estructural */
.hairline {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}


/* ============================================
   3. LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding: 3rem 0 3.5rem; }
.section--white { background: var(--bg-white); }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--brand); color: #ffffff; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section__title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
}


/* ============================================
   4. NAVBAR
   ============================================ */
.site-header {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--t-med), border-color var(--t-med), box-shadow var(--t-med), padding var(--t-med);
}

.site-header.is-scrolled {
  background: rgba(247, 245, 239, 0.85); /* var(--bg-warm) con opacidad */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: transparent;
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: padding var(--t-med);
}

.site-header.is-scrolled .site-header__inner {
  padding: 0.75rem var(--pad-x);
}

.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--brand);
}

.site-header__logo .site-logo {
  height: 38px;
  width: auto;
}

.site-nav {
  display: none;
  gap: 1.6rem;
  font-size: 0.8125rem;
  align-items: center;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
}

.site-nav__link {
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast);
}

.site-nav__link:hover { color: var(--brand); }
.site-nav__link--active { color: var(--brand); font-weight: 600; }

/* CTA en navbar */
.site-nav__cta {
  background: var(--brand);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t-fast);
}

.site-nav__cta:hover { background: var(--brand-hover); color: #fff; }

.site-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-strong);
  border-radius: var(--r-sm);
}

@media (min-width: 768px) {
  .site-header__toggle { display: none; }
}

.site-nav--mobile {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem var(--pad-x) 1rem;
  border-top: 1px solid var(--hairline);
  background: var(--bg-warm);
}

.site-nav--mobile.is-open { display: flex; }

.site-nav--mobile .site-nav__link {
  padding: 0.55rem 0;
  font-size: 0.9375rem;
}

.site-nav--mobile .site-nav__cta {
  margin-top: 0.5rem;
  text-align: center;
}


/* ============================================
   5. HERO EDITORIAL
   ============================================ */
.hero {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero { 
    padding: 10rem 0 6rem; 
  }
}

.hero .label-mono { margin-bottom: 1.5rem; }

.hero__title {
  font-size: clamp(3rem, 7vw, 4.875rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--brand);
  max-width: 14em;
  margin: 0 0 2rem;
}

.hero__row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  max-width: 650px;
}

.hero__lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero__lead {
    font-size: 1.5rem;
    max-width: 750px;
  }
  .hero .container {
    transform: translateY(-6vh);
  }
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}


/* ============================================
   6. BOTONES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  line-height: 1;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  border-color: rgba(14, 58, 53, 0.3);
  color: var(--brand);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn--light { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--shadow-sm); border: 1px solid transparent; }
.btn--light:hover { background: var(--bg-warm); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: transparent; }

.btn--whatsapp { background: var(--whatsapp); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2); }
.btn--whatsapp:hover { background: var(--whatsapp-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3); }

.btn--block { width: 100%; }

.text-link {
  display: inline-block;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--brand);
  padding-bottom: 1px;
  transition: opacity var(--t-fast);
}

.text-link:hover { color: var(--brand); opacity: 0.65; }


/* ============================================
   7. BENTO CARDS
   ============================================ */
.bento {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bento--hero { grid-template-columns: 1.35fr 1fr 1fr; }
  .bento--2 { grid-template-columns: 1fr 1fr; }
  .bento--3 { grid-template-columns: 1fr 1fr 1fr; }
  .bento--4 { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .bento--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Nuevos Estilos Editoriales (Sin Tarjetas)
   ============================================ */

/* Process Grid (Flujo tipográfico) */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.process-step {
  position: relative;
  padding-top: 4rem;
}
.process-step__bg {
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.05em;
}
.process-step__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.process-step__desc {
  color: var(--text);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Features Grid (Grid Editorial con Hairlines) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 3rem;
  column-gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.feature-item {
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}
.feature-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.feature-item__desc {
  color: var(--text);
  line-height: 1.6;
}


/* Tarjeta base */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.625rem;
  transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}

.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.card--interactive:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Tarjeta oscura firma con bracket watermark */
.card--dark {
  background: var(--brand);
  border-color: var(--brand);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.card--dark:hover { 
  border-color: #11453F; 
  box-shadow: var(--shadow-glow), inset 0 0 0 1px rgba(255,255,255,0.1); 
}

.card--dark .card__watermark {
  position: absolute;
  right: -85px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  opacity: 0.13;
  pointer-events: none;
}

.card--dark .label-mono {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.625rem;
}

.card--dark p { position: relative; }

.card__title-dark {
  font-size: 1.1875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0.6rem 0 0;
}

.card__foot-dark {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-top: 0.875rem;
}

/* Tarjeta de precio */
.card-price {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card-price--highlight {
  border-top: 4px solid var(--brand);
  background: var(--bg-warm);
  position: relative;
}

.card-price__badge {
  position: absolute;
  top: -14px;
  right: 2rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.card-price .label-mono {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.625rem;
  color: var(--text-muted);
  opacity: 1;
  margin-bottom: 0.75rem;
}

.card-price__amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.card-price__unit {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.card-price__meta {
  font-size: 0.75rem;
  color: var(--text);
  margin: 0.4rem 0 0;
}

.card-price__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.9;
}

.card-price__list li {
  position: relative;
  padding-left: 1.1rem;
}

.card-price__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
}

.card-price__foot {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--brand);
  margin-top: 1rem;
  border-top: 1px solid #eeece4;
  padding-top: 0.75rem;
}

/* Tarjeta de paso numerado */
.card-step .card-step__num {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--brand);
  margin: 0 0 0.5rem;
}

.card-step__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0 0 0.25rem;
}

.card-step__desc {
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* Tarjeta punteada (add-on) */
.card--dashed {
  border-style: dashed;
  border-color: var(--border-strong);
}

/* Item del portafolio */
.portfolio-item {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--t-fast), border-color var(--t-fast);
  background: var(--bg-white);
}

.portfolio-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.portfolio-item img { width: 100%; height: auto; display: block; }

/* Grid de contacto: formulario + tarjeta WhatsApp */
.contact-grid {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1.5fr 1fr; }
}

/* Nota itálica (página proceso) */
.note-italic {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  margin: 1.5rem 0 0;
}


/* ============================================
   8. STEPS GRANDES (página Proceso)
   ============================================ */
.step-row {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline);
}

.step-row:last-of-type { border-bottom: 0; }

.step-row__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brand);
  min-width: 52px;
  line-height: 1.2;
  margin: 0;
}

.step-row__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0 0 0.4rem;
}

.step-row__desc {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}


/* ============================================
   9. CTA FINAL
   ============================================ */
.cta-final {
  text-align: center;
  padding: 3.5rem 0 4rem;
}

.cta-final__title {
  font-size: clamp(1.4rem, 3.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 0 0 0.5rem;
}

.cta-final__lead {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0 0 1.75rem;
}


/* ============================================
   10. BOTÓN FLOTANTE WHATSAPP
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 90;
  transition: transform var(--t-fast), background var(--t-fast);
  text-decoration: none;
}

.wa-float:hover {
  background: var(--whatsapp-hover);
  color: #fff;
  transform: scale(1.06);
}

.wa-float:focus-visible { outline: 3px solid var(--whatsapp); outline-offset: 3px; }

.wa-float__icon { width: 26px; height: 26px; fill: currentColor; }


/* ============================================
   11. FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-warm);
  padding: 1.5rem 0;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-subtle);
}

.site-footer__link {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-decoration: none;
  transition: color var(--t-fast);
}

.site-footer__link:hover { color: var(--text); }


/* ============================================
   12. PAGE HEADER (páginas internas)
   ============================================ */
.page-header {
  padding: 3.25rem 0 2.25rem;
}

.page-header .label-mono { margin-bottom: 1rem; }

.page-header__title {
  font-size: clamp(2.2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--brand);
  margin: 0 0 0.75rem;
}

.page-header__lead {
  font-size: 0.9375rem;
  color: var(--text);
  max-width: 460px;
  line-height: 1.6;
  margin: 0;
}


/* ============================================
   13. FORMULARIO
   ============================================ */
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}

.form-field { margin-bottom: 1.1rem; }

.form-field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.4rem;
}

.form-field__input,
.form-field__textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-strong);
  background: var(--bg-white);
  transition: border-color var(--t-fast);
}

.form-field__input::placeholder,
.form-field__textarea::placeholder { color: var(--text-subtle); }

.form-field__input:focus,
.form-field__textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-field__textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

.form-field__error {
  color: var(--error);
  font-size: 0.6875rem;
  margin-top: 4px;
  display: none;
}

.form-field.is-invalid .form-field__error { display: block; }
.form-field.is-invalid .form-field__input,
.form-field.is-invalid .form-field__textarea { border-color: var(--error); }

.form-checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.75rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox input { margin-top: 3px; cursor: pointer; flex-shrink: 0; }
.form-checkbox a { color: var(--brand); font-weight: 500; }

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  display: none;
}

.form-status.is-visible { display: block; }

.form-status--success {
  background: rgba(14, 58, 53, 0.06);
  color: var(--brand);
  border: 1px solid rgba(14, 58, 53, 0.2);
}

.form-status--error {
  background: rgba(185, 28, 28, 0.06);
  color: var(--error);
  border: 1px solid rgba(185, 28, 28, 0.2);
}


/* ============================================
   14. PÁGINA LEGAL
   ============================================ */
.legal { padding: 2.5rem 0 3.5rem; }
.legal__container { max-width: 720px; }

.legal__section { margin-bottom: 2.5rem; }
.legal__section:last-of-type { margin-bottom: 1.5rem; }

.legal__heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.legal__section p {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.7;
}

.legal__section p:last-child { margin-bottom: 0; }

.legal__list { list-style: none; padding: 0; margin: 0 0 0.75rem; }

.legal__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: var(--brand);
  border-radius: 50%;
}

.legal__list strong { color: var(--text-strong); font-weight: 500; }

.legal__link {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--brand);
}

.legal__link:hover { opacity: 0.7; }

.legal__footer {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}


/* ============================================
   15. ACCESIBILIDAD Y UTILIDADES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -44px;
  left: 8px;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: 0.75rem;
  z-index: 200;
}

.skip-link:focus { top: 8px; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   X. ANIMACIONES NEXT LEVEL
   ============================================ */

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* Efecto levitación utilitario */
.hover-lift {
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(14, 58, 53, 0.12), 0 12px 24px rgba(14, 58, 53, 0.08);
}

/* Hero Dynamic Brackets (SVG Puro) */
.bg-grid {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.bg-grid::before, .bg-grid::after {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M 80 26 L 32 54 L 32 146 L 80 174' fill='none' stroke='%230E3A35' stroke-opacity='0.08' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
  animation: floatBracketLeft 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.bg-grid::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M 120 26 L 168 54 L 168 146 L 120 174' fill='none' stroke='%230E3A35' stroke-opacity='0.08' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: floatBracketRight 15s ease-in-out infinite alternate;
  right: -50px;
  top: 100px;
}

.bg-grid::before {
  left: -100px;
  top: -100px;
}

.hero__inner, .hero .container {
  position: relative;
  z-index: 1;
}

@keyframes floatBracketLeft {
  0% { transform: translateY(0) rotate(-5deg) scale(1); }
  100% { transform: translateY(-80px) rotate(10deg) scale(1.1); }
}

@keyframes floatBracketRight {
  0% { transform: translateY(0) rotate(5deg) scale(1); }
  100% { transform: translateY(-100px) rotate(-10deg) scale(1.15); }
}
