:root {
  --bg: #15082a;
  --bg-deep: #0f0520;
  --surface: #1e0f3d;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(216, 180, 254, 0.18);
  --text: #f5f3ff;
  --muted: #c4b5fd;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-800: #6b21a8;
  --purple-900: #581c87;
  --purple-950: #3b0764;
  --fuchsia: #d946ef;
  --shadow-white: 0 8px 32px rgba(255, 255, 255, 0.08);
  --radius: 1.1rem;
  --container: 1120px;
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page-shine {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
}

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.85rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-500), var(--fuchsia));
  box-shadow: var(--shadow-white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-400), #e879f9);
}

.btn-outline {
  color: var(--purple-200);
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--purple-400);
  color: #fff;
}

.btn-hero-outline {
  color: var(--purple-950);
  border: 2px solid rgba(168, 85, 247, 0.45);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-white);
  font-weight: 700;
}

.btn-hero-outline:hover {
  background: #fff;
  border-color: var(--purple-600);
}

.btn-block {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(21, 8, 42, 0.9);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-white);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple-400), var(--fuchsia));
  color: var(--purple-950);
  font-weight: 800;
  box-shadow: var(--shadow-white);
}

.brand-mark.layout-sm {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.brand-accent {
  color: var(--purple-300);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 0.65rem;
  color: var(--purple-100);
  font-size: 0.92rem;
  font-weight: 500;
  transition: 0.25s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-cta-desktop {
  display: none;
}

.nav-cta-mobile {
  margin-top: 0.5rem;
}

.nav-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: #fff;
  transition: 0.25s ease;
}

.navbar.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #d8b4fe 0%,
    #c084fc 10%,
    #a855f7 28%,
    #9333ea 48%,
    #7e22ce 65%,
    #6b21a8 80%,
    #581c87 92%,
    #3b0764 100%
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59, 7, 100, 0.28);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(147, 51, 234, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10rem;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.hero-orb-1 {
  top: 5rem;
  left: 15%;
  width: 18rem;
  height: 18rem;
  background: rgba(168, 85, 247, 0.25);
}

.hero-orb-2 {
  right: 12%;
  bottom: 8rem;
  width: 20rem;
  height: 20rem;
  background: rgba(217, 70, 239, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 52rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 180, 254, 0.7);
  color: var(--purple-800);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-white);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-title-light {
  color: #fff;
}

.hero-title-grad {
  background: linear-gradient(90deg, #f3e8ff, #f5d0fe, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1.25rem auto 0;
  max-width: 38rem;
  color: #f3e8ff;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.hero-stats {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 28rem;
  margin-inline: auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 180, 254, 0.55);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-white);
}

.stat-card:last-child {
  grid-column: 1 / -1;
}

.stat-card strong {
  display: block;
  color: var(--purple-800);
  font-size: 1.6rem;
}

.stat-card span {
  color: #475569;
  font-size: 0.8rem;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--purple-300);
  z-index: 2;
  animation: float 2.4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* Sections */
.section {
  position: relative;
  padding: 5.5rem 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(59, 7, 100, 0.35), rgba(21, 8, 42, 0.2));
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-header h2,
.zone-info h2 {
  margin: 0.45rem 0 0.85rem;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.section-header p,
.section-lead {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--purple-300);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow-soft {
  color: #e9d5ff;
}

.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-white);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-lift:hover,
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.12);
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

.cards-3,
.cards-4 {
  grid-template-columns: 1fr;
}

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.25), rgba(217, 70, 239, 0.18));
}

.icon-soft {
  background: rgba(168, 85, 247, 0.22);
}

.glass-card h3,
.mini-card h4,
.info-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.glass-card p,
.mini-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-more {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--purple-300);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hover-lift:hover .card-more {
  opacity: 1;
}

.cta-banner {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.cta-banner h3 {
  margin: 0 0 0.5rem;
}

.center-actions {
  margin-top: 2rem;
  text-align: center;
}

.step-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
}

.docs-card {
  margin-top: 2.5rem;
}

.docs-card h3 {
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: #e9d5ff;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple-300);
  font-weight: 700;
}

/* Zona asociados */
.zone-grid {
  display: grid;
  gap: 2rem;
}

.mini-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.login-card {
  padding: 1.75rem;
}

.login-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.login-head h3 {
  margin: 0;
}

.login-head p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #e9d5ff;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(216, 180, 254, 0.25);
  background: rgba(168, 85, 247, 0.1);
  color: #fff;
  font: inherit;
  outline: none;
  transition: 0.25s ease;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(233, 213, 255, 0.45);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.form select option {
  color: #1e0f3d;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 2.8rem;
}

.toggle-pass {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.check {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  grid-template-columns: none !important;
}

.check input {
  width: auto;
}

.login-foot {
  margin: 1.25rem 0 0;
  text-align: center;
  color: #a78bfa;
  font-size: 0.85rem;
}

.login-foot a,
.form-row a {
  color: var(--purple-300);
}

.login-foot a:hover,
.form-row a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Asociados */
.stats-big {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

.big-stat {
  text-align: center;
  padding: 2.2rem 1.4rem;
}

.big-stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple-400), var(--purple-700));
  font-size: 1.4rem;
}

.big-stat-icon.accent {
  background: linear-gradient(135deg, #e879f9, var(--purple-700));
}

.big-number {
  margin: 0;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--purple-300), #f5d0fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stats-note {
  margin: 2rem 0 0;
  text-align: center;
  color: #9478c8;
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-info {
  display: grid;
  gap: 0.85rem;
}

.info-card small {
  display: block;
  margin-top: 0.35rem;
  color: #9478c8;
}

.form-2 {
  display: grid;
  gap: 1rem;
}

.alert {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.85rem;
  text-align: center;
}

.alert-ok {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(59, 7, 100, 0.55), #12061f);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  color: var(--muted);
  max-width: 28rem;
  margin: 1rem 0;
}

.footer h4 {
  margin: 0 0 0.85rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer ul a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer ul a:hover {
  color: var(--purple-300);
}

.social {
  display: flex;
  gap: 0.55rem;
}

.social a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: rgba(168, 85, 247, 0.12);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: lowercase;
  transition: 0.25s ease;
}

.social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #9478c8;
  font-size: 0.88rem;
  text-align: center;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

.delay-4 {
  transition-delay: 0.32s;
}

/* Responsive */
@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-card:last-child {
    grid-column: auto;
  }

  .cards-3,
  .cards-4,
  .mini-grid,
  .stats-big,
  .form-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-banner {
    grid-template-columns: 1.4fr auto;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }

  .nav-cta-desktop {
    display: inline-flex;
  }

  .nav-cta-mobile,
  .nav-toggle {
    display: none;
  }

  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .zone-grid,
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (max-width: 959px) {
  .navbar.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(21, 8, 42, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
  }
}
