/* =====================================================
   FLAMA – Landing Page (Mobile-First)
   ===================================================== */

:root {
  --orange: #ff6b35;
  --orange-dark: #e55a2b;
  --orange-deeper: #c94a1e;
  --orange-glow: rgba(255, 107, 53, .32);
  --orange-faint: rgba(255, 107, 53, .09);
  --dark: #0d1117;
  --dark-2: #161b22;
  --text: #1f2937;
  --muted: #6b7280;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --white: #fff;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 20px rgba(0,0,0,.09);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.16);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--orange-glow);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--r);
  border: 2px solid rgba(255,255,255,.35);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,.08); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* =====================================================
   SECTION UTILITIES
   ===================================================== */
.section { padding: 64px 20px; }

.section-badge {
  display: inline-block;
  background: var(--orange-faint);
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}
.section-header h2 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.section-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}

/* =====================================================
   DEMO OVERLAY
   ===================================================== */
.demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}
.close-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  color: white;
  background: rgba(255,255,255,.12);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 17px;
  border: 1.5px solid rgba(255,255,255,.3);
  transition: background .2s;
}
.close-btn:hover { background: rgba(255,255,255,.22); }

.demo-form {
  background: white;
  padding: 36px 28px;
  border-radius: var(--r-lg);
  width: 90%;
  max-width: 370px;
  text-align: center;
  margin: 0 auto;
}
.demo-form img { width: 150px; margin: 0 auto 20px; }
.demo-form h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; color: var(--dark); }
.demo-form input {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color .2s;
}
.demo-form input:focus { outline: none; border-color: var(--orange); }
.demo-form button {
  width: 100%;
  background: var(--orange);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--r);
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font);
  font-size: 1rem;
  transition: background .2s;
}
.demo-form button:hover { background: var(--orange-dark); }

.video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
.video-card {
  background: white;
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: 100%;
  display: none;
}
.video-card h3 { margin-bottom: 12px; font-weight: 700; color: var(--dark); }
.video-card iframe {
  width: 100%;
  height: 70vh;
  max-height: 80vh;
  min-height: 400px;
  border: none;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  aspect-ratio: 9/16;
}
.video-description { color: var(--muted); font-size: .9rem; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 62px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo img { height: 46px; }

.main-nav { display: none; gap: 4px; align-items: center; }
.main-nav a {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  letter-spacing: .01em;
}
.main-nav a:hover {
  color: white;
  background: rgba(255,255,255,.08);
}

.nav-demo-btn {
  display: none;
  background: var(--orange);
  color: white;
  font-family: var(--font);
  font-weight: 600;
  font-size: .88rem;
  padding: 9px 18px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.nav-demo-btn:hover { background: var(--orange-dark); }

.hamburger-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: rgba(10,14,20,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 16px 20px 24px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-demo-btn {
  margin-top: 14px;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border-radius: var(--r);
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
}
.mobile-demo-btn:hover { background: var(--orange-dark); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(160deg, #1a1208 0%, #22180a 50%, #1e1510 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 72px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://actosfallacervantes.es/flama/fondo2.png');
  background-size: cover;
  background-position: center;
  opacity: .28;
}
/* Decorative blob */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255,179,71,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,107,53,.18);
  border: 1px solid rgba(255,107,53,.4);
  color: #ffb08a;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: .03em;
}
.hero h1 {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.1;
  color: white;
  margin-bottom: 18px;
  letter-spacing: -.03em;
}
.gradient-text {
  background: linear-gradient(90deg, #ffb347 0%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.08rem;
  color: #ffffff;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
/* btn-ghost override: blanco sobre fondo oscuro */
.hero .btn-ghost {
  color: white;
  border-color: rgba(255,255,255,.35);
}
.hero .btn-ghost:hover {
  border-color: white;
  background: rgba(255,255,255,.08);
}

/* =====================================================
   VALUE PROPS (reemplaza pills strip)
   ===================================================== */
.value-props {
  background: var(--dark-2);
  padding: 40px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.value-props-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.value-prop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r);
  transition: background .2s;
}
.value-prop:hover { background: rgba(255,255,255,.07); }
.vp-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,107,53,.18);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb08a;
  font-size: .88rem;
  flex-shrink: 0;
}
.vp-text h4 {
  font-size: .88rem;
  font-weight: 700;
  color: white;
  margin-bottom: 3px;
  line-height: 1.3;
}
.vp-text p {
  font-size: .77rem;
  color: rgba(255,255,255,.5);
  line-height: 1.45;
}

/* =====================================================
   INTRO (video + text)
   ===================================================== */
.visual-intro { background: white; padding: 64px 24px; }

.intro-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: center;
}
/* =====================================================
   PHONE FRAME
   ===================================================== */
