/* ============================================
   DOMINOMED CACES 2026 — Landing Page Styles
   Colors: Blue & White
   ============================================ */

:root {
  --primary: #1e6fff;
  --primary-dark: #0d4ecb;
  --primary-darker: #0a3aa0;
  --primary-light: #4d8fff;
  --primary-lighter: #dbeafe;
  --primary-lightest: #eff6ff;
  --accent: #38bdf8;
  --dark: #0f172a;
  --dark-blue: #1e3a5f;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --white: #ffffff;
  --whatsapp: #25d366;
  --star: #fbbf24;
  --success: #22c55e;
  --danger: #ef4444;
  --font-main: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(30, 111, 255, 0.08);
  --shadow-md: 0 4px 20px rgba(30, 111, 255, 0.12);
  --shadow-lg: 0 10px 40px rgba(30, 111, 255, 0.15);
  --shadow-xl: 0 20px 60px rgba(30, 111, 255, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--primary-lightest); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

::selection { background: var(--primary); color: var(--white); }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
  background-size: 200% 100%;
  animation: progressShine 3s linear infinite;
  z-index: 2000;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
  transition: width 0.1s linear;
}

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-glow {
  animation: btnGlow 2.6s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(255,255,255,0.25), 0 4px 20px rgba(30,111,255,0.4); }
  50% { box-shadow: 0 0 42px rgba(255,255,255,0.55), 0 4px 28px rgba(30,111,255,0.6); }
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-3px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 50px;
}

.btn-whatsapp:hover {
  background: #1eb856;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 12px rgba(30, 111, 255, 0.06);
  padding: 8px 0;
}

.navbar.scrolled .logo-text { color: var(--dark); }
.navbar.scrolled .logo-text em { color: var(--primary); }
.navbar.scrolled .nav-links a { color: var(--dark); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  z-index: 1002;
}

.logo-icon {
  color: var(--accent);
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.5));
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}

.logo-text em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.navbar.scrolled .nav-toggle span { background: var(--dark); }

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, var(--primary-darker) 0%, var(--primary-dark) 35%, var(--primary) 70%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Animated blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.blob1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(56,189,248,0.5), transparent 65%);
  top: -120px; left: -120px;
  animation: blobFloat 14s ease-in-out infinite;
}

.blob2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(147,197,253,0.45), transparent 65%);
  bottom: -100px; right: -100px;
  animation: blobFloat 18s ease-in-out infinite reverse;
}

.blob3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 65%);
  top: 40%; left: 55%;
  animation: blobFloat 20s ease-in-out infinite 4s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -50px) scale(1.12); }
  66% { transform: translate(-40px, 40px) scale(0.92); }
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 200px;
}

.wave1 {
  animation: waveMove 12s linear infinite;
}

.wave2 {
  animation: waveMove 8s linear infinite reverse;
  opacity: 0.5;
}

@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-subtitle-line {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
}

.highlight {
  background: linear-gradient(120deg, var(--accent) 0%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-alt {
  color: var(--accent);
}

.hero-description {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 28px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-description strong {
  color: var(--accent);
  font-weight: 600;
}

/* Hero pills */
.hero-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  animation: pillFloat 4s ease-in-out infinite;
}

.hero-pill svg { stroke: var(--accent); flex-shrink: 0; }

.hero-pill:nth-child(2) { animation-delay: 0.7s; }
.hero-pill:nth-child(3) { animation-delay: 1.4s; }

@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  border-radius: var(--radius-xl);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-number::after { content: '+'; color: var(--accent); }
.stat-number[data-count="47"]::after { content: ''; }

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  z-index: 2;
}

.mouse {
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 3px; height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 3px;
  animation: wheelScroll 1.8s ease infinite;
}

@keyframes wheelScroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ FADE-IN (hero) ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.25s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.55s; }
.fade-in:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ SCROLL REVEAL ============ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--primary-lighter);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-tag.light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 17px;
  color: var(--gray);
  font-weight: 300;
}

.section-subtitle.light { color: rgba(255,255,255,0.75); }

/* ============ FEATURES ============ */
.features {
  background: linear-gradient(180deg, var(--white) 0%, var(--primary-lightest) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--primary-lighter);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary-lightest), var(--primary-lighter));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.feature-icon svg {
  width: 26px; height: 26px;
  stroke: var(--primary);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: rotate(-6deg) scale(1.05);
}

.feature-card:hover .feature-icon svg { stroke: var(--white); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ============ COUNTDOWN ============ */
.countdown-section {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.countdown-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
}

.countdown-section::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  bottom: -200px; left: -150px;
  border-radius: 50%;
}

.countdown-section .section-title { color: var(--white); }
.countdown-section .section-subtitle { color: rgba(255,255,255,0.75); }
.countdown-section .section-tag { background: rgba(255,255,255,0.15); color: var(--white); }

