/* ============================================================
   Vertex Core — Landing Page
   Estilo: dark SaaS (Arion) con formalidad corporativa
   Color de marca: rojo #D4203F (tomado del logo)
   Temas: oscuro (default) y claro, vía [data-theme] en <html>
   ============================================================ */

/* ---------- Variables de tema ---------- */
:root {
  --accent: #D4203F;              /* rojo Vertex (logo) */
  --accent-soft: rgba(212, 32, 63, 0.14);
  --accent-glow: rgba(212, 32, 63, 0.4);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

/* Tema oscuro (default) */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0A0A;
  --bg-card: #101010;
  --text: #F5F5F5;
  --text-muted: #A3A3A3;
  --border: #262626;
  --faint: #4A4A4A;
  --chip-bg: rgba(255, 255, 255, 0.02);
  --nav-bg: rgba(14, 14, 14, 0.65);
  --nav-bg-scrolled: rgba(12, 12, 12, 0.9);
  --grid-dot: #2A2A2A;
  --field-bg: #0D0D0D;
  --placeholder: #4A4A4A;
  --btn-bg: #FFFFFF;
  --btn-color: #0A0A0A;
  --btn-bg-hover: #FFE9ED;
  --fade-bg: linear-gradient(to bottom, rgba(10, 10, 10, 0.85), transparent);
  --brand-grad: linear-gradient(180deg, #3D3D3D 0%, #1A1A1A 60%, transparent 130%);
  --nav-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* Tema claro */
[data-theme="light"] {
  color-scheme: light;
  --bg: #FAFAFA;
  --bg-card: #FFFFFF;
  --text: #141414;
  --text-muted: #5C5C5C;
  --border: #E4E4E4;
  --faint: #B8B8B8;
  --chip-bg: rgba(0, 0, 0, 0.03);
  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.92);
  --grid-dot: #E1E1E1;
  --field-bg: #F3F3F3;
  --placeholder: #9A9A9A;
  --accent-soft: rgba(212, 32, 63, 0.09);
  --accent-glow: rgba(212, 32, 63, 0.25);
  --btn-bg: #141414;
  --btn-color: #FFFFFF;
  --btn-bg-hover: #2E2E2E;
  --fade-bg: linear-gradient(to bottom, rgba(250, 250, 250, 0.9), transparent);
  --brand-grad: linear-gradient(180deg, #8A8A8A 0%, #C4C4C4 60%, transparent 130%);
  --nav-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* transición suave al cambiar de tema */
  transition: background 0.4s ease, color 0.4s ease;
}

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

img,
svg {
  display: block;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: 720px;
}

/* Texto con degradado rojo animado (palabra destacada del hero) */
.text-gradient {
  background: linear-gradient(100deg, #FF5C77, var(--accent) 40%, #8F1229 60%, #FF5C77);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ---------- Animaciones de entrada ---------- */

/* Aparición al hacer scroll (activada desde script.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  /* --d: retardo escalonado opcional, lo asigna script.js */
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Elementos del hero que entran al cargar la página (--ad: retardo) */
.anim-load {
  opacity: 0;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--ad, 0s);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Líneas del titular: suben desde una máscara */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em; /* evita cortar descendentes (g, y, p) */
}

.line__inner {
  display: block;
  transform: translateY(110%);
  animation: line-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--ad, 0s);
}

@keyframes line-up {
  to { transform: translateY(0); }
}

/* ---------- Botones tipo "pill" ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease,
              border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-color);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--btn-bg-hover);
  box-shadow: 0 0 0 1px rgba(212, 32, 63, 0.35),
              0 8px 32px var(--accent-glow);
}

.btn--secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--chip-bg);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 32, 63, 0.6);
  background: var(--accent-soft);
}

.btn--sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ---------- Navegación flotante tipo "pill" ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1120px, calc(100% - 32px));
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: var(--nav-shadow);
}

.nav__inner {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: 20px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
}

.nav__logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
}

/* Bloque derecho: links + toggles + CTA */
.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav__links {
  display: none;
  gap: 26px;
  margin-right: 12px;
}

.nav__links a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

/* Subrayado rojo animado en los links */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: none;
}

/* Botones de icono: idioma y tema */
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: rgba(212, 32, 63, 0.55);
  background: var(--accent-soft);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Botón de idioma: pastilla con texto */
.icon-btn--lang {
  width: auto;
  padding: 0 13px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Sol/luna según el tema activo */
.icon-sun {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: block;
}

[data-theme="light"] .icon-moon {
  display: none;
}

/* Botón hamburguesa (solo móvil) */
.nav__toggle {
  display: grid;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Menú móvil desplegable */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 16px 20px 20px;
  background: var(--nav-bg-scrolled);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a:not(.btn) {
  padding: 10px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.nav__mobile .btn {
  margin-top: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Retícula de puntos de fondo */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, #000 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, #000 100%);
}

/* Aurora suave con efecto "breath" (respiración):
   tres manchas de color difuminadas que pulsan y derivan lento.
   script.js le aplica parallax suave con el cursor */
.hero__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate(var(--px, 0), var(--py, 0));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  /* la aurora se desvanece solo en los bordes extremos del hero */
  mask-image: radial-gradient(ellipse 95% 90% at 50% 45%, #000 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at 50% 45%, #000 45%, transparent 85%);
}

.hero__aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: breath 8s ease-in-out infinite;
}

.hero__aurora-blob--1 {
  --o: 0.36;
  width: 48vw;
  height: 48vw;
  max-width: 620px;
  max-height: 620px;
  top: -15%;
  left: 6%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.hero__aurora-blob--2 {
  --o: 0.26;
  width: 36vw;
  height: 36vw;
  max-width: 480px;
  max-height: 480px;
  top: 18%;
  right: -4%;
  background: radial-gradient(circle, #FF5C77 0%, transparent 70%);
  animation-duration: 10s;
  animation-delay: -4s;
}

.hero__aurora-blob--3 {
  --o: 0.18;
  width: 32vw;
  height: 32vw;
  max-width: 420px;
  max-height: 420px;
  bottom: -4%;
  left: 24%;
  background: radial-gradient(circle, #A21C5B 0%, transparent 70%);
  animation-duration: 12s;
  animation-delay: -8s;
}

/* Respiración con recorrido amplio: se nota el movimiento */
@keyframes breath {
  0%, 100% { transform: translate(0, 0) scale(1);        opacity: var(--o); }
  50%      { transform: translate(8%, -6%) scale(1.25);  opacity: calc(var(--o) * 1.7); }
}

/* En modo claro la aurora se suaviza un poco */
[data-theme="light"] .hero__aurora-blob--1 { --o: 0.20; }
[data-theme="light"] .hero__aurora-blob--2 { --o: 0.14; }
[data-theme="light"] .hero__aurora-blob--3 { --o: 0.11; }

.hero__content {
  position: relative;
  padding-top: 96px;
  text-align: center;
}

/* Insignia tipo pill con punto rojo pulsante */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--chip-bg);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.hero__title {
  font-size: clamp(2.5rem, 7.5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin-inline: auto;
}

.hero__subtitle {
  margin: 24px auto 0;
  max-width: 54ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Indicador de scroll con línea animada */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scroll-hint 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scroll-hint {
  to { top: 110%; }
}

/* ---------- Marquesina de especialidades ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Separador: rombo rojo entre elementos */
.marquee__track i {
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.7;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Métricas ---------- */
.metrics {
  border-bottom: 1px solid var(--border);
}

.grid--metrics {
  display: grid;
  grid-template-columns: 1fr; /* móvil: un pilar por fila */
}

.metric {
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.metric:first-child {
  border-top: 0;
}

.metric__value {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric__value em {
  font-style: normal;
  color: var(--accent);
}

/* Variante "palabra clave" (pilares en lugar de cifras) */
.metric__value--word {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--text) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric__label {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Secciones genéricas ---------- */
.section {
  padding: 104px 0;
  border-bottom: 1px solid var(--border);
}

.section__head {
  margin-bottom: 52px;
}

/* Etiqueta de sección tipo pill con punto rojo */
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section__title {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 24ch;
}

.section__text {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid--services {
  grid-template-columns: 1fr;
}

.grid--steps {
  grid-template-columns: 1fr;
  list-style: none;
}

/* ---------- Tarjetas con efecto "spotlight" ----------
   script.js actualiza --mx / --my con la posición del cursor */
.card,
.step {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.4s ease;
}

/* Brillo rojo que sigue al cursor */
.card::before,
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
                              var(--accent-soft), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover,
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 32, 63, 0.45);
}

.card:hover::before,
.step:hover::before {
  opacity: 1;
}

/* Número de la tarjeta (esquina superior derecha) */
.card__number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--faint);
  transition: color 0.3s ease;
}

.card:hover .card__number {
  color: var(--accent);
}

.card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--accent-soft);
  color: #FF5C77;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .card__icon {
  color: var(--accent);
}

.card:hover .card__icon {
  border-color: rgba(212, 32, 63, 0.5);
  box-shadow: 0 0 24px var(--accent-glow);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  position: relative;
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card__text {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Pasos del proceso ---------- */
.step__number {
  position: relative;
  display: block;
  margin-bottom: 16px;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #FF5C77, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step__title {
  position: relative;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__text {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Diferenciadores (Nosotros) ---------- */
.values {
  list-style: none;
  margin-top: 36px;
  display: grid;
  gap: 14px;
}

.values__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.98rem;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.4s ease;
}

.values__item:hover {
  border-color: rgba(212, 32, 63, 0.4);
  transform: translateX(4px);
}

.values__check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #FF5C77;
}

[data-theme="light"] .values__check {
  color: var(--accent);
}

.values__check svg {
  width: 13px;
  height: 13px;
}

/* ---------- Contacto ---------- */
.section--cta {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  text-align: left;
}

/* Resplandor rojo detrás del CTA, también con respiración */
.section--cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 70vw;
  max-width: 800px;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  animation: cta-breath 8s ease-in-out infinite;
}

@keyframes cta-breath {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.12; }
  50%      { transform: translateX(-50%) scale(1.15); opacity: 0.22; }
}

[data-theme="light"] .section--cta::before {
  opacity: 0.1;
}

.contact {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: start;
}

.cta__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.cta__text {
  margin: 16px 0 28px;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 44ch;
}

/* Correo directo en pastilla */
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact__email svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.contact__email:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 32, 63, 0.55);
  box-shadow: 0 6px 24px var(--accent-glow);
}

/* Tarjeta del formulario */
.contact__form {
  display: grid;
  gap: 18px;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* Campo honeypot (trampa para bots): siempre oculto */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.4s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
}

/* Foco con anillo rojo de marca */
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact__submit {
  justify-self: start;
}

.contact__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Mensaje de estado del envío */
.contact__status {
  font-size: 0.9rem;
  min-height: 1.4em;
}

.contact__status.is-success {
  color: #22A45D;
}

.contact__status.is-error {
  color: #FF5C77;
}

/* ---------- Footer ---------- */
.footer {
  padding: 72px 0 40px;
  overflow: hidden;
}

/* Nombre de la marca en tipografía enorme con degradado */
.footer__brand {
  font-size: clamp(3.5rem, 14vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  margin-bottom: 48px;
  white-space: nowrap;
}

/* Al pasar el cursor, el nombre se enciende en rojo */
.footer__brand:hover {
  background: linear-gradient(180deg, #FF5C77 0%, var(--accent) 60%, #5A0B1C 130%);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   Velo superior: desvanecido del contenido bajo la nav
   ============================================================ */
.nav-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 90;               /* debajo de la nav (100) */
  pointer-events: none;
  background: var(--fade-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* la máscara hace que el blur y el fondo se desvanezcan hacia abajo */
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Solo aparece al hacer scroll (en el top no hace falta) */
.nav-fade.is-scrolled {
  opacity: 1;
}

/* ============================================================
   Títulos con revelado de máscara al hacer scroll
   (variante por transición; la del hero usa animación al cargar)
   ============================================================ */
.title-reveal .line__inner--scroll {
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  animation: none; /* desactiva la animación de carga del hero */
}

.title-reveal.is-visible .line__inner--scroll {
  transform: translateY(0);
}

/* ============================================================
   Responsive — móvil primero, breakpoints hacia arriba
   ============================================================ */
@media (min-width: 640px) {
  .grid--services {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  /* En fila, el divisor pasa de arriba a la izquierda */
  .metric {
    padding: 44px 24px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .metric:first-child {
    border-left: 0;
  }

  .footer__row {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

  .grid--steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }

  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle,
  .nav__mobile {
    display: none;
  }
}

/* ============================================================
   Tira de textura diagonal (separador estilo Arion)
   ============================================================ */
.hatch {
  height: 14px;
  border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(
    -45deg,
    var(--border) 0 1px,
    transparent 1px 9px
  );
  opacity: 0.55;
}

/* ============================================================
   FAQ: acordeón
   ============================================================ */
.faq {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 4px;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--accent);
}

/* Ícono + que rota a × al abrir */
.faq__icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease, background 0.3s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.is-open .faq__icon {
  transform: rotate(135deg);
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* Respuesta con animación de altura (técnica grid 0fr → 1fr) */
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer p {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-inline: 4px;
}

.faq__item.is-open .faq__answer p {
  padding-bottom: 22px;
}

/* ============================================================
   Accesibilidad: respeta a quien prefiere menos movimiento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .anim-load,
  .line__inner,
  .title-reveal .line__inner--scroll {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .marquee__track {
    animation: none;
  }

  .btn,
  .card,
  .step,
  .values__item,
  .hero__aurora,
  .hero__aurora-blob,
  .hero__eyebrow-dot,
  .hero__scroll-line::after,
  .text-gradient,
  .section--cta::before,
  .nav-fade {
    animation: none;
    transition: none;
  }
}
