:root {
  --brand: #E11D48;
  --brand-600: #BE123C;
  --night: #0B0B12;
  --night-800: #14141f;
  --ink: #F8FAFC;
  --ink-muted: #9AA3B2;
  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.14);
  --success: #22C55E;
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--night);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Degraded looping video background (sits below the tint, glow and grid) */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Degraded: desaturated + darkened, but visible under the lighter tint. */
  filter: grayscale(100%) brightness(0.5) contrast(1.05);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.bg-video.is-visible { opacity: 0.32; }

/* Dark + crimson wash over the video to keep it on-brand and text readable */
.bg-tint {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 18, 0.50) 0%, rgba(11, 11, 18, 0.64) 55%, rgba(11, 11, 18, 0.80) 100%),
    radial-gradient(70% 60% at 50% 15%, rgba(225, 29, 72, 0.14), transparent 70%);
  pointer-events: none;
}

/* Ambient crimson glow behind the content */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(225, 29, 72, 0.28), transparent 70%),
    radial-gradient(45% 40% at 85% 100%, rgba(225, 29, 72, 0.12), transparent 70%);
  animation: pulse 9s ease-in-out infinite;
  pointer-events: none;
}

/* Faint racing-grid motif */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 80% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(225, 29, 72, 0.35));
}

.wordmark {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.wordmark span { color: var(--brand); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(225, 29, 72, 0.4);
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.08);
}

.headline {
  margin: 0.25rem 0 0;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.headline span {
  color: var(--brand);
  background: linear-gradient(120deg, #F43F5E, #E11D48);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
}
.lede strong { color: var(--ink); font-weight: 600; }

/* Glass contact card */
.card {
  width: 100%;
  text-align: left;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

.card-title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}
.card-sub {
  margin: 0.35rem 0 1.5rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* SEO content: "¿Qué es?" prose + FAQ */
.prose {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.prose strong { color: var(--ink); font-weight: 600; }

.faq-item + .faq-item {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.faq-item h3 {
  margin: 0 0 0.35rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.faq-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #CBD3E0;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 108px; }

.field input::placeholder,
.field textarea::placeholder { color: #6B7280; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.22);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--brand);
}

.error {
  margin: 0.4rem 0 0;
  min-height: 1rem;
  font-size: 0.8rem;
  color: #FB7185;
}

.btn {
  width: 100%;
  min-height: 48px;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease, opacity 0.2s ease;
}
.btn:hover { background: var(--brand-600); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.35);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2rem;
}
.status.ok { color: var(--success); }
.status.err { color: #FB7185; }

.recaptcha-note {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: #6B7280;
}
.recaptcha-note a { color: #9AA3B2; }

.foot {
  color: #5B6472;
  font-size: 0.8rem;
}
.foot p { margin: 0; }

/* Entrance animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.stack.reveal { animation-delay: 0.05s; }
.card.reveal  { animation-delay: 0.18s; }
.foot.reveal  { animation-delay: 0.3s; }

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* Hide the default reCAPTCHA v3 badge; we show the required legal note instead */
.grecaptcha-badge { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .glow, .spinner { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .field input, .field textarea, .btn { transition: none; }
  /* No autoplaying motion: JS also skips loading it, this is the CSS backstop. */
  .bg-video { display: none; }
}
