/* ============================================
   ESX ChatBOT WA — Landing Page Styles
   ============================================ */

:root {
  /* ESX Brand Colors */
  --esx-primary: #10B981;
  --esx-primary-hover: #059669;
  --esx-primary-light: #D1FAE5;
  --esx-primary-glow: rgba(16, 185, 129, 0.25);
  --esx-accent: #06B6D4;
  --esx-accent-glow: rgba(6, 182, 212, 0.2);

  /* Backgrounds */
  --bg-dark: #0A0E17;
  --bg-dark-2: #111827;
  --bg-dark-3: #1A2332;
  --bg-card: #151D2B;
  --bg-card-hover: #1C2636;

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Borders */
  --border-color: #1E293B;
  --border-color-light: #334155;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px var(--esx-primary-glow);

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--esx-primary);
  background: var(--esx-primary-glow);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--esx-primary), var(--esx-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--esx-primary), #059669);
  color: #fff;
  border-color: transparent;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color-light);
}
.btn--outline:hover {
  border-color: var(--esx-primary);
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 15px 36px;
  font-size: 1rem;
  border-radius: 14px;
}

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

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 38px;
  width: auto;
}

.header__logo-text {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.header__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.header__btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  transition: all 0.2s;
  white-space: nowrap;
}

.header__btn--outline {
  border: 1.5px solid var(--border-color-light);
  color: var(--text-secondary);
}
.header__btn--outline:hover {
  border-color: var(--esx-primary);
  color: var(--esx-primary);
}

.header__btn--primary {
  background: var(--esx-primary);
  color: #fff;
  border: 1.5px solid var(--esx-primary);
}
.header__btn--primary:hover {
  background: var(--esx-primary-hover);
  box-shadow: var(--shadow-glow);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 64px) 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(16, 185, 129, 0.08), transparent),
    radial-gradient(ellipse 500px 400px at 80% 30%, rgba(6, 182, 212, 0.06), transparent),
    radial-gradient(ellipse 300px 300px at 50% 80%, rgba(16, 185, 129, 0.04), transparent);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.hero__content {
  flex: 1;
  max-width: 600px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--esx-primary);
  background: var(--esx-primary-glow);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__highlight {
  background: linear-gradient(135deg, var(--esx-primary), var(--esx-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 48px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--esx-primary);
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Visual — Phone Mock */
.hero__visual {
  flex-shrink: 0;
}

.hero__phone {
  width: 280px;
  height: 560px;
  background: var(--bg-dark-2);
  border: 3px solid var(--border-color);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px var(--bg-dark-3),
    var(--shadow-lg),
    0 0 80px var(--esx-primary-glow);
  position: relative;
}

.hero__phone::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: var(--border-color-light);
  border-radius: 100px;
}

.hero__phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  border-radius: 28px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.hero__chat-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__chat-bubble {
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 85%;
  animation: fadeInUp 0.5s ease both;
}

.hero__chat-bubble--bot {
  background: var(--bg-card);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  animation-delay: 0.2s;
}

.hero__chat-bubble--user {
  background: var(--esx-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  animation-delay: 1s;
}

.hero__chat-bubble:nth-child(3) {
  animation-delay: 1.8s;
}

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

/* ============================================
   FEATURES
   ============================================ */

.features {
  padding: 100px 0;
  background: var(--bg-dark-2);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--esx-primary);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.08);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--esx-primary-glow);
  border-radius: 14px;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how {
  padding: 100px 0;
}

.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.how__step {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 28px;
  transition: all 0.3s;
}

.how__step:hover {
  border-color: var(--esx-primary);
  transform: translateY(-3px);
}

.how__step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--esx-primary), var(--esx-accent));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.how__step-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.how__step-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.how__step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--esx-primary);
  padding-top: 60px;
  min-width: 40px;
}

/* ============================================
   VOICE IA DEMO
   ============================================ */

.voice-demo {
  padding: 0 0 100px;
}

.voice-demo__card {
  display: flex;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.06));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
}

