/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:      #7A35A1;
  --accent-light:#9B4DC8;
  --accent-glow: rgba(122, 53, 161, 0.35);
  --bg:          #0D0D12;
  --bg2:         #13131C;
  --bg3:         #1A1A27;
  --text:        #F0EDF5;
  --muted:       #9B96A8;
  --border:      rgba(122, 53, 161, 0.25);
  --gold:        #F5C842;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── UTIL ── */
.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-accent { color: var(--accent-light); }

/* ── NOTIFICATION TOAST ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 280px;
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: slideIn 0.4s ease, fadeOut 0.5s ease 4.5s forwards;
}

.toast strong { color: var(--accent-light); }

@keyframes slideIn {
  from { transform: translateX(-110%); opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateX(-110%); }
}

/* ── TOP BAR ── */
.topbar {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── VIDEO HERO ── */
.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  background: var(--bg);
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 18, 0.45) 0%,
    rgba(13, 13, 18, 0.75) 100%
  );
}

/* ── HERO ── */
.hero {
  padding: 70px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background: rgba(122, 53, 161, 0.2);
  border: 1px solid var(--border);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 16px;
}

.hero-detail {
  font-size: 0.95rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 36px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  padding: 18px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 30px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px var(--accent-glow); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-block;
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  background: transparent;
}

.btn-ghost:hover { background: rgba(122,53,161,0.15); }

/* ── URGENCY ── */
.urgency {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.urgency::before {
  content: '⏳';
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── FEATURES STRIP ── */
.features-strip {
  background: var(--bg2);
  padding: 36px 20px;
}

.features-strip .container {
  max-width: 100%;
  padding: 0 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  width: 100%;
}

.feature-item .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.feature-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-item span {
  font-size: 0.83rem;
  color: var(--muted);
}

/* ── SECTION ── */
.section {
  padding: 72px 20px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-intro {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 580px;
  margin-bottom: 40px;
}

/* ── LEARN CARDS ── */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.learn-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.learn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--accent-glow);
}

.learn-card .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.learn-card p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── STORY ── */
.story-section {
  background: var(--bg2);
}

.story-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
}

.story-box::before {
  content: '"';
  position: absolute;
  top: -10px; left: 24px;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

.story-box p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.story-box p:last-child { margin-bottom: 0; }

.story-highlight {
  background: rgba(122,53,161,0.15);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 24px 0;
  font-weight: 600;
  color: var(--text) !important;
  font-size: 1rem !important;
}

/* ── SOCIAL PROOF ── */
.proof-strip {
  padding: 48px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(122,53,161,0.15), rgba(122,53,161,0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.proof-item big {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── WHO IS IT FOR ── */
.for-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.for-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.for-item .check {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.for-item strong {
  display: block;
  font-size: 0.97rem;
  margin-bottom: 4px;
}

.for-item p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── CTA FINAL ── */
.cta-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ── */
footer {
  padding: 28px 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ── SCROLL ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CONTACT SECTION ── */
.contact-section {
  padding: 64px 20px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.contact-section h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-section > .container > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CONTACT FORM ── */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: -6px;
}

.form-feedback {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 8px;
}

.form-feedback.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ── RESPONSIVE — Desktop (>1024px) ── */
@media (min-width: 1025px) {
  .container { max-width: 860px; padding: 0 40px; }
  .hero { padding: 80px 40px 70px; }
  .section { padding: 80px 40px; }
  .hero-video-wrapper { max-height: 560px; }
  .hero-video-wrapper video { max-height: 560px; }
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-numbers { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── RESPONSIVE — Tablet (601–1024px) ── */
@media (min-width: 601px) and (max-width: 1024px) {
  .container { max-width: 700px; padding: 0 24px; }
  .hero { padding: 60px 24px 52px; }
  .hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
  .section { padding: 60px 24px; }
  .hero-video-wrapper { max-height: 380px; }
  .hero-video-wrapper video { max-height: 380px; }
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-numbers { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── RESPONSIVE — Móvil (≤600px) ── */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .topbar { font-size: 0.78rem; padding: 8px 12px; }
  .hero { padding: 40px 16px 36px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-detail { font-size: 0.85rem; }
  .section { padding: 44px 16px; }
  .section h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .story-box { padding: 24px 16px; }
  .btn-primary { padding: 15px 22px; font-size: 0.92rem; width: 100%; text-align: center; }
  .hero-video-wrapper { max-height: 240px; }
  .hero-video-wrapper video { max-height: 240px; }
  .learn-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .proof-numbers { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .for-item { flex-direction: column; gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-submit { font-size: 0.92rem; }
}

/* ── RESPONSIVE — Móvil pequeño (≤360px) ── */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-tag { font-size: 0.68rem; padding: 5px 12px; }
  .hero-subtitle { font-size: 0.88rem; }
  .btn-primary { font-size: 0.84rem; padding: 13px 16px; }
  .section h2 { font-size: 1.3rem; }
  .proof-item big { font-size: 1.8rem; }
  .feature-item strong { font-size: 0.9rem; }
  .features-grid { grid-template-columns: 1fr; }
  .learn-card { padding: 20px 16px; }
  .story-box { padding: 18px 12px; }
  .topbar { font-size: 0.72rem; }
  .hero-video-wrapper { max-height: 180px; }
  .hero-video-wrapper video { max-height: 180px; }
}
