/* 
   EkklesiaApp - PREMIUM SAAS THEME V8 PRO
   Branding: Petrol/Teal Dark — Inspired by dLocal enterprise patterns
*/

/* ═══════════════════════════════════════
   1. DESIGN TOKENS (Dark/Light)
   ═══════════════════════════════════════ */
html[data-theme='dark'] {
  --bg-main: #020617;
  --bg-section: #0b1120;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary-brand: #008eb0;
  --primary-dark: #005973;
  --primary-soft: rgba(0, 142, 176, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --grad-main: linear-gradient(180deg, #020617 0%, #0b1120 100%);
  --grad-hero: radial-gradient(circle at 50% -20%, #005973 0%, transparent 70%);
  --hello-bar-bg: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  --marquee-border: rgba(255, 255, 255, 0.04);
  --stat-num: #00d2ff;
  --testimonial-bg: #0f172a;
  --footer-bg: #020617;
  --faq-answer: #cbd5e1;
}

html[data-theme='light'] {
  --bg-main: #ffffff;
  --bg-section: #e8f4f7; /* Petrol-Blue soft tint */
  --bg-card: #ffffff;
  --text-main: #020617; /* Midnight-Blue deep for maximum contrast */
  --text-muted: #334155; /* Slate 700 for better visibility */
  --primary-brand: #008eb0;
  --primary-dark: #005973;
  --primary-soft: rgba(0, 142, 176, 0.08);
  --border-subtle: rgba(0, 89, 115, 0.15); /* Petrol-tinted border */
  --shadow-premium: 0 20px 40px -10px rgba(0, 89, 115, 0.12), 0 10px 15px -10px rgba(0, 89, 115, 0.08); 
  --grad-main: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  --grad-section: linear-gradient(160deg, #f0f9ff 0%, #e0f2f5 100%); /* Branded Petrol-Blue depth */
  --grad-hero: radial-gradient(circle at 50% -20%, #eff6ff 0%, #ffffff 80%);
  --hello-bar-bg: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  --marquee-border: rgba(0, 89, 115, 0.06);
  --stat-num: #00d2ff; /* Bright cyan for contrast on dark cards */
  --testimonial-bg: #f8fafc;
  --footer-bg: #e8f4f7;
  --faq-answer: #1e293b; /* Slate 800 */
}

/* ═══════════════════════════════════════
   2. BASE STYLES
   ═══════════════════════════════════════ */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

section {
  padding: 120px 0;
  background-color: var(--bg-main);
  position: relative;
}

section:nth-of-type(even) {
  background: var(--grad-section) !important;
  box-shadow: inset 0 20px 40px -20px rgba(15, 23, 42, 0.05), inset 0 -20px 40px -20px rgba(15, 23, 42, 0.05);
}

.bg-soft-grad {
  background: var(--grad-main) !important;
}

/* ═══════════════════════════════════════
   3. HELLO BAR
   ═══════════════════════════════════════ */
.hello-bar {
  background: var(--hello-bar-bg);
  padding: 12px 0;
  text-align: center;
  position: relative;
  z-index: 1040;
  /* Justo debajo del navbar (1050) */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hello-bar__text {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hello-bar__text strong {
  font-weight: 800;
}

.hello-bar__text a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hello-bar__text a:hover {
  background: #fff;
  color: #4f46e5;
  transform: scale(1.05);
}

.hello-bar__close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.hello-bar__close:hover {
  color: #fff;
}

/* ═══════════════════════════════════════
   4. NAVBAR
   ═══════════════════════════════════════ */
#navbar {
  background: transparent !important;
  border-bottom: 1px solid transparent;
  padding: 1rem 0; /* Reducido de 1.5rem */
  z-index: 1050;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#navbar.is-scrolled {
  background: var(--bg-main) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-brand) !important;
}

.nav-link.active {
  border-bottom: 2px solid var(--primary-brand);
}

.theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--primary-brand);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════
   5. HERO + ANIMATED CIRCLES
   ═══════════════════════════════════════ */
#intro {
  background: var(--grad-hero) !important;
  padding-top: 100px; /* Reducido de 160px */
  min-height: 85vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 142, 176, 0.15);
  animation: circleFloat 20s ease-in-out infinite;
}

.hero-circle--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  animation-duration: 25s;
}

.hero-circle--2 {
  width: 400px;
  height: 400px;
  top: 100px;
  right: -100px;
  animation-duration: 20s;
  animation-delay: -5s;
}

.hero-circle--3 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: 30%;
  animation-duration: 22s;
  animation-delay: -10s;
}

