/* ==========================================================================
   Hela2s - Portal Web Móvil (Mobile-First Experience)
   Tema Oficial: LIGHT & HARMONIOUS • Taste, Impeccable & UX-UI-PRO-MAX
   Diseño Compacto, Animado e Interactivo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Paleta Oficial Hela2s */
  --brand-cyan: #2CA6EC;
  --brand-cyan-light: #EBF7FF;
  --brand-cyan-border: rgba(44, 166, 236, 0.22);

  --brand-pink: #FF599C;
  --brand-pink-dark: #E60067;
  --brand-pink-light: #FFF0F6;
  --brand-pink-border: rgba(255, 89, 156, 0.22);

  --brand-yellow: #FFB703;
  --brand-yellow-light: #FFF9E6;

  --brand-lilac: #8B5CF6;
  --brand-lilac-light: #F3EEFF;

  --brand-mint: #10B981;
  --brand-mint-light: #ECFDF5;

  /* Gradientes de Marca */
  --grad-logo: linear-gradient(135deg, #2CA6EC 0%, #A06CD5 50%, #FF599C 100%);
  --grad-pink-cyan: linear-gradient(135deg, #FF599C 0%, #2CA6EC 100%);
  --grad-cyan-mint: linear-gradient(135deg, #2CA6EC 0%, #10B981 100%);
  --grad-pastel-mesh: radial-gradient(at 10% 15%, rgba(255, 89, 156, 0.07) 0px, transparent 45%),
                      radial-gradient(at 90% 10%, rgba(44, 166, 236, 0.08) 0px, transparent 45%),
                      radial-gradient(at 50% 90%, rgba(255, 183, 3, 0.05) 0px, transparent 45%);

  /* Superficies y Neutros Light Theme */
  --bg-page: #F0F4F9;
  --bg-viewport: #FAFCFE;
  --surface-white: #FFFFFF;
  --surface-subtle: #F8FAFD;
  --surface-border: #E8EEF5;
  --surface-border-subtle: #F1F5F9;

  /* Textos de Alta Jerarquía */
  --text-primary: #161925;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --text-cyan: #0284C7;
  --text-pink: #D81B60;

  /* Sombras y Radios */
  --radius-full: 9999px;
  --radius-2xl: 24px;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --shadow-subtle: 0 2px 5px rgba(22, 25, 37, 0.03);
  --shadow-card: 0 4px 14px -2px rgba(44, 166, 236, 0.06), 0 2px 4px -1px rgba(22, 25, 37, 0.03);
  --shadow-card-hover: 0 10px 24px -4px rgba(44, 166, 236, 0.12), 0 4px 8px -2px rgba(255, 89, 156, 0.08);
  --shadow-floating: 0 12px 28px -4px rgba(255, 89, 156, 0.25);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset y base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  font-family: var(--font-family);
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Marco Móvil Nativo (Mobile-First Shell)
   ========================================================================== */
.mobile-viewport {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-viewport);
  background-image: var(--grad-pastel-mesh);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

/* En monitores de escritorio: iPhone showcase */
@media (min-width: 600px) {
  body {
    padding: 24px 16px;
    background: radial-gradient(circle at 50% 10%, #E9EFF8 0%, #DCE6F2 100%);
    align-items: flex-start;
  }

  .mobile-viewport {
    border-radius: 36px;
    border: 8px solid #FFFFFF;
    box-shadow: 0 25px 70px -10px rgba(18, 38, 63, 0.22), 
                0 0 0 1px rgba(200, 215, 235, 0.8),
                0 10px 30px rgba(44, 166, 236, 0.15);
    margin: 0 auto;
  }
}

/* En teléfonos móviles: 100% inmersivo */
@media (max-width: 599px) {
  body {
    padding: 0;
    background-color: var(--bg-viewport);
  }

  .mobile-viewport {
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }
}

/* ==========================================================================
   Barra Superior de Marca (Sticky Top Bar Compacta)
   ========================================================================== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.brand-header-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(44, 166, 236, 0.15));
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-mint-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065F46;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-mint);
  border-radius: 50%;
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-top-wa {
  background: #25D366;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: transform 0.15s ease;
}

.btn-top-wa:active {
  transform: scale(0.92);
}

/* ==========================================================================
   BLOQUE 1: Cabecera de Marca Hela2s (Hero Section Compacta)
   ========================================================================== */
.hero-section {
  padding: 16px 14px 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
  border-bottom: 1px solid var(--surface-border-subtle);
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, var(--brand-pink-light), var(--brand-cyan-light));
  border: 1px solid var(--brand-cyan-border);
  color: var(--text-cyan);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-gradient-text {
  background: var(--grad-pink-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Carrusel Interactivo de Especialidades (Horizontal Swipeable) */
.specialties-container {
  margin-bottom: 14px;
  position: relative;
}

.specialties-carousel-track {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 2px 0 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.specialties-carousel-track::-webkit-scrollbar {
  display: none;
}

.spec-interactive-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--surface-white);
  border: 1.5px solid var(--surface-border);
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.spec-interactive-card:active {
  transform: scale(0.95);
  border-color: var(--brand-pink);
  background: var(--brand-pink-light);
}

.spec-interactive-card.selected {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan-light);
  box-shadow: 0 4px 12px rgba(44, 166, 236, 0.2);
}

.spec-card-icon {
  font-size: 18px;
  background: var(--surface-subtle);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-card-texts {
  display: flex;
  flex-direction: column;
}

.spec-card-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap;
}

.spec-card-desc {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.carousel-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: -4px;
  padding: 0 2px;
}

/* Bloque de Autoridad Social Compacto */
.authority-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 8px 4px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-card);
}

.auth-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  position: relative;
  transition: transform 0.15s ease;
}

.auth-stat-card:active {
  transform: scale(0.96);
}

.auth-stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--surface-border);
}