.intro-video-wrap {
  width: 100%;
  max-width: 240px;
}


.phone-frame {
  background: linear-gradient(150deg, #3c3c3e 0%, #1e1e20 35%, #111113 100%);
  border-radius: 36px;
  padding: 10px 8px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.6),
    inset 1px 0 0 rgba(255,255,255,.06),
    inset -1px 0 0 rgba(0,0,0,.3),
    0 0 0 1px #0a0a0a,
    0 2px 0 1px #2a2a2c,
    0 40px 80px rgba(0,0,0,.65),
    0 12px 28px rgba(0,0,0,.4),
    0 4px 8px rgba(0,0,0,.3);
}

.phone-frame::before {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: rgba(255,255,255,.16);
  border-radius: 2px;
  margin: 0 auto 8px;
}

.phone-frame video {
  width: 100%;
  aspect-ratio: 9/16;
  display: block;
  border-radius: 8px;
}

.intro-text-wrap { text-align: center; }
.intro-text-wrap h2 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.intro-text-wrap p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 14px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.intro-text-wrap .btn { margin-top: 10px; }

/* =====================================================
   FEATURES
   ===================================================== */
.features-section { background: var(--gray-50); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}
.feature-card {
  background: white;
  border-radius: var(--r);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 46px;
  height: 46px;
  background: var(--orange-faint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--orange);
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.feature-card p {
  font-size: .825rem;
  color: var(--muted);
  line-height: 1.55;
}

/* =====================================================
   BENEFITS
   ===================================================== */
.benefits-section { background: var(--dark); color: white; }
.benefits-section .section-header h2 { color: white; }
.benefits-section .section-header p { color: rgba(255,255,255,.55); }
.benefits-section .section-badge {
  background: rgba(255,107,53,.2);
  color: #ffb08a;
  border: 1px solid rgba(255,107,53,.38);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.benefit-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  padding: 20px 16px;
  transition: background .2s;
}
.benefit-card:hover { background: rgba(255,255,255,.07); }
.bicon {
  width: 40px;
  height: 40px;
  background: rgba(255,107,53,.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb08a;
  font-size: 1rem;
  margin-bottom: 12px;
}
.benefit-card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}
.benefit-card p {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
}

/* =====================================================
   EXPERIENCE (SLIDER)
   ===================================================== */
.experience-section { background: white; overflow: hidden; }

.features-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 24px 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.features-slider::-webkit-scrollbar { display: none; }

.feature-slide {
  flex: 0 0 78vw;
  max-width: 310px;
  background: var(--gray-50);
  border-radius: var(--r);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--gray-200);
  transition: box-shadow .2s;
}
.feature-slide:hover { box-shadow: var(--shadow); }
.feature-slide img { width: 100%; height: 190px; object-fit: cover; }
.feature-slide-content { padding: 18px 16px; }
.feature-slide h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-slide p { font-size: .82rem; color: var(--muted); line-height: 1.5; }

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 0 24px;
}
.slider-arrow {
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: background .2s, transform .15s;
  font-family: var(--font);
}
.slider-arrow:hover { background: var(--orange-dark); transform: scale(1.06); }