.hero-circle--4 {
  width: 200px;
  height: 200px;
  top: 40%;
  right: 20%;
  animation-duration: 18s;
  animation-delay: -3s;
  border-color: rgba(0, 210, 255, 0.1);
}

.hero-circle--5 {
  width: 500px;
  height: 500px;
  bottom: -200px;
  right: -150px;
  animation-duration: 28s;
  animation-delay: -8s;
}

@keyframes circleFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  25% {
    transform: translate(30px, -20px) scale(1.05);
    opacity: 0.6;
  }

  50% {
    transform: translate(-20px, 30px) scale(0.95);
    opacity: 0.3;
  }

  75% {
    transform: translate(10px, -30px) scale(1.02);
    opacity: 0.5;
  }
}

h1.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
}

@media (max-width: 768px) {
  h1.hero-title {
    font-size: 2.5rem;
  }
}

.hero-mission {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   6. MARQUEE (Infinite Logo Scroll)
   ═══════════════════════════════════════ */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid var(--marquee-border);
  border-bottom: 1px solid var(--marquee-border);
  background: var(--bg-main);
  overflow: hidden;
  /* Máscara premium para fundido en los bordes */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 200s linear infinite; /* La mitad de velocidad (antes 100s) */
}

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.marquee-item:hover {
  opacity: 1;
}

.marquee-item i {
  color: var(--primary-brand);
  font-size: 1.3rem;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════
   7. STATS SECTION
   ═══════════════════════════════════════ */
.stats-section {
  padding: 80px 0;
  background: var(--bg-main);
}

.stats-heading {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 50px;
  line-height: 1.3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 30px 15px;
  border-radius: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-brand);
  box-shadow: 0 20px 40px -10px rgba(0, 142, 176, 0.15);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--stat-num);
  display: block;
  margin-bottom: 6px;
}

