:root {
  --color-bg: #08080a;
  --color-bg-soft: #101014;
  --color-surface: #17171d;
  --color-surface-2: #20202a;
  --color-primary: #ff0033;
  --color-primary-2: #ff3355;
  --color-text: #f4f4f5;
  --color-muted: #a4a4ad;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-danger: #d71920;
  --color-success: #14b86a;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(255, 0, 51, 0.2), 0 24px 70px rgba(255, 0, 51, 0.12);
  --container: 1160px;
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 0, 51, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 20%, rgba(255, 51, 85, 0.08), transparent 28rem),
    linear-gradient(180deg, #08080a 0%, #0b0b10 100%);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.5;
}

body.modo-gris {
  --color-bg: #e6e6e8;
  --color-bg-soft: #d6d6da;
  --color-surface: #f5f5f6;
  --color-surface-2: #ededf0;
  --color-text: #111114;
  --color-muted: #52525c;
  --color-border: rgba(0, 0, 0, 0.14);
  background: linear-gradient(180deg, #f2f2f4 0%, #d7d7db 100%);
  color-scheme: light;
}

img,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99999;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 42px);
  background: rgba(12, 12, 16, 0.88);
  border-bottom: 1px solid rgba(255, 0, 51, 0.42);
  backdrop-filter: blur(18px);
}

body.modo-gris .site-header {
  background: rgba(245, 245, 246, 0.9);
}

.brand {
  color: var(--color-primary);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-decoration: none;
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 800;
  padding: 9px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  background: rgba(255, 0, 51, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  box-shadow: 0 12px 30px rgba(255, 0, 51, 0.28);
}

.btn--primary:hover:not(:disabled) {
  box-shadow: var(--shadow-glow);
}

.btn--ghost,
.btn--theme {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border);
}

body.modo-gris .btn--ghost,
body.modo-gris .btn--theme {
  background: rgba(0, 0, 0, 0.04);
}

.btn--danger {
  color: #fff;
  background: var(--color-danger);
}

.page-shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.page-title {
  margin-bottom: 22px;
}

.page-title h1,
.hero h1 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.page-title h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.page-title p:not(.eyebrow),
.hero__text {
  max-width: 720px;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero {
  width: min(100% - 32px, var(--container));
  min-height: calc(100vh - 80px);
  display: grid;
  align-content: center;
  margin: 0 auto;
  padding: 76px 0;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(3rem, 9vw, 7.6rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.features {
  width: min(100% - 32px, var(--container));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: -40px auto 70px;
}

.feature-card {
  min-height: 155px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.feature-card h2 {
  margin: 0 0 10px;
  color: var(--color-primary);
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label,
.auth-card label {
  color: var(--color-text);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.modo-gris input,
body.modo-gris select,
body.modo-gris textarea {
  background: rgba(0, 0, 0, 0.04);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 0, 51, 0.32);
  outline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 0, 51, 0.1);
}

small {
  color: var(--color-muted);
}

.status-line {
  min-height: 1.5em;
  color: var(--color-muted);
}

.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;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a,
  .site-nav .btn {
    min-height: 40px;
    padding-inline: 11px;
  }

  .features {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .hero {
    min-height: auto;
  }
}

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