/* ══════════════════════════════════════════
   Haceme el Favor — Design System
   Fonts: Space Grotesk (headings) + Inter (body)
   ══════════════════════════════════════════ */

:root {
  --primary: #17C3B2;
  --primary-dark: #129E90;
  --secondary: #FFB800;
  --bg: #060B18;
  --surface: #0D1425;
  --card: #131E35;
  --card-hover: #192845;
  --text: #E2E8F0;
  --text-secondary: #8B9DC3;
  --text-muted: #4A5A7A;
  --coral: #FF6B6B;
  --success: #34D399;
  --blue: #4A9FF5;
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* ── Typography ─────────────────────────── */

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1, .text-hero { font-size: clamp(3rem, 7vw, 5rem) !important; }
h2, .text-display { font-size: clamp(2.5rem, 5.5vw, 4rem) !important; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important; }
h4 { font-size: 1.2rem !important; }

.text-hero-xl { font-size: clamp(3.5rem, 8vw, 6rem) !important; letter-spacing: -0.03em; }

/* Page hero — tighter top spacing */
.page-hero { padding: 85px 0 40px; margin-top: -72px; }
@media (min-width: 768px) { .page-hero { padding: 100px 0 60px; } }
@media (min-width: 1024px) { .page-hero { padding: 120px 0 70px; } }

p, li, span, a, label, input, textarea, select, button {
  font-family: 'Inter', sans-serif;
}

/* ── Scrollbar ──────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ── Glass Card ─────────────────────────── */

.glass-card {
  background: rgba(19, 30, 53, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.glass-card:hover {
  background: rgba(25, 40, 69, 0.75);
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.glass-card-static {
  background: rgba(19, 30, 53, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

/* ── Buttons ────────────────────────────── */

.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #17C3B2, #0EA5E9);
  color: white;
  padding: 14px 36px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 20px rgba(23, 195, 178, 0.3);
  border: none;
  cursor: pointer;
}
.btn-glow:hover {
  box-shadow: 0 8px 30px rgba(23, 195, 178, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  padding: 14px 36px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(23, 195, 178, 0.1);
  color: white;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFB800, #FF8C00);
  color: #0A0A0A;
  padding: 14px 36px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.3);
  border: none;
  cursor: pointer;
}
.btn-gold:hover {
  box-shadow: 0 8px 30px rgba(255, 184, 0, 0.45);
  transform: translateY(-2px);
}

/* ── Main content offset for fixed navbar ─ */
main { padding-top: 72px; }

/* ── Section Layout ─────────────────────── */

.section { padding: 70px 0; position: relative; }
.section-sm { padding: 35px 0; position: relative; }
@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .section-sm { padding: 50px 0; }
}

.section-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.section-tag-gold {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--secondary) 0%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

/* ── Navbar ──────────────────────────────── */

.navbar-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 11, 24, 0.85);
  border-bottom: 1px solid var(--border);
}

/* ── Scroll Animations ──────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0,0,.2,1), transform 0.6s cubic-bezier(0,0,.2,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s cubic-bezier(0,0,.2,1), transform 0.6s cubic-bezier(0,0,.2,1);
}
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s cubic-bezier(0,0,.2,1), transform 0.6s cubic-bezier(0,0,.2,1);
}
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-children > *:nth-child(1) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.40s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.48s; }

/* ── Gradient Text ──────────────────────── */

.gradient-text {
  background: linear-gradient(135deg, #17C3B2, #4A9FF5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, #FFB800, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Badges ─────────────────────────────── */

.badge-active {
  background: rgba(52, 211, 153, 0.12);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.badge-coming {
  background: rgba(74, 90, 122, 0.15);
  color: #8B9DC3;
  border: 1px solid rgba(74, 90, 122, 0.25);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.badge-prelaunch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 195, 178, 0.08);
  border: 1px solid rgba(23, 195, 178, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--primary);
}

/* ── Coral Disclaimer ───────────────────── */

.coral-disclaimer {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  color: #FF6B6B;
  font-size: 13px;
  line-height: 1.6;
}

/* ── Category Colors ────────────────────── */

.cat-mandados { border-left: 3px solid var(--primary); }
.cat-gestiones { border-left: 3px solid var(--secondary); }
.cat-informacion { border-left: 3px solid var(--blue); }

/* ── Icon Container ─────────────────────── */

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box-lg {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Phone Mockup ───────────────────────── */

.phone-mockup {
  width: 290px;
  height: 630px;
  background: linear-gradient(145deg, #2A2A2E 0%, #1A1A1E 100%);
  border-radius: 52px;
  border: 1.5px solid rgba(255,255,255,0.12);
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 30px 70px rgba(0,0,0,0.6),
    0 0 100px rgba(23,195,178,0.05);
  overflow: hidden;
  position: relative;
}
/* Dynamic Island */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background: #000;
  border-radius: 24px;
  z-index: 20;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
/* Titanium side buttons — left */
.phone-mockup::after {
  content: '';
  position: absolute;
  left: -2.5px;
  top: 130px;
  width: 3px;
  height: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 0 0 2px 2px;
}

/* ── Apple Watch Mockup ────────────── */
.watch-mockup {
  width: 170px;
  height: 210px;
  background: linear-gradient(145deg, #2A2A2E 0%, #1A1A1E 100%);
  border-radius: 40px;
  border: 1.5px solid rgba(255,255,255,0.12);
  padding: 5px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 20px 50px rgba(0,0,0,0.5),
    0 0 60px rgba(23,195,178,0.04);
  overflow: hidden;
  position: relative;
}
/* Digital Crown */
.watch-mockup::before {
  content: '';
  position: absolute;
  right: -4px;
  top: 52px;
  width: 5px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.08) 100%);
  border-radius: 2px;
  z-index: 20;
}
/* Side button */
.watch-mockup::after {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 90px;
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 1.5px;
}

/* ── Step Number ────────────────────────── */

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Animations ─────────────────────────── */

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(23,195,178,0.3); }
  50% { box-shadow: 0 0 20px rgba(23,195,178,0.5); }
}
.pulse-glow { animation: pulse-glow 2s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.float { animation: float 4s ease-in-out infinite; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.float-slow { animation: float-slow 6s ease-in-out infinite; }

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Decorative ─────────────────────────── */

.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-radial-teal {
  background: radial-gradient(ellipse at center, rgba(23,195,178,0.06) 0%, transparent 70%);
}
.bg-radial-gold {
  background: radial-gradient(ellipse at center, rgba(255,184,0,0.05) 0%, transparent 70%);
}

/* ── Legal Document ─────────────────────── */

.legal-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text); }
.legal-content h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--text); }
.legal-content p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.8; }
.legal-content ul, .legal-content ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-secondary); }
.legal-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.legal-content strong { color: var(--text); }