.auth-number {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  background: var(--grad-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   BLOQUE 2: Módulo de Promoción del Día (Compacto & Vibrante)
   ========================================================================== */
.promo-section {
  padding: 12px 14px;
}

.promo-card-light {
  background: linear-gradient(135deg, rgba(255, 89, 156, 0.18), rgba(44, 166, 236, 0.18));
  padding: 2px;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 22px -4px rgba(44, 166, 236, 0.12), 0 3px 8px -2px rgba(255, 89, 156, 0.08);
}

.promo-card-inner {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFE 60%, #F8FBFE 100%);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 16px 14px;
}

.promo-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, #FF599C, #FF3385);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
  box-shadow: 0 3px 8px rgba(255, 89, 156, 0.35);
}

.promo-title-light {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.promo-subtitle-light {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

/* Temporizador Compacto */
.countdown-box-light {
  background: linear-gradient(180deg, #F8FAFD 0%, #EFF4FA 100%);
  border: 1px solid rgba(44, 166, 236, 0.25);
  border-radius: var(--radius-lg);
  padding: 10px;
  margin-bottom: 12px;
  text-align: center;
}

.countdown-heading-light {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-cyan);
  margin-bottom: 6px;
}

.timer-digits-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.timer-tile-light {
  background: var(--surface-white);
  border: 1px solid rgba(44, 166, 236, 0.2);
  border-radius: var(--radius-sm);
  min-width: 48px;
  padding: 5px 2px;
  box-shadow: 0 2px 4px rgba(22, 25, 37, 0.04);
}

.timer-num-light {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.timer-label-light {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.timer-colon-light {
  font-size: 18px;
  font-weight: 900;
  color: var(--brand-pink);
}

/* Lista de Beneficios Compacta */
.promo-benefits-list {
  list-style: none;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.promo-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.35;
}

.benefit-check-icon {
  width: 16px;
  height: 16px;
  background: var(--brand-cyan-light);
  border: 1px solid var(--brand-cyan-border);
  color: var(--brand-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Precios y Botón CTA Promo */
.promo-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-top: 6px;
  border-top: 1px dashed var(--surface-border);
}

.price-strike {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 600;
}

.price-hero {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-pink);
  letter-spacing: -0.5px;
}

.price-bs-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-primary-gradient {
  width: 100%;
  background: var(--grad-logo);
  color: white;
  border: none;
  padding: 13px 18px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-floating);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.2px;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.btn-primary-gradient:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(255, 89, 156, 0.3);
}

/* ==========================================================================
   BLOQUE 3: Catálogo de Cursos (Compacto con Resalte Animado)
   ========================================================================== */
.catalog-section {
  padding: 10px 14px 20px;
}

.section-head {
  margin-bottom: 10px;
}

.section-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-pink);
  letter-spacing: 0.6px;
}

.section-main-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* Filtros por Pestañas */
.catalog-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.catalog-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-subtle);
}