.voice-demo__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--esx-primary-glow), transparent 70%);
  pointer-events: none;
}

.voice-demo__content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.voice-demo__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--esx-accent);
  background: var(--esx-accent-glow);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.voice-demo__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.voice-demo__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 500px;
}

.voice-demo__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.voice-demo__visual {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.voice-demo__pulse {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--esx-primary), var(--esx-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 60px var(--esx-primary-glow);
  animation: voicePulse 2.5s ease-in-out infinite;
}

.voice-demo__pulse::before,
.voice-demo__pulse::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--esx-primary);
  animation: voiceRing 2.5s ease-in-out infinite;
}

.voice-demo__pulse::before {
  width: 140px;
  height: 140px;
  animation-delay: 0s;
}

.voice-demo__pulse::after {
  width: 140px;
  height: 140px;
  animation-delay: 0.8s;
}

.voice-demo__icon {
  font-size: 3rem;
  position: relative;
  z-index: 2;
}

@keyframes voicePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes voiceRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 768px) {
  .voice-demo__card {
    flex-direction: column-reverse;
    text-align: center;
    padding: 36px 28px;
  }
  .voice-demo__desc {
    max-width: 100%;
  }
  .voice-demo__pulse {
    width: 100px;
    height: 100px;
  }
  .voice-demo__pulse::before,
  .voice-demo__pulse::after {
    width: 100px;
    height: 100px;
  }
  .voice-demo__icon {
    font-size: 2.2rem;
  }
}

/* ============================================
   PRICING
   ============================================ */

.pricing {
  padding: 100px 0;
  background: var(--bg-dark-2);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px 30px;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.pricing-card--featured {
  border-color: var(--esx-primary);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.04) 100%);
  transform: scale(1.03);
  box-shadow: 0 0 60px var(--esx-primary-glow);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--esx-primary), var(--esx-accent));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__header {
  text-align: center;
}