.countdown-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.countdown-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 32px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.countdown-tab .tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.countdown-tab.active .tab-icon {
  background: var(--primary-lighter);
  color: var(--primary);
}

.countdown-tab .tab-date {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
}

.countdown-tab:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.countdown-tab.active {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.countdown-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.countdown-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  min-width: 130px;
  text-align: center;
  transition: transform 0.3s ease;
}

.countdown-box:hover { transform: translateY(-4px); }

.countdown-value {
  display: block;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-value.tick { animation: tick 0.3s ease; }

@keyframes tick {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.countdown-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

.countdown-separator {
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  padding-bottom: 24px;
}

.countdown-exam-name {
  text-align: center;
  margin-top: 28px;
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  position: relative;
  z-index: 2;
}

.countdown-exam-name strong { color: var(--white); }

/* ============ PRICING ============ */
.pricing {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--primary-lighter);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--primary-lightest) 0%, var(--white) 40%);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary-lightest), var(--primary-lighter));
  color: var(--primary);
  transition: all 0.4s ease;
}

.pricing-card:hover .pricing-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-md);
}

.pricing-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.pricing-desc {
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pricing-price .old-price {
  font-size: 24px;
  color: var(--danger);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  font-weight: 600;
  margin-right: 8px;
  opacity: 0.8;
}

.pricing-price .currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
}

.pricing-price .amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.pricing-card.featured .pricing-price .amount { color: var(--primary); }

.pricing-price .period {
  width: 100%;
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  margin-top: 4px;
}

.pricing-alt {
  text-align: center;
  background: var(--primary-lightest);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--gray);
  margin-top: -12px;
  margin-bottom: 20px;
}

.pricing-alt strong { color: var(--primary); }

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 9px 0 9px 30px;
  position: relative;
  font-size: 14.5px;
  color: var(--dark);
  border-bottom: 1px dashed var(--primary-lighter);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px; height: 20px;
  background: var(--primary-lighter);
  color: var(--primary);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-note {
  background: var(--primary-lightest);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.note-badge {
  display: inline-block;
  background: var(--danger);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: center;
}

.note-badge.success { background: var(--success); }

.note-badge.new {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 14px rgba(30, 111, 255, 0.35);
}

.pricing-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 36px auto 0;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(220, 38, 38, 0.06));
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--radius);
  color: var(--dark);
  text-align: left;
}

.pricing-notice svg {
  flex-shrink: 0;
  color: var(--danger);
}

.pulse-icon {
  animation: pulse-blink 1.2s ease-in-out infinite;
}

@keyframes pulse-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.88); }
}

.pricing-notice p { margin: 0; font-size: 14.5px; line-height: 1.5; }

.note-text { font-size: 13.5px; color: var(--dark); }

.pricing-referral {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px dashed #f59e0b;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 12.5px;
  color: #92400e;
  margin-bottom: 20px;
  line-height: 1.4;
}

.pricing-referral svg { flex-shrink: 0; stroke: #d97706; }

/* ============ PLATFORM ============ */
.platform {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.platform::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 70%);
  top: -300px; left: -300px;
  border-radius: 50%;
}

.platform-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.platform-content .section-title,
.platform-content .section-tag { text-align: left; }

.platform-content .section-title { margin-bottom: 20px; }

.platform-text {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 300;
}

.platform-list {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
}

.platform-list svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
  flex-shrink: 0;
  background: rgba(56,189,248,0.15);
  border-radius: 50%;
  padding: 4px;
}

/* Browser mockup */
.browser-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s ease;
}

.browser-mockup:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0);
}

.browser-bar {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.browser-dot.red { background: #ef4444; }
.browser-dot.yellow { background: #f59e0b; }
.browser-dot.green { background: #22c55e; }

.browser-url {
  flex: 1;
  background: var(--white);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--gray);
  font-family: var(--font-secondary);
  text-align: center;
}

.browser-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============ REVIEWS ============ */
.reviews {
  background: linear-gradient(180deg, var(--primary-lightest) 0%, var(--white) 100%);
}

.reviews-grid {
  columns: 3;
  column-gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--primary-lighter);
  margin-bottom: 24px;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  transition: all 0.4s ease;
}

.review-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

.review-stars svg {
  width: 17px; height: 17px;
  fill: var(--star);
  filter: drop-shadow(0 1px 3px rgba(251, 191, 36, 0.4));
}

.review-text {
  font-size: 14.5px;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
}

.review-author span {
  font-size: 12px;
  color: var(--gray);
}

/* ============ REVIEWS CAROUSEL ============ */
.reviews-old {
  background: var(--white);
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  background: linear-gradient(135deg, var(--primary-lightest), var(--primary-lighter));
  padding: 56px 64px;
  text-align: center;
  position: relative;
}

.carousel-quote-icon {
  font-size: 90px;
  font-family: Georgia, serif;
  color: var(--primary-light);
  line-height: 1;
  position: absolute;
  top: 20px; left: 40px;
  opacity: 0.5;
}

.carousel-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--dark);
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.carousel-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  z-index: 5;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
  background: linear-gradient(135deg, var(--primary-lightest), var(--primary-lighter));
}

