/* Protocolo Valeria — Landing styles */

:root {
  --bg-deep: #050208;
  --bg-elevated: #0c0612;
  --purple-900: #1e0b2e;
  --purple-700: #4c1d95;
  --purple-500: #7c3aed;
  --purple-400: #a855f7;
  --cyan: #22d3ee;
  --text: #e8e4ef;
  --text-muted: #9b8fb0;
  --glass: rgba(20, 10, 35, 0.45);
  --glass-border: rgba(168, 85, 247, 0.22);
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
  --gutter: clamp(0.875rem, 3.5vw + 0.35rem, 1.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

#hero,
#problema,
#solucion,
#features,
#destacado,
#usos,
#cta-final {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Background parallax layer */
.bg-parallax {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(76, 29, 149, 0.45), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 50%, rgba(124, 58, 237, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(34, 211, 238, 0.06), transparent 45%),
    var(--bg-deep);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.orb-1 {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: #5b21b6;
  top: -10%;
  right: -5%;
}

.orb-2 {
  width: min(45vw, 360px);
  height: min(45vw, 360px);
  background: #4c1d95;
  bottom: 20%;
  left: -10%;
}

.orb-3 {
  width: min(35vw, 280px);
  height: min(35vw, 280px);
  background: rgba(34, 211, 238, 0.35);
  top: 45%;
  left: 40%;
  opacity: 0.35;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.7;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(8, 4, 14, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(168, 85, 247, 0.12), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  z-index: 2;
}

.nav__brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.2rem 0.35rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(34, 211, 238, 0.15));
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
}

.nav__brand-logo {
  display: block;
  width: 34px;
  height: 35px;
  object-fit: contain;
}

@media (max-width: 380px) {
  .nav__brand-logo {
    width: 30px;
    height: 31px;
  }
}

.nav__brand-text {
  font-size: 0.95rem;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav__brand-text {
    display: none;
  }
}

.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-500), #6366f1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.45);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(168, 85, 247, 0.55);
}

@media (max-width: 380px) {
  .nav__cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left, 0px)) 0 max(var(--gutter), env(safe-area-inset-right, 0px));
}

.container--narrow {
  max-width: 720px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple-500), #6366f1 55%, #7c3aed);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 32px rgba(124, 58, 237, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 48px rgba(168, 85, 247, 0.65),
    0 12px 32px rgba(0, 0, 0, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn--ghost:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.25);
}

.btn--large {
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  padding: 0.95rem 1.75rem;
  min-height: 52px;
}

@media (max-width: 420px) {
  .section--cta .btn--large {
    width: 100%;
    max-width: 100%;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: max(calc(var(--header-h) + 1.5rem), calc(env(safe-area-inset-top, 0px) + var(--header-h) + 0.75rem));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: max(calc(var(--header-h) + 0.75rem), env(safe-area-inset-top, 0px));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }
}

.hero__content {
  width: 100%;
  max-width: min(720px, 100%);
  text-align: center;
}

.hero__badge {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(0.7rem, 2.2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
  text-wrap: balance;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 5.5vw + 0.65rem, 3.35rem);
  line-height: 1.06;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #e9d5ff 45%, var(--purple-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.35));
  overflow-wrap: break-word;
  word-break: break-word;
  text-wrap: balance;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw + 0.5rem, 1.35rem);
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 32ch;
  padding: 0 0.25rem;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

@media (max-width: 420px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    padding: 0 0.25rem;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 100%;
  }
}

/* Sections */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.section--pitch {
  border-top: 1px solid rgba(168, 85, 247, 0.08);
}

.container--pitch {
  max-width: 680px;
}

.pitch__problem {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.pitch__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pitch__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw + 0.35rem, 2.35rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--text);
}

.pitch__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pitch__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: clamp(1rem, 2.2vw + 0.35rem, 1.12rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.pitch__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-400), var(--cyan));
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.55);
}

.pitch__solution {
  padding: clamp(1.25rem, 3vw, 1.65rem) clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.12);
}

.pitch__solution-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-400);
}

.pitch__solution-text {
  margin: 0;
  font-size: clamp(1.08rem, 2.5vw + 0.4rem, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  text-wrap: balance;
}

.pitch__solution-text strong {
  color: var(--purple-400);
  font-weight: 700;
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
}

@media (max-width: 640px) {
  .section--pitch .container--pitch {
    text-align: center;
  }

  .pitch__list li {
    padding-left: 0;
    text-align: left;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
  }

  .pitch__list li::before {
    display: none;
  }

  .pitch__list {
    gap: 1rem;
    border-left: 2px solid rgba(168, 85, 247, 0.35);
    padding-left: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 38rem;
  }
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw + 0.35rem, 2.25rem);
  text-align: center;
  margin: 0 0 0.5rem;
  padding: 0 0.25rem;
  text-wrap: balance;
}

.section__subheading {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-size: clamp(0.95rem, 2vw + 0.35rem, 1.05rem);
  padding: 0 0.25rem;
  text-wrap: balance;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 1.5rem) clamp(1rem, 2.5vw, 1.35rem);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow:
    0 0 40px rgba(124, 58, 237, 0.25),
    0 16px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.feature-card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Highlight */
.section--highlight {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.highlight__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw + 0.5rem, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0 0.35rem;
  line-height: 1.25;
  background: linear-gradient(90deg, var(--text), var(--purple-400), var(--cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(168, 85, 247, 0.45));
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Use cases */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

@media (max-width: 1024px) {
  .use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .use-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.use-card {
  min-width: 0;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.15rem, 3vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(30, 11, 46, 0.6), rgba(12, 6, 18, 0.85));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.use-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 36px rgba(124, 58, 237, 0.2);
}

.use-card__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.35));
}

.use-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.use-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* CTA */
.section--cta {
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.container--cta {
  text-align: center;
  max-width: 640px;
  width: 100%;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw + 0.4rem, 2.4rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  text-wrap: balance;
  padding: 0 0.25rem;
}

.cta__sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  margin: 0 0 2rem;
  padding: 0 0.25rem;
  text-wrap: balance;
}

/* Footer */
.site-footer {
  padding: 2rem 0 max(2rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  background: rgba(5, 2, 8, 0.9);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer__main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 280px);
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer__legal {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 36ch;
}

.footer__credit {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__credit a {
  color: var(--purple-400);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.footer__credit a:hover {
  color: var(--text);
  border-bottom-color: rgba(168, 85, 247, 0.5);
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
}

@media (max-width: 540px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .footer__main {
    align-items: center;
  }

  .footer__legal {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb {
    filter: blur(60px);
  }
}