/* =====================================================
   DEMO SECTION
   ===================================================== */
.demo-section { background: var(--gray-50); text-align: center; }

.demo-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.demo-card {
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.demo-card-image { height: 200px; background-size: cover; background-position: center top; }
.demo-card-content { padding: 22px 20px; }
.demo-card-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.demo-card-content p { font-size: .875rem; color: var(--muted); margin-bottom: 18px; line-height: 1.55; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-section { background: white; text-align: center; }

.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 36px 24px 28px;
  max-width: 660px;
  margin: 0 auto;
}
.quote-icon {
  display: block;
  font-size: 3.5rem;
  color: rgba(255,107,53,.25);
  line-height: .8;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.testimonial-card > p {
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .95rem;
}
.author-name { font-weight: 700; color: var(--dark); font-size: .9rem; }

/* =====================================================
   CTA
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, #ff6b35 0%, #c94a1e 100%);
  padding: 72px 24px;
  text-align: center;
  color: white;
}
.cta-section h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: var(--r);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 44px 24px 24px;
}
.footer-content {
  max-width: 1080px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-brand strong { color: white; font-size: 1.1rem; font-weight: 800; }
.footer-brand p { font-size: .85rem; margin-top: 6px; }
.footer-links-group h4 {
  color: var(--orange);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-links-group a {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  margin-bottom: 9px;
  transition: color .2s;
}
.footer-links-group a:hover { color: white; }
.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* =====================================================
   DESKTOP 768+
   ===================================================== */
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .nav-demo-btn { display: block; }
  .hamburger-btn { display: none; }
  .mobile-nav { display: none !important; }

  .hero h1 { font-size: 4rem; }
  .hero p { font-size: 1.2rem; }
  .hero-actions { flex-direction: row; justify-content: center; }

  .section { padding: 88px 5%; }
  .section-header h2 { font-size: 2.5rem; }

  .value-props { padding: 44px 5%; }
  .value-props-grid { grid-template-columns: repeat(3, 1fr); }

  .intro-grid { flex-direction: row; gap: 72px; }
  .intro-grid .intro-video-wrap { order: 2; flex: 0 0 260px; max-width: 260px; }
  .intro-grid .intro-text-wrap { order: 1; flex: 1; text-align: left; }
  .intro-text-wrap h2 { font-size: 2.4rem; }
  .intro-text-wrap p { margin-left: 0; margin-right: 0; }

  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .feature-slide { flex: 0 0 300px; }

  .demo-cards { flex-direction: row; }
  .demo-card { flex: 1; }

  .footer-content { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 40px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.8rem; }
  .features-grid { gap: 24px; }
  .intro-grid .intro-video-wrap { flex: 0 0 270px; max-width: 270px; }
}

/* =====================================================
   CONTACT POPUP
   ===================================================== */
.contact-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, .7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.contact-overlay.active { display: flex; }

.contact-modal {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 36px 28px 28px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: contactIn .25s ease-out;
}
@keyframes contactIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: .9rem;
  transition: background .2s;
}
.contact-close:hover { background: var(--gray-200); }

.contact-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.contact-flame { font-size: 2rem; display: block; margin-bottom: 6px; }
.contact-modal-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.contact-modal-header p  { font-size: .875rem; color: var(--muted); }

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.contact-field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
}
.contact-field input,
.contact-field select {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.contact-field input:focus,
.contact-field select:focus { border-color: var(--orange); }
.contact-field select { cursor: pointer; }

.contact-submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s;
}
.contact-submit:hover:not(:disabled) { background: var(--orange-dark); transform: translateY(-1px); }
.contact-submit:disabled { opacity: .65; cursor: not-allowed; }

.contact-privacy {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  margin-top: 10px;
}

.contact-success {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0 10px;
  gap: 10px;
}
.contact-success-icon { font-size: 3rem; }
.contact-success h3 { font-size: 1.3rem; font-weight: 800; }
.contact-success p  { color: var(--muted); font-size: .95rem; }