/* Rediseño de tarjetas de estadísticas: Pastel Azul Premium en modo claro */
html[data-theme='light'] .stat-card {
  background: linear-gradient(145deg, #ffffff 0%, #e0f2fe 100%); 
  border-color: rgba(0, 89, 115, 0.15);
  box-shadow: 0 10px 25px -5px rgba(0, 89, 115, 0.08), inset 0 0 15px rgba(255, 255, 255, 0.6);
  color: var(--text-main);
}

html[data-theme='light'] .stat-num {
  color: var(--primary-brand); /* Usar el azul de marca para los números */
  text-shadow: 0 1px 2px rgba(0, 142, 176, 0.1);
}

html[data-theme='light'] .stat-label {
  color: var(--text-muted);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   8. WHY EKKLESIA (4 Ventajas)
   ═══════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.why-card {
  padding: 40px 30px;
  border-radius: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Bordes pasteles alternados para mayor dinamismo */
html[data-theme='light'] .why-card:nth-of-type(4n+1),
html[data-theme='light'] .stat-card:nth-of-type(4n+1) { border-color: rgba(0, 142, 176, 0.2); }
html[data-theme='light'] .why-card:nth-of-type(4n+2),
html[data-theme='light'] .stat-card:nth-of-type(4n+2) { border-color: rgba(16, 185, 129, 0.2); }
html[data-theme='light'] .why-card:nth-of-type(4n+3),
html[data-theme='light'] .stat-card:nth-of-type(4n+3) { border-color: rgba(245, 158, 11, 0.2); }
html[data-theme='light'] .why-card:nth-of-type(4n+4),
html[data-theme='light'] .stat-card:nth-of-type(4n+4) { border-color: rgba(139, 92, 246, 0.2); }

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px -10px rgba(0, 142, 176, 0.15);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--primary-brand);
}

.why-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   9. CARD PREMIUM (shared)
   ═══════════════════════════════════════ */
.card-premium {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 24px; /* Reducido de 30px (10% aprox total) */
  box-shadow: var(--shadow-premium);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

/* Alternancia pastel para cards premium en light mode */
html[data-theme='light'] .card-premium:nth-of-type(3n+1) { border-color: rgba(59, 130, 246, 0.2); }
html[data-theme='light'] .card-premium:nth-of-type(3n+2) { border-color: rgba(168, 85, 247, 0.2); }
html[data-theme='light'] .card-premium:nth-of-type(3n+3) { border-color: rgba(236, 72, 153, 0.2); }

.card-premium:hover {
  border-color: var(--primary-brand);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 40px -10px rgba(0, 142, 176, 0.2);
}

/* ═══════════════════════════════════════
   10. IMAGE BOXES
   ═══════════════════════════════════════ */
.img-box-hero {
  position: relative;
  z-index: 1;
  max-width: 85%;
  margin: 0 auto;
}

.float-anim {
  animation: float-anim 5s ease-in-out infinite;
}

.img-hover-zoom {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-hover-zoom:hover {
  transform: scale(1.05);
}

/* Dashboard Mockup Refinement */
.dashboard-mock {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
  max-width: 90%;
  margin: 0 auto;
}

.dashboard-mock img {
  width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════
   11. MODULES ACCORDION (Phase 2)
   ═══════════════════════════════════════ */
.modules-section {
  padding: 100px 0;
}

.module-item {
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--bg-card);
  transition: all 0.4s ease;
}

.module-item.is-open {
  border-color: var(--primary-brand);
  box-shadow: 0 15px 35px -8px rgba(0, 142, 176, 0.15);
}

.module-header {
  padding: 24px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.module-header:hover {
  background: var(--primary-soft);
}

.module-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-header .module-arrow {
  transition: transform 0.3s;
  color: var(--primary-brand);
}

.module-item.is-open .module-arrow {
  transform: rotate(180deg);
}

.module-body {
  padding: 0 30px 30px;
  display: none;
}

.module-item.is-open .module-body {
  display: block;
}

.module-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 768px) {
  .module-content {
    grid-template-columns: 1fr;
  }
}

.module-text {
  color: var(--text-muted);
  line-height: 1.7;
}

.module-img {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-premium);
}

.module-img img {
  width: 100%;
  display: block;
}

/* ═══════════════════════════════════════
   12. TESTIMONIALS
   ═══════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--testimonial-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 35px 30px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-brand);
  opacity: 0.15;
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-brand);
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-church {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   13. PRICING (Enhanced with Switch)
   ═══════════════════════════════════════ */
.pricing-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.pricing-switch__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-switch__label.is-active {
  color: var(--text-main);
}

.pricing-switch__btn {
  width: 56px;
  height: 30px;
  background: var(--bg-section);
  border: 2px solid var(--primary-brand);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}

.pricing-switch__btn::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--primary-brand);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-switch__btn.is-annual {
  background: linear-gradient(135deg, #005973, #008eb0);
  border-color: transparent;
}

.pricing-switch__btn.is-annual::after {
  transform: translateX(25px);
  background: #fff;
}

.price-annual {
  display: none !important;
}

.pricing-card.is-annual .price-annual {
  display: flex !important;
}

.pricing-card.is-annual .price-monthly {
  display: none !important;
}

.period-annual {
  display: none;
}

.pricing-card.is-annual .period-annual {
  display: block;
}

.pricing-card.is-annual .period-monthly {
  display: none;
}

/* Subtle Plan Backgrounds */
.bg-plan-inicial {
  background: linear-gradient(145deg, var(--bg-card), rgba(0, 142, 176, 0.05)) !important;
}

.bg-plan-basico {
  background: linear-gradient(145deg, var(--bg-card), rgba(59, 130, 246, 0.08)) !important;
}

.bg-plan-comunidad {
  background: linear-gradient(145deg, var(--bg-card), rgba(168, 85, 247, 0.15)) !important;
}

.bg-plan-pro {
  background: linear-gradient(145deg, var(--bg-card), rgba(236, 72, 153, 0.08)) !important;
}

.bg-plan-plus {
  background: linear-gradient(145deg, var(--bg-card), rgba(245, 158, 11, 0.08)) !important;
}

.bg-plan-enterprise {
  background: linear-gradient(145deg, var(--bg-card), rgba(100, 116, 139, 0.12)) !important;
}

.bg-plan-free {
  background: linear-gradient(145deg, var(--bg-card), rgba(148, 163, 184, 0.12)) !important;
}

.pricing-container {
  position: relative;
  padding: 0 50px;
  margin-top: 40px;
  --slides-per-view: 2.75; /* +10% de densidad, reduce ancho de tarjeta */
  --slide-gap: 30px;
}

@media (min-width: 1400px) {
  .pricing-container { --slides-per-view: 3.6; }
}

@media (max-width: 1200px) {
  .pricing-container { --slides-per-view: 1.75; }
}

@media (max-width: 768px) {
  .pricing-container { 
    --slides-per-view: 1.25; 
    padding: 0;
  }
}

.pricing-carousel {
  overflow: hidden;
  padding: 50px 80px; 
  margin: -50px -80px;
  mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
}

.pricing-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  gap: var(--slide-gap);
  align-items: stretch;
}

.pricing-slide {
  flex: 0 0 calc((100% - (var(--slides-per-view) - 1) * var(--slide-gap)) / var(--slides-per-view));
  width: calc((100% - (var(--slides-per-view) - 1) * var(--slide-gap)) / var(--slides-per-view));
  display: flex;
  height: auto;
}

.pricing-card {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-premium);
  cursor: pointer;
}