/* Tarjetas de Cursos Compactas */
.courses-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-item-card {
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 70px;
}

/* Animación de Resalte al presionar un botón del carrusel superior */
@keyframes cardPulseGlow {
  0% { transform: scale(1); box-shadow: var(--shadow-card); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 4px var(--brand-pink), 0 16px 36px rgba(255, 89, 156, 0.25); border-color: var(--brand-pink); }
  100% { transform: scale(1); box-shadow: var(--shadow-card); }
}

.course-item-card.highlight-flash {
  animation: cardPulseGlow 1.2s ease-in-out;
}

.course-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.category-tag {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: var(--radius-full);
}

.tag-online { background: var(--brand-cyan-light); color: var(--text-cyan); }
.tag-presencial { background: var(--brand-yellow-light); color: #B45309; }
.tag-insumos { background: var(--brand-lilac-light); color: var(--brand-lilac); }

.badge-tag-special {
  font-size: 9.5px;
  font-weight: 800;
  background: var(--brand-pink-light);
  color: var(--text-pink);
  padding: 2.5px 8px;
  border-radius: var(--radius-full);
}

.course-title-text {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 5px;
}

.course-desc-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Acordeón Compacto */
.course-accordion-toggle {
  background: none;
  border: none;
  color: var(--brand-cyan);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  padding: 2px 0;
}

.course-accordion-toggle svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.course-accordion-toggle.expanded svg {
  transform: rotate(180deg);
}

.course-accordion-body {
  display: none;
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.course-accordion-body.open {
  display: block;
}

.accordion-label {
  font-weight: 800;
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.accordion-ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 6px;
}

.accordion-ul li {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 3px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.accordion-ul li::before {
  content: "•";
  color: var(--brand-pink);
  font-weight: bold;
}

/* Pie de Tarjeta */
.course-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-border);
  padding-top: 10px;
}

.price-stack {
  display: flex;
  flex-direction: column;
}

.price-main-val {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-primary);
}

.price-ref-val {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-enroll-chip {
  background: var(--brand-pink);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 89, 156, 0.3);
  transition: all 0.15s ease;
}

.btn-enroll-chip:active {
  transform: scale(0.95);
  background: var(--brand-pink-dark);
}

/* ==========================================================================
   BLOQUE 4: Prueba Social (Carrusel Deslizable Compacto)
   ========================================================================== */
.social-proof-section {
  padding: 10px 14px 20px;
}

.testimonials-carousel-wrapper {
  position: relative;
}

.testimonials-track {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 2px 0 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-slide-card {
  flex: 0 0 88%;
  scroll-snap-align: center;
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-subtle);
}

.test-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.test-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-logo);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.test-user-info {
  flex-grow: 1;
}

.test-user-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.test-user-city {
  font-size: 10.5px;
  color: var(--text-muted);
}

.test-stars-row {
  color: #FFB703;
  font-size: 11px;
}

.test-chat-bubble {
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.test-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-mint-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065F46;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
}

/* Indicadores de Puntos para el Carrusel */
.testimonials-dots-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.test-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all 0.2s ease;
}

.test-dot.active {
  width: 16px;
  border-radius: 4px;
  background: var(--brand-pink);
}

/* ==========================================================================
   BLOQUE 5: El Núcleo Operativo (Formulario Inteligente Compacto)
   ========================================================================== */
.checkout-section {
  padding: 10px 14px 36px;
  scroll-margin-top: 65px;
}