.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ============ FAQ ============ */
.faq {
  background: var(--primary-lightest);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-lighter);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover { border-color: var(--primary-light); }

.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  width: 22px; height: 22px;
  stroke: var(--primary);
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.7;
}

.faq-answer strong { color: var(--primary); }

/* ============ GALERÍA ÚLTIMO DÍA ============ */
.gallery-section {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, transparent 70%);
  bottom: -200px; right: -150px;
  border-radius: 50%;
}

.gallery-section::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  top: -160px; left: -120px;
  border-radius: 50%;
}

.gallery-section .section-header { position: relative; z-index: 2; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  z-index: 2;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 12px 34px rgba(0,0,0,0.3);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s ease, border-color 0.45s ease;
  cursor: pointer;
}

/* Rotación alternada sutil para dinamismo */
.gallery-item:nth-child(odd) { transform: rotate(-1.2deg); }
.gallery-item:nth-child(even) { transform: rotate(1.2deg); }

.gallery-item:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.04);
  box-shadow: 0 26px 60px rgba(0,0,0,0.45), 0 0 0 2px rgba(56,189,248,0.6);
  border-color: rgba(56,189,248,0.7);
  z-index: 3;
}

.gallery-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(1.05);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.15) brightness(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(10, 30, 70, 0.92));
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Brillo que cruza al hacer hover */
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.gallery-item:hover::after { left: 130%; }

.gallery-cta {
  text-align: center;
  margin-top: 56px;
  position: relative;
  z-index: 2;
}

.gallery-cta p {
  color: var(--white);
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 500;
  margin-bottom: 24px;
}

.btn-whatsapp-cta {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  animation: whatsappGlow 2.6s ease-in-out infinite;
}

.btn-whatsapp-cta:hover {
  background: #1eb856;
  transform: translateY(-3px) scale(1.02);
}

@keyframes whatsappGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-text { color: var(--white); }

.footer-brand p {
  font-size: 14px;
  margin: 16px 0 20px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--whatsapp);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px; height: 60px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: all 0.3s;
  animation: floatPulse 2.5s ease infinite;
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 16px rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
  transform: scale(1.12) rotate(8deg);
}