.carousel-arrow--prev {
  left: -25px;
}

.carousel-arrow--next {
  right: -25px;
}

@media (max-width: 768px) {
  .pricing-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding: 20px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .pricing-slide {
    scroll-snap-align: start;
  }
}

.btn-subscribe {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  width: 100%;
}

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

.btn-subscribe.btn-outline-brand:hover {
  background: var(--primary-brand);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 142, 176, 0.3);
}

.btn-subscribe.btn-primary-saas {
  background: linear-gradient(135deg, var(--primary-brand), #00b4d8);
  color: #fff;
  border: none;
}

.btn-subscribe.btn-primary-saas:hover {
  box-shadow: 0 6px 15px rgba(0, 142, 176, 0.4);
  transform: translateY(-2px);
}

.pricing-card {
  position: relative;
  text-align: center;
  height: 100%;
}

.pricing-card h5 {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.pricing-card.highlight {
  border-color: var(--primary-brand);
  box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-premium);
}

.pricing-card .pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #005973, #008eb0);
  color: #fff;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 15px 0;
}

.pricing-currency {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 15px 0 20px;
  text-align: left;
}

.pricing-features li {
  padding: 3px 0; /* Reducido para compactar alto */
  font-size: 0.7rem; 
  line-height: 1.1; /* Reducido interlineado un 15%+ */
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li i {
  color: var(--primary-brand);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   14. FAQ
   ═══════════════════════════════════════ */
.faq-item {
  transition: background 0.3s;
  border-radius: 0.5rem;
}

.faq-item:hover {
  background: var(--primary-soft);
}

.faq-content {
  color: var(--faq-answer) !important;
  font-size: 1rem;
  line-height: 1.6;
}

.faq-content strong {
  color: var(--text-main);
  font-weight: 700;
}

.faq-content ul li {
  color: var(--faq-answer);
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════
   15. CTA FINAL + CIRCLES
   ═══════════════════════════════════════ */
.cta-banner-final {
  background: linear-gradient(135deg, #020617 0%, #005973 100%);
  border-radius: 3rem;
  padding: 100px 50px;
  border: 1px solid var(--border-subtle);
  color: #fff !important;
  position: relative;
  overflow: hidden;
}

.cta-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: circleFloat 20s ease-in-out infinite;
  pointer-events: none;
}

.cta-circle--1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation-delay: -3s;
}

.cta-circle--2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -30px;
  animation-delay: -7s;
}

.cta-circle--3 {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 10%;
  animation-delay: -12s;
}

/* ═══════════════════════════════════════
   16. FOOTER PREMIUM
   ═══════════════════════════════════════ */
.footer-premium {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-brand);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-contact-item i {
  color: var(--primary-brand);
  margin-top: 3px;
  min-width: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* ═══════════════════════════════════════
   17. UTILITIES
   ═══════════════════════════════════════ */
.text-brand {
  background: linear-gradient(135deg, #008eb0 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary-saas {
  background: linear-gradient(135deg, #005973 0%, #008eb0 100%);
  color: white !important;
  border-radius: 50px;
  padding: 16px 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 89, 115, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.btn-primary-saas.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

/* LOGIN SPECIAL STYLE */
.btn-login-premium {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3) !important;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  animation: buttonPulse 3s infinite;
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
  }

  50% {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6), 0 0 15px rgba(124, 58, 237, 0.4);
  }

  100% {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
  }
}

.btn-login-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-login-premium:hover {
  box-shadow: 0 12px 25px rgba(124, 58, 237, 0.5), 0 0 20px rgba(124, 58, 237, 0.3) !important;
  transform: translateY(-2px) scale(1.05);
}

.btn-primary-saas:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 89, 115, 0.6);
  color: white !important;
  text-decoration: none;
}