.checkout-box-light {
  background: var(--surface-white);
  border-radius: var(--radius-2xl);
  padding: 18px 14px;
  border: 1.5px solid var(--brand-cyan-border);
  box-shadow: var(--shadow-card-hover);
}

.checkout-heading {
  margin-bottom: 14px;
}

/* Pasos numerados */
.step-header {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.step-circle {
  width: 22px;
  height: 22px;
  background: var(--brand-cyan);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(44, 166, 236, 0.35);
}

.input-field-group {
  margin-bottom: 10px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.text-input-styled {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--surface-border);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface-subtle);
  transition: all 0.2s ease;
}

.text-input-styled:focus {
  outline: none;
  border-color: var(--brand-cyan);
  background: white;
  box-shadow: 0 0 0 3px rgba(44, 166, 236, 0.12);
}

/* Selector Segmentado de Métodos de Pago: Pago Móvil, Binance Pay y Zinli */
.payment-toggle-pill {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface-subtle);
  padding: 3px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--surface-border);
  gap: 3px;
  margin-bottom: 12px;
}

.pay-toggle-btn {
  border: none;
  background: transparent;
  padding: 9px 3px;
  border-radius: calc(var(--radius-lg) - 3px);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pay-toggle-btn.active {
  background: var(--surface-white);
  color: var(--brand-cyan);
  box-shadow: 0 2px 8px rgba(44, 166, 236, 0.18);
  border: 1px solid rgba(44, 166, 236, 0.25);
}

/* Panel de Cuentas Bancarias */
.bank-data-card {
  background: linear-gradient(180deg, #F8FAFD 0%, #F1F6FB 100%);
  border: 1px solid rgba(44, 166, 236, 0.2);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 12px;
}

.bank-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 11.5px;
}

.bank-row-item:not(:last-child) {
  border-bottom: 1px dashed rgba(203, 213, 225, 0.8);
}

.bank-row-title {
  color: var(--text-muted);
  font-weight: 600;
}

.bank-row-val-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bank-row-val {
  font-weight: 800;
  color: var(--text-primary);
}

.btn-copy-action {
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--brand-cyan);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-copy-action:active {
  background: var(--brand-cyan);
  color: white;
}

/* Dropzone de Comprobante Compacto */
.upload-dropzone {
  border: 2px dashed rgba(44, 166, 236, 0.4);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  background: var(--brand-cyan-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--brand-pink);
  background: var(--brand-pink-light);
}

.upload-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.upload-main-text {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.upload-hint-text {
  font-size: 10px;
  color: var(--text-muted);
}

/* Previsualización */
.preview-box {
  display: none;
  margin-top: 6px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.preview-thumb {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  display: block;
}

.btn-clear-preview {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(22, 25, 37, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Resumen del Monto */
.checkout-summary-card {
  background: linear-gradient(135deg, #F8FAFD 0%, #FFF5F9 100%);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 89, 156, 0.2);
}

.summary-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.summary-course-label {
  font-weight: 800;
  color: var(--text-primary);
}

.summary-price-big {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-pink);
}

.summary-bs-calc {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  margin-top: 2px;
}

/* Botón Final de Confirmación */
.btn-submit-order-master {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease;
}

.btn-submit-order-master:active {
  transform: scale(0.97);
}

/* Toast */
.toast-badge {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  z-index: 1000;
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-badge.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Modal Ticket Digital
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 25, 38, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-backdrop.open {
  display: flex;
}

.ticket-modal-card {
  background: var(--surface-white);
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-2xl);
  padding: 20px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ticket-icon-circle {
  width: 52px;
  height: 52px;
  background: var(--brand-mint-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--brand-mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 10px;
}

.ticket-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ticket-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.receipt-ticket-stub {
  background: linear-gradient(180deg, #F8FAFD 0%, #FFFFFF 100%);
  border: 1.5px dashed rgba(44, 166, 236, 0.3);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 14px;
  text-align: left;
}

.stub-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  padding: 3px 0;
}

.stub-id-highlight {
  font-weight: 900;
  color: var(--brand-cyan);
}

.btn-send-wa-final {
  width: 100%;
  background: #25D366;
  color: white;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-close-ticket {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