/* ── Form Inputs ────────────────────────── */

.input-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.input-dark:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,195,178,0.15);
}
.input-dark::placeholder {
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────── */

/* Buttons — smaller on mobile */
@media (max-width: 639px) {
  .btn-glow, .btn-ghost, .btn-gold {
    padding: 12px 28px;
    font-size: 14px;
    width: 100%;
  }
  .coral-disclaimer {
    padding: 12px 16px;
    font-size: 12px;
  }
  .glass-card { padding: 20px; }
  .icon-box { width: 44px; height: 44px; }
  .icon-box-lg { width: 56px; height: 56px; }
}

/* SVG containers — prevent overflow on mobile */
.svg-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .svg-responsive { overflow: visible; }
}

/* Hide wide SVGs on mobile, show simplified version */
.desktop-svg { display: none; }
@media (min-width: 768px) { .desktop-svg { display: block; } }
.mobile-svg { display: block; }
@media (min-width: 768px) { .mobile-svg { display: none; } }

/* ── Knowledge Base Article Styles ─────── */

.kb-article-body h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem) !important;
  color: #fff;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.kb-article-body h2:first-child { margin-top: 0; }

.kb-article-body h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
}

.kb-article-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.kb-article-body ul,
.kb-article-body ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.kb-article-body li {
  line-height: 1.8;
  margin-bottom: 0.35rem;
}

.kb-article-body strong { color: var(--text); }

.kb-article-body .kb-svg-wrap {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}
.kb-article-body .kb-svg-wrap svg {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: var(--radius-lg);
}

.kb-article-body .kb-info-box {
  background: rgba(23,195,178,0.06);
  border: 1px solid rgba(23,195,178,0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  line-height: 1.7;
}
.kb-article-body .kb-info-box strong { color: var(--primary); }

.kb-article-body .kb-warn-box {
  background: rgba(255,107,107,0.06);
  border: 1px solid rgba(255,107,107,0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  line-height: 1.7;
}
.kb-article-body .kb-warn-box strong { color: var(--coral); }

.kb-article-body .kb-gold-box {
  background: rgba(255,184,0,0.06);
  border: 1px solid rgba(255,184,0,0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  line-height: 1.7;
}
.kb-article-body .kb-gold-box strong { color: var(--secondary); }

.kb-article-body .kb-steps {
  counter-reset: kb-step;
  list-style: none;
  padding-left: 0;
}
.kb-article-body .kb-steps li {
  counter-increment: kb-step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
}
.kb-article-body .kb-steps li::before {
  content: counter(kb-step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ── Print styles for Corré la Voz flyer ── */
@media print {
  body { background: white !important; }
  nav, footer, .page-hero, #tips, .btn-glow, .btn-ghost,
  section:not(#flyer) { display: none !important; }
  #flyer { padding: 0 !important; margin: 0 !important; }
  #flyer .print-flyer { border-radius: 0 !important; }
  #flyer .print-flyer svg { width: 100% !important; max-width: 100% !important; }
  .fade-up { opacity: 1 !important; transform: none !important; }
}