.btn-outline-brand {
  border: 2px solid var(--border-subtle);
  border-radius: 50px;
  padding: 14px 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 600;
  color: var(--text-main) !important;
  background: transparent;
  transition: all 0.3s;
}

.btn-outline-brand:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand) !important;
  text-decoration: none;
}

/* ═══════════════════════════════════════
   18. REVEAL ANIMATIONS
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.reveal-up {
  transform: translateY(40px);
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

/* ═══════════════════════════════════════
   17. STRATEGIC SECTIONS (Consolidación / Salud / Multisede)
   ═══════════════════════════════════════ */
.feature-highlight {
  padding: 120px 0;
}

.feature-highlight:nth-child(even) {
  background: var(--bg-section);
}

.feature-highlight .row {
  align-items: center;
}

.feature-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-soft);
  color: var(--primary-brand);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.feature-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.feature-list li i {
  color: var(--primary-brand);
  margin-top: 5px;
}

@media (max-width: 768px) {
  .feature-title {
    font-size: 2rem;
  }

  .feature-highlight {
    padding: 80px 0;
  }
}

/* ═══════════════════════════════════════
   18. UTILITIES & ANIMATIONS REFINEMENT
   ═══════════════════════════════════════ */
#back-to-top:hover {
  transform: translateY(-5px);
  background: var(--primary-brand);
  color: white;
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-scale {
  transform: scale(0.9);
}

.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

.delay-600 {
  transition-delay: 0.6s;
}

/* Float Animation */
@keyframes floatPremium {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-anim {
  animation: floatPremium 6s ease-in-out infinite;
}

/* Image hover */
.img-hover-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.img-hover-zoom:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 25px 40px -10px rgba(0, 89, 115, 0.4);
}

/* Section divider */
.section-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-brand);
  margin-bottom: 12px;
}

.section-heading {
  font-size: 3.2rem; /* Slighly larger */
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-main);
  text-shadow: 0 1px 1px rgba(15, 23, 42, 0.02); /* Extremely subtle depth */
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 1.8rem;
  }
}

.section-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px; /* Better readability width */
}

.section-text.centered {
  margin: 0 auto;
}

/* Badge pill */
.badge-launch {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-brand);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  padding: 8px 20px;
  border-radius: 50px;
}

/* ═══════════════════════════════════════
   19. EXTRA ANIMATIONS (IA SECTION)
   ═══════════════════════════════════════ */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  50% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ═══════════════════════════════════════
   20. MULTI-DEVICE MOCKUP (Mobility)
   ═══════════════════════════════════════ */
.multi-device-mockup {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
}

.device-monitor {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  background: #1e293b;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 4px solid #334155;
  z-index: 1;
}

.device-monitor .screen {
  background: #0f172a;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.device-monitor .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-monitor .base {
  width: 30%;
  height: 20px;
  background: #334155;
  margin: 0 auto;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.device-tablet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  background: #1e293b;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  border: 4px solid #334155;
  z-index: 3;
}

.device-tablet .screen {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 10 / 14;
}

.device-tablet .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-phone {
  position: absolute;
  bottom: -20px;
  right: 5%;
  width: 22%;
  background: #1e293b;
  border-radius: 25px;
  padding: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  border: 4px solid #334155;
  z-index: 5;
}

.device-phone .screen {
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
}

.device-phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 576px) {
  .multi-device-mockup {
    height: 300px;
  }
}