/* ============ MARQUEE ============ */
.marquee-section {
  background: var(--dark);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before { left: 0; background: linear-gradient(90deg, var(--dark), transparent); }
.marquee-section::after { right: 0; background: linear-gradient(-90deg, var(--dark), transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-section:hover .marquee-track { animation-play-state: paused; }

.marquee-content {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}

.marquee-content span {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.marquee-content i.mq-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ TILT CARDS ============ */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30,111,255,0.45);
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 35, 0.94);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: min(92vw, 720px);
  max-height: 86vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  transition: opacity 0.2s ease;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: var(--danger);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-nav:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { columns: 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-inner { grid-template-columns: 1fr; gap: 48px; }
  .platform-content .section-title { text-align: center; }
  .platform-content { text-align: center; }
  .platform-list { align-items: center; }
  .platform-list li { justify-content: center; }
  .browser-mockup { max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { order: -1; }

  /* Metodología en móvil: una columna */
  .method-step,
  .method-step.reverse {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .method-step.reverse .method-number { order: 0; }
  .method-step.reverse .method-card { order: 0; text-align: left; }
  .method-number { flex-direction: row; justify-content: center; gap: 16px; }
  .method-number > span { font-size: 34px; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: linear-gradient(160deg, var(--primary-darker), var(--primary));
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 8px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    color: var(--white) !important;
    font-size: 17px;
    padding: 14px 18px;
    display: block;
  }

  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .navbar.scrolled .nav-toggle span { background: var(--dark); }
  .nav-toggle.active span { background: var(--white) !important; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { columns: 1; }

  .hero { padding: 110px 20px 90px; }

  .hero-stats {
    gap: 18px;
    padding: 16px 22px;
    width: 100%;
    justify-content: space-around;
  }

  .stat-number { font-size: 24px; }
  .stat-label { font-size: 11px; }

  .countdown-display { gap: 8px; }
  .countdown-box { min-width: 70px; padding: 16px 8px; }
  .countdown-separator { font-size: 28px; padding-bottom: 18px; }
  .countdown-label { font-size: 10px; letter-spacing: 1px; }

  .countdown-tab { padding: 12px 20px; font-size: 15px; }
  .countdown-tab .tab-icon { width: 42px; height: 42px; }
  .countdown-tab .tab-icon svg { width: 20px; height: 20px; }

  .carousel-slide { padding: 48px 32px; }
  .carousel-text { font-size: 15px; }
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }

  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-item img { height: 380px; }
  .gallery-item:nth-child(odd),
  .gallery-item:nth-child(even) { transform: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .whatsapp-float {
    width: 54px; height: 54px;
    bottom: 20px; right: 20px;
  }

  .back-to-top {
    width: 42px; height: 42px;
    bottom: 20px; left: 20px;
  }

  .marquee-content span { font-size: 13.5px; }

  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .blob { filter: blur(60px); }

  .scroll-indicator { display: none; }

  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { display: none; }
  .countdown-box { min-width: 60px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================
   MODAL DE INSCRIPCIÓN / PAGO
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 28px 26px 30px;
  margin: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  background: var(--primary-lightest);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover { background: var(--primary-lighter); transform: rotate(90deg); }

.modal-header { margin-bottom: 20px; padding-right: 36px; }

.modal-header h3 {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.modal-header h3 span { color: var(--primary); }

.modal-sub { margin-top: 4px; color: var(--gray); font-size: 14px; }

.modal-step { margin-bottom: 22px; }

.step-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border: 2px solid var(--primary-lighter);
  background: var(--primary-lightest);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-blue);
  transition: all 0.2s ease;
}

.pay-method:hover { border-color: var(--primary-light); transform: translateY(-2px); }

.pay-method.active {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(30, 111, 255, 0.18);
}

.pay-ico { font-size: 20px; line-height: 1; }

.pay-details {
  margin-top: 14px;
  display: none;
  animation: fadeIn 0.25s ease;
}

.pay-details.show { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bank-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.bank-card h5 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

.bank-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.bank-row:last-child { border-bottom: none; }
.bank-row span:first-child { opacity: 0.8; }
.bank-row span:last-child { font-weight: 600; text-align: right; }

.bank-copy {
  margin-top: 14px;
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bank-copy:hover { background: rgba(255, 255, 255, 0.3); }

.qr-card {
  text-align: center;
  background: var(--primary-lightest);
  border: 1px solid var(--primary-lighter);
  border-radius: var(--radius);
  padding: 20px;
}

.qr-card img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--white);
  padding: 8px;
  margin: 0 auto 12px;
  display: block;
}

.qr-card .qr-note { font-size: 13px; color: var(--dark-blue); }
.qr-card .qr-placeholder {
  width: 200px; height: 200px; margin: 0 auto 12px;
  border: 2px dashed var(--primary-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 13px; text-align: center; padding: 12px;
}

.card-pay {
  text-align: center;
  background: var(--primary-lightest);
  border: 1px solid var(--primary-lighter);
  border-radius: var(--radius);
  padding: 20px;
}

.card-pay p { font-size: 13.5px; color: var(--dark-blue); margin-bottom: 14px; }

.insc-form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field label, .step-label + .insc-form .field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-blue);
}

.field label a { color: var(--primary); }

.field input, .field select {
  font-family: var(--font-secondary);
  font-size: 14px;
  padding: 11px 13px;
  border: 1.5px solid var(--primary-lighter);
  border-radius: 10px;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.15);
}

.field input[readonly] { background: var(--primary-lightest); color: var(--primary-dark); font-weight: 600; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }

.radio, .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
}

.radio input, .check input { width: 16px; height: 16px; accent-color: var(--primary); }

.check-field { background: var(--primary-lightest); padding: 12px 14px; border-radius: 10px; }

.btn-submit { margin-top: 4px; }

.field input.invalid, .field select.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Success screen */
.insc-success { text-align: center; animation: fadeIn 0.3s ease; }

.success-ico {
  width: 72px; height: 72px;
  margin: 6px auto 14px;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.insc-success h4 { font-size: 19px; color: var(--dark); margin-bottom: 14px; }

.success-details {
  text-align: left;
  background: var(--primary-lightest);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--dark-blue);
}

.success-details .sd-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(30, 111, 255, 0.15);
}

.success-details .sd-row:last-child { border-bottom: none; }
.success-details .sd-row span:first-child { opacity: 0.7; }
.success-details .sd-row span:last-child { font-weight: 600; text-align: right; }

.success-hint { font-size: 13.5px; color: var(--gray); margin-bottom: 14px; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-whatsapp:hover { background: #1ebe5b; }

.insc-success .btn-block { width: 100%; justify-content: center; margin-bottom: 10px; }

@media (max-width: 480px) {
  .modal { padding: 24px 18px 26px; }
  .pay-methods { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .modal-header h3 { font-size: 20px; }
}