.pricing-card__name {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.pricing-card__currency {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-card__amount {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-card--featured .pricing-card__amount {
  background: linear-gradient(135deg, var(--esx-primary), var(--esx-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card__period {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card__features li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: 100px 0;
}

.contact__inner {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.contact__content {
  flex: 1;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all 0.2s;
}
.contact__item:hover {
  border-color: var(--esx-primary);
  background: var(--bg-card-hover);
}

.contact__item-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--esx-primary-glow);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact__item-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact__item-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact__form-wrapper {
  flex: 1;
  max-width: 440px;
}

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
}

.contact__input {
  width: 100%;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.contact__input:focus {
  outline: none;
  border-color: var(--esx-primary);
  box-shadow: 0 0 0 3px var(--esx-primary-glow);
}

.contact__input::placeholder {
  color: var(--text-muted);
}

.contact__textarea {
  resize: vertical;
  min-height: 80px;
}

.contact__form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-dark-3);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer__links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer__col-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer__link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer__link:hover {
  color: var(--esx-primary);
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__contact-link {
  color: var(--esx-primary);
  transition: color 0.2s;
}
.footer__contact-link:hover {
  color: var(--esx-primary-hover);
}

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

@media (max-width: 1024px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__subtitle {
    max-width: 100%;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__stats {
    justify-content: center;
  }
  .hero__visual {
    display: none;
  }
  .contact__inner {
    flex-direction: column;
  }
  .contact__form-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .how__step-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  .header__nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .header__hamburger {
    display: flex;
  }
  .header__btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .features__grid {
    grid-template-columns: 1fr;
  }
  .pricing__grid {
    grid-template-columns: 1fr;
  }
  .pricing-card--featured {
    transform: none;
  }
  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }
  .hero__stats {
    gap: 32px;
  }
  .footer__links {
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.feature-card,
.pricing-card,
.how__step {
  animation: fadeInUp 0.6s ease both;
}

.features__grid > *:nth-child(1) { animation-delay: 0.1s; }
.features__grid > *:nth-child(2) { animation-delay: 0.2s; }
.features__grid > *:nth-child(3) { animation-delay: 0.3s; }
.features__grid > *:nth-child(4) { animation-delay: 0.4s; }
.features__grid > *:nth-child(5) { animation-delay: 0.5s; }
.features__grid > *:nth-child(6) { animation-delay: 0.6s; }

.pricing__grid > *:nth-child(1) { animation-delay: 0.1s; }
.pricing__grid > *:nth-child(2) { animation-delay: 0.2s; }
.pricing__grid > *:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   PAGO LIBRE: MODAL + BANNER
   ============================================ */
button.btn { font-family: inherit; line-height: inherit; cursor: pointer; }
a.contact__item-value { color: inherit; text-decoration: none; }

.pago-modal {
  width: calc(100% - 32px);
  max-width: 420px;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-color-light);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}
.pago-modal::backdrop { background: rgba(0, 0, 0, 0.7); }
.pago-modal[open] { animation: pagoIn 0.2s ease-out; }
@keyframes pagoIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.pago-modal__form { position: relative; padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.pago-modal__close {
  position: absolute; top: 8px; right: 10px; width: 36px; height: 36px;
  background: transparent; border: none; color: var(--text-secondary);
  font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 8px;
}
.pago-modal__close:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.pago-modal__title { font-size: 1.3rem; font-weight: 800; padding-right: 32px; }
.pago-modal__amount {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px 16px;
}
.pago-modal__plan { color: var(--text-secondary); font-weight: 600; }
.pago-modal__price strong {
  font-size: 1.6rem; font-weight: 900;
  background: linear-gradient(135deg, var(--esx-primary), var(--esx-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pago-modal__price small { color: var(--text-muted); font-size: 0.8rem; }
.pago-modal__field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.pago-modal__field input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; font-weight: 400; color: var(--text-primary);
  background: var(--bg-dark); border: 1px solid var(--border-color-light); border-radius: 8px;
}
.pago-modal__field input:focus { outline: 2px solid var(--esx-primary); outline-offset: 1px; border-color: var(--esx-primary); }
.pago-modal__error { color: #f87171; font-size: 0.88rem; }
.pago-modal__error[hidden], .pago-modal__success[hidden] { display: none; }
.pago-modal__success { color: var(--esx-primary); font-size: 0.88rem; }
.pago-modal__success a { color: var(--esx-primary); text-decoration: underline; }
.pago-modal__submit {
  width: 100%; padding: 14px 20px; border: none; border-radius: 8px; cursor: pointer;
  background: #009EE3; color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.pago-modal__submit:hover:not(:disabled) { background: #0089c7; transform: translateY(-1px); }
.pago-modal__submit:disabled { opacity: 0.7; cursor: not-allowed; }
.pago-modal__close:focus-visible, .pago-modal__submit:focus-visible, .mp-banner__close:focus-visible { outline: 2px solid var(--esx-primary); outline-offset: 2px; }
.pago-modal__legal { font-size: 0.75rem; color: var(--text-muted); text-align: center; }
.pago-modal__legal a { color: var(--text-secondary); text-decoration: underline; }

.mp-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; color: #fff; font-weight: 600; font-size: 0.95rem;
  background: var(--esx-primary-hover); box-shadow: var(--shadow-md);
}
.mp-banner[hidden] { display: none; }
.mp-banner--success { background: #16a34a; }
.mp-banner--failure { background: #dc2626; }
.mp-banner--pending { background: #d97706; }
.mp-banner__close { flex: none; width: 32px; height: 32px; background: transparent; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }

@media (max-width: 400px) {
  .pago-modal__form { padding: 24px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pago-modal[open] { animation: none; }
  .pago-modal__submit, .pago-modal__submit:hover:not(:disabled) { transition: none; transform: none; }
}

/* Pago libre: cotización */
.pricing__note { margin-top: 24px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.pago-modal__usd { color: var(--text-secondary); font-weight: 700; }
.pago-modal__rate { flex-basis: 100%; color: var(--text-muted); font-size: 0.78rem; line-height: 1.4; }
