/* =========================
   VARIABLES CSS (ROOT)
   * Mantengo todas tus variables y agrego utilitarias
========================= */
:root {
  /* === Paleta de colores azules (tuyas) === */
  --catskill-white: #eff5f8;
  --havelock-blue: #60a1d9;
  --regent-st-blue: #a3c5df;
  --picton-blue: #4baae2;
  --half-baked: #82afd5;
  --cornflower: #8bc4e3;
  --danube: #749cd0;
  --viking: #6cb6da;
  --pigeon-post: #bcc4dc;

  /* === Colores semánticos (tuyos) === */
  --bs-primary: #60a1d9;
  --bs-primary-rgb: 96, 161, 217;
  --bs-secondary: #4baae2;
  --bs-success: #28a745;
  --bs-danger: #dc3545;
  --bs-warning: #ffc107;
  --bs-info: #17a2b8;
  --bs-light: #f8f9fa;
  --bs-dark: #2c3e50;

  /* === Gradientes (tuyos) === */
  --gradient-primary: linear-gradient(135deg, #60a1d9 0%, #4baae2 100%);
  --gradient-secondary: linear-gradient(135deg, #6cb6da 0%, #8bc4e3 100%);

  /* === Sombras (tuyas) === */
  --shadow-sm: 0 2px 8px rgba(96, 161, 217, 0.12);
  --shadow-md: 0 4px 15px rgba(96, 161, 217, 0.18);
  --shadow-lg: 0 8px 25px rgba(96, 161, 217, 0.25);

  /* === Espaciado (tuyos) === */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* === Bordes (tuyos) === */
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* === Vars extra para Navbar PRO === */
  --nav-height: 64px;
  --navbar-blur-bg: rgba(18, 28, 38, 0.38);            /* capa oscura para contraste con blur */
  --navbar-solid-bg: #14202c;                           /* fallback sólido */
  --navbar-gradient: linear-gradient(135deg, #3e7fb7 0%, #4baae2 100%);
  --navbar-border: rgba(255,255,255,0.12);
  --navbar-shadow: 0 10px 30px rgba(0,0,0,0.25);
  --focus-ring: 0 0 0 0.2rem rgba(96,161,217,0.35);
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
}

/* =========================
   NAVBAR PERSONALIZADA (mantengo lo tuyo + mejoras PRO)
========================= */

/* --- Lo tuyo (conservado) --- */
.navbar-dark {
  background: var(--navbar-solid-bg) !important;
}

.navbar-brand {
  font-weight: 700 !important;
  font-size: 1.8rem !important;
  color: white !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  margin: 0 0.2rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* --- Mejora global PRO: sticky + blur + transiciones finas --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030; /* por encima del contenido */
  height: var(--nav-height);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: var(--navbar-solid-bg);
  border-bottom: 1px solid var(--navbar-border);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Estado sólido (agregá .is-solid con JS al hacer scroll si querés) */
.navbar.is-solid,
.navbar.scrolled {
  background: var(--navbar-gradient) !important;
  box-shadow: var(--navbar-shadow);
  border-bottom-color: transparent;
}

/* Marca mejor legible en todos los estados */
.navbar-brand {
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

/* Links con subrayado animado minimalista */
.navbar-nav .nav-link {
  position: relative;
  isolation: isolate;
  backdrop-filter: none;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: rgba(255,255,255,0.65);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus-visible::after,
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Estado activo/actual */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
}

/* Toggler mejorado (Bootstrap) */
.navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  transition: transform var(--transition-fast), background var(--transition-fast);
  backdrop-filter: blur(4px);
}

.navbar .navbar-toggler:focus {
  box-shadow: var(--focus-ring) !important;
}

.navbar .navbar-toggler:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

/* Dropdown PRO */
.navbar .dropdown-menu {
  --bs-dropdown-bg: #0f1821;
  --bs-dropdown-link-color: rgba(255,255,255,0.85);
  --bs-dropdown-link-hover-bg: rgba(255,255,255,0.08);
  --bs-dropdown-border-color: rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(15,24,33,0.98), rgba(20,32,44,0.98));
  border: 1px solid var(--bs-dropdown-border-color);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  transform-origin: top center;
  animation: dd-enter 160ms ease-out;
}

@keyframes dd-enter {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.navbar .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  color: #fff;
  background: var(--bs-dropdown-link-hover-bg);
}

/* CTA dentro del nav (si usás un botón a la derecha) */
.navbar .nav-cta.btn,
.navbar .btn-primary {
  background: var(--gradient-secondary) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(75,170,226,0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

.navbar .nav-cta.btn:hover,
.navbar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(75,170,226,0.38);
}

/* Accesibilidad */
.navbar .nav-link:focus-visible,
.navbar .dropdown-item:focus-visible,
.navbar .navbar-toggler:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring) !important;
}

/* Responsive fine-tuning */
@media (max-width: 991.98px) {
  .navbar {
    height: auto;
    padding-top: .35rem;
    padding-bottom: .35rem;
  }
  .navbar-nav .nav-link {
    margin: 0.15rem 0;
    border-radius: 10px;
  }
  .navbar .dropdown-menu {
    border-radius: 10px;
  }
}

/* Modo reducido de movimiento */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar * {
    transition: none !important;
    animation: none !important;
  }
}


/* =========================
   HERO SECTION PRO (con imagen a la derecha)
   * No requiere cambios en HTML
   * Usa ::after para la imagen decorativa
========================= */
.hero-section {
  background: var(--navbar-solid-bg);
  min-height: min(100vh, 820px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 6vh, 4rem);
  /* Reservo espacio a la derecha para la imagen en pantallas grandes */
  padding-right: clamp(320px, 42vw, 640px);
}

/* Mantengo tu patrón de grilla sutil */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

/* Imagen decorativa a la derecha (no requiere <img>) */
.hero-section::after {
  content: "";
  position: absolute;
  right: max(5vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 40vw, 620px);
  height: clamp(280px, 40vw, 620px); /* cuadrado flexible para contener el SVG */
  background: url("../img/imagen.svg") no-repeat center center / contain;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,0.25));
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 300ms ease, opacity 300ms ease;
}

/* Sutil animación al hacer hover en hero */
.hero-section:hover::after {
  opacity: 0.98;
}

/* Contenido del hero siempre por encima */
.hero-section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

/* Tipografía pro del hero (no rompe tus estilos globales) */
.hero-section h1,
.hero-section .display-4 {
  color: #fff;
  letter-spacing: .2px;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0,0,0,.12);
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.hero-section, .container, .textos-hero{
  text-align: left;
}



.hero-section .container .lead {
  color: white;
  font-size: clamp(1rem, 1.2vw + .9rem, 1.25rem);
}

/* Botonera del hero */
.hero-section .btn {
  box-shadow: 0 10px 24px rgba(75,170,226,0.28);
}
.hero-section .btn:hover {
  box-shadow: 0 14px 32px rgba(75,170,226,0.38);
  transform: translateY(-2px);
}

/* Badge/mini chips opcionales dentro del hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-sm);
}

/* Ajustes responsive */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-right: 1rem;            /* ya no reservamos espacio fijo para la imagen */
    padding-left: 1rem;
  }
  .hero-section::after {
    position: absolute;
    right: 50%;
    transform: translate(50%, 0);
    top: auto;
    bottom: -1.5rem;
    width: clamp(240px, 70vw, 520px);
    height: clamp(240px, 70vw, 520px);
    opacity: 0.25;                 /* imagen pasa a ser decorativa de fondo */
    filter: blur(0.2px) drop-shadow(0 12px 30px rgba(0,0,0,0.25));
  }
  .hero-section .lead {
    margin-bottom: var(--spacing-lg);
  }
}

/* Modo reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .hero-section::after {
    transition: none !important;
  }
}

/* =========================
   ESTILOS PARA CARDS DE SERVICIOS
   * Usando Bootstrap para layout responsivo
========================= */

/* Estilos adicionales para las cards - DISEÑO MODERNO */
.service-card,
.combo-card {
  border: none;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 
    0 8px 32px rgba(96, 161, 217, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Línea azul animada en la parte superior */
.service-card::before,
.combo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 20px 20px 0 0;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
}

.service-card:hover::before,
.combo-card:hover::before {
  width: 100%;
}

/* Efecto de borde sutil - cambiado a otro pseudo-elemento */
.service-card .card-body::before,
.combo-card .card-body::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(96, 161, 217, 0.2), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
}

.service-card:hover,
.combo-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 20px 60px rgba(96, 161, 217, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.1);
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
}

/* Card body con mejor espaciado */
.service-card .card-body,
.combo-card .card-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Iconos mejorados */
.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding: 1rem;

  transition: all 0.3s ease;
}

.service-card:hover .service-icon,
.combo-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon .fa-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(188, 24, 136, 0.3));
}

.service-icon .fa-tiktok {
  color: #000;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Títulos mejorados */
.card-title {
  font-weight: 700;
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card-subtitle {
  font-weight: 500;
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Precio destacado */
.card-price {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(96, 161, 217, 0.2);
}

/* Texto de moneda */
.price-currency {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: block;
}

/* Información adicional */
.text-success {
  font-weight: 600;
  font-size: 0.85rem;
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* Botones modernos */
.service-card .btn-primary,
.combo-card .btn-primary {
  background: var(--bs-dark);
  border: none;
  border-radius: 15px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(96, 161, 217, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.service-card .btn-primary:hover,
.combo-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(96, 161, 217, 0.4);
  background: linear-gradient(135deg, #4baae2 0%, #60a1d9 100%);
}

.service-card .btn-primary:hover::before,
.combo-card .btn-primary:hover::before {
  left: 100%;
}

/* Efecto glassmorphism para combos */
.combo-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
}

.combo-card::after {
  content: '✨ COMBO';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Responsive - ajustes para móvil */
@media (max-width: 768px) {
  .service-card .card-body,
  .combo-card .card-body {
    padding: 1.5rem 1rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
    padding: 0.75rem;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .card-price {
    font-size: 1.6rem;
  }
}

/* =========================
   SECCIONES FULLSCREEN (100vh)
========================= */

/* Hacer que cada sección ocupe toda la altura de la pantalla */
#instagram-likes,
#instagram-views,
#tiktok-likes,
#tiktok-views,
#combos,
section:has(#combos-tiktok-grid) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0 !important; /* Anular py-5 de Bootstrap */
}

/* Ajustar el contenedor para distribuir el espacio */
#instagram-likes .container,
#instagram-views .container,
#tiktok-likes .container,
#tiktok-views .container,
#combos .container,
section:has(#combos-tiktok-grid) .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Anular márgenes de títulos para mejor distribución */


/* Ajustar cards para que se adapten al espacio disponible */
.service-card,
.combo-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  box-shadow: var(--shadow-sm);
  height: auto;
  min-height: calc((100vh - 200px) / 2.5); /* Altura dinámica basada en viewport */
}

/* Anular margin-bottom de las cards */
.row .col-6,
.row .col-sm-6,
.row .col-lg-3 {
  margin-bottom: 1rem !important; /* Reducir mb-4 */
}

/* En pantallas pequeñas, reducir la altura mínima */
@media (max-width: 768px) {
  .service-card,
  .combo-card {
    min-height: calc((100vh - 150px) / 3);
  }
  
  #instagram-likes,
  #instagram-views,
  #tiktok-likes,
  #tiktok-views,
  #combos,
  section:has(#combos-tiktok-grid) {
    padding: 0.5rem 0 !important;
  }
  
  #instagram-likes .text-center,
  #instagram-views .text-center,
  #tiktok-likes .text-center,
  #tiktok-views .text-center,
  #combos .text-center,
  section:has(#combos-tiktok-grid) .text-center {
    margin-bottom: 1rem !important;
  }
}

/* =========================
   EFECTO BLUR PARA MODAL
========================= */

/* Contenedor principal que se va a desenfocar */
.main-content {
  transition: filter 0.3s ease;
}

/* Clase que se aplica cuando el modal está abierto */
.modal-open .main-content {
  filter: blur(8px);
  pointer-events: none;
}

/* Asegurar que el modal no se vea afectado por el blur */
.modal {
  filter: none !important;
  z-index: 9999 !important;
}

.modal-dialog {
  filter: none !important;
  z-index: 10000 !important;
}

.modal-content {
  filter: none !important;
  z-index: 10001 !important;
  backdrop-filter: none !important;
}

/* Mejorar la transición del backdrop del modal */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998 !important;
}

/* =========================
   DISEÑO PROFESIONAL DEL MODAL
========================= */

/* MODAL ESTÁTICO - SIN SCROLL EXTERNO */
#purchaseModal.modal {
  overflow: hidden !important; /* Sin scroll en el modal */
}

/* Prevenir scroll en el body cuando el modal está abierto */
body.modal-open {
  overflow: hidden !important;
}

/* ANULAR LIMITACIONES DE BOOTSTRAP PARA MODAL FULLSCREEN */
#purchaseModal.modal .modal-dialog {
  max-width: none !important;
  width: 85vw !important; 
  height: 85vh !important; /* Altura fija */
  max-height: 85vh !important; /* Altura máxima fija */
  margin: 7.5vh auto !important; /* Centrado vertical normal */
  display: flex !important;
  flex-direction: column !important;
}

#purchaseModal.modal .modal-dialog.modal-lg {
  max-width: 95vw !important;
  width: 95vw !important;
}

/* Anular cualquier limitación de Bootstrap */
.modal-lg {
  max-width: 95vw !important;
}

/* Modal específico para pantalla completa */
#purchaseModal {
  --bs-modal-width: 95vw !important;
}

/* FORZAR ANULACIÓN COMPLETA DE BOOTSTRAP */
#purchaseModal.modal .modal-dialog-centered {
  min-height: calc(100% - 5vh) !important;
}

#purchaseModal.modal .modal-dialog-centered::before {
  height: calc(100vh - 5vh) !important;
}

/* Anular cualquier max-width de Bootstrap */
.modal-xl,
.modal-lg,
.modal-md,
.modal-sm {
  max-width: none !important;
}

#purchaseModal .modal-lg {
  max-width: 95vw !important;
  width: 95vw !important;
}

/* REGLA FINAL - FORZAR TAMAÑO COMPLETO */
#purchaseModal.show .modal-dialog {
  max-width: 95vw !important;
  width: 95vw !important;
  height: 95vh !important;
  max-height: 95vh !important;
  transform: none !important;
}

/* Asegurar que Bootstrap no limite el modal */
@media (min-width: 576px) {
  #purchaseModal .modal-dialog {
    max-width: 95vw !important;
    margin: 2.5vh auto !important;
  }
}

@media (min-width: 992px) {
  #purchaseModal .modal-lg {
    max-width: 95vw !important;
  }
}

/* Diálogo del modal - COMPACTO SIN SCROLL */
.modal-dialog {
  filter: none !important;
  z-index: 10000 !important;
  animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: 85vw !important; /* Menos ancho */
  width: 85vw !important;
  max-height: 85vh !important; /* Menos altura */
  margin: 7.5vh auto !important; /* Más margen */
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Contenido del modal - SIN SCROLL */
.modal-content {
  filter: none !important;
  z-index: 10001 !important;
  backdrop-filter: none !important;
  border: none;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.12),
    0 16px 32px rgba(96, 161, 217, 0.08),
    0 8px 16px rgba(96, 161, 217, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden; /* Sin overflow en el contenedor */
  height: 100% !important; /* Altura completa del dialog */
  width: 100% !important; /* Ancho completo */
  max-height: none !important; /* Sin restricción de altura */
  max-width: none !important; /* Sin restricción de ancho */
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header del modal más compacto */
.modal-header {
  background: linear-gradient(135deg, #0129da 0%, #2551a3 50%, #0489ae 100%);
  color: white;
  border: none;
  padding: 0.75rem 1rem; /* Más compacto */
  border-radius: 15px 15px 0 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(102, 102, 238, 0.3);
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
}

.modal-title {
  font-weight: 800;
  font-size: 1.2rem; /* Ligeramente más grande */
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.modal-header .btn-close {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 34px; /* Ligeramente más grande */
  height: 34px; 
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0) invert(1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.modal-header .btn-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Body del modal - ELEGANTE Y ESPACIOSO */
.modal-body {
  padding: 1.5rem; 
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%); 
  flex: 1 1 auto; /* Toma todo el espacio disponible */
  overflow-y: auto; /* Scroll vertical interno */
  overflow-x: hidden; /* Sin scroll horizontal */
  display: flex;
  flex-direction: column;
  gap: 0.3rem; 
  padding-bottom: 0.3rem;
  min-height: 0; /* Importante para que funcione el flex scroll */
  height: 0; /* Fuerza el scroll interno */
  position: relative;
}

.modal-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(96, 161, 217, 0.2) 50%, transparent 100%);
  pointer-events: none;
}

/* Scroll personalizado para modal */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
  border-radius: 4px;
  margin: 4px 0;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(96, 161, 217, 0.6) 0%, rgba(96, 161, 217, 0.4) 100%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(96, 161, 217, 0.8) 0%, rgba(96, 161, 217, 0.6) 100%);
  transform: scaleX(1.2);
}

/* Product summary elegante y moderno */
.product-summary-card {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%) !important; /* Fondo sutil */
  border-radius: 12px; /* Border radius elegante */
  padding: 1rem; /* Padding cómodo */
  margin-bottom: 1rem; /* Margen apropiado */
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra sutil */
  border: 1px solid rgba(96, 161, 217, 0.1); /* Borde muy sutil */
}

/* Mejorar el layout del product summary */
.product-summary-card .d-flex {
  align-items: center !important;
  justify-content: space-between !important;
}

/* Asegurar que el precio esté bien centrado */
.product-summary-card .text-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Estilo específico para el contenedor del precio */
#product-summary .text-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.product-summary-card h4 {
  color: #2d3748; /* Color oscuro elegante */
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: none; /* Sin sombra */
  font-size: 1.1rem; /* Tamaño apropiado */
}

.product-summary-card p {
  color: #64748b; /* Gris elegante */
  font-size: 0.9rem; /* Tamaño legible */
}

/* Resumen del producto mejorado */
#product-summary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  border-radius: 16px;

  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(96, 161, 217, 0.3);
}

#product-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

#product-summary h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#product-summary p {
  color: rgba(18, 17, 17, 0.9);
  margin: 0;
  font-size: 1.1rem;
}

/* Formulario más compacto */
.form-label {
  color: #374151;
  font-weight: 700;
  margin-bottom: 0.75rem; 
  font-size: 1rem; /* Tamaño apropiado */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 8px;
}

.form-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, #60a1d9 0%, #667eea 100%);
  border-radius: 2px;
}

/* Inputs más compactos */
.form-control {
  border: 2px solid rgba(96, 161, 217, 0.25);
  border-radius: 12px; /* Más redondeado */
  padding: 0.75rem 1rem; /* Padding más cómodo */
  font-size: 0.9rem; /* Ligeramente más grande */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
}

.form-control:focus {
  border-color: #60a1d9;
  box-shadow: 
    0 0 0 0.2rem rgba(96, 161, 217, 0.15),
    0 4px 16px rgba(96, 161, 217, 0.1),
    inset 0 1px 2px rgba(0, 0, 0, 0.05); /* Múltiples sombras elegantes */
  background: linear-gradient(145deg, #ffffff 0%, rgba(248, 250, 252, 0.9) 100%);
  transform: translateY(-1px) scale(1.01);
}

/* Inputs compactos cuando hay múltiples enlaces */
.compact-inputs .form-control {
  padding: 0.5rem 0.75rem; /* Menos padding */
  font-size: 0.85rem; /* Texto más pequeño */
  border-radius: 8px; /* Border radius más pequeño */
}

.compact-inputs .form-label {
  font-size: 0.9rem; /* Labels más pequeños */
  margin-bottom: 0.5rem; /* Menos margen */
}

.compact-inputs .form-label::before {
  height: 14px; /* Barra indicadora más pequeña */
}

.compact-inputs .form-section {
  padding: 1rem; /* Menos padding en secciones */
  gap: 0.75rem; /* Menos espacio entre elementos */
}

.compact-inputs .modal-body {
  gap: 0.75rem; /* Menos espacio entre secciones */
}

/* Botones del formulario mejorados */
.btn-outline-primary,
.btn-outline-danger {
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline-primary::before,
.btn-outline-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-outline-primary:hover,
.btn-outline-danger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary:hover::before,
.btn-outline-danger:hover::before {
  opacity: 1;
}

.btn-outline-primary:hover {
  box-shadow: 0 8px 20px rgba(96, 161, 217, 0.3);
}

.btn-outline-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Footer del modal más compacto */
.modal-footer {
  background: #f8fafc;
  border: none;
  padding: 0.5rem 1rem; /* Más compacto */
  border-radius: 0 0 12px 12px;
  gap: 0.3rem; /* Menos gap */
  display: flex;
  justify-content: flex-end;
}

/* Botón de pago más compacto */
#btn-pay {
  background: linear-gradient(135deg, #2551a3 0%, #0489ae 100%);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  transition: all 0.3s;
}

#btn-pay:hover {
  background: linear-gradient(135deg, #0489ae 0%, #2551a3 100%);
  transform: translateY(-1px);
}

/* Botón cancelar más compacto */
.modal-footer .btn-secondary {
  background: #e2e8f0;
  border: 1px solid #60a1d9;
  color: #2551a3;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.modal-footer .btn-secondary:hover {
  background: #60a1d9;
  color: #fff;
  border-color: #2551a3;
}

/* =========================
   MODAL DE COMPRA OPTIMIZADO
========================= */

#purchaseModal.modal {
  overflow: hidden !important;
}

body.modal-open {
  overflow: hidden !important;
}

#purchaseModal.modal .modal-dialog {
  max-width: 90vw !important;
  width: 90vw !important;
  height: 90vh !important;
  max-height: auto !important;
  margin: 2vh auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-content {
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 0 8px 32px rgba(96, 161, 217, 0.18);
  overflow: hidden;
  height: 100% !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: linear-gradient(135deg, #2551a3 0%, #0489ae 100%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 12px 12px 0 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.12);
}

.modal-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.modal-header .btn-close {
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  opacity: 1;
  transition: all 0.3s;
  filter: brightness(0) invert(1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.modal-header .btn-close:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.08);
}

.modal-body {
  padding: 1rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 0.3rem;
  min-height: 0;
  height: 0;
  font-size: 0.92rem;
}

/* Scroll personalizado */
.modal-body::-webkit-scrollbar {
  width: 7px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: #60a1d9;
  border-radius: 4px;
}

.product-summary-card {
  background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(96, 161, 217, 0.08);
  font-size: 0.95rem;
}
.product-summary-card h4 {
  color: #2551a3;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.product-summary-card p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}
.price-badge {
  background: linear-gradient(145deg, #3b82f6, #1e40af);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  min-width: 90px;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.price-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.price-currency {
  color: #1e1d1d;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.form-section {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(96, 161, 217, 0.04);
  font-size: 0.92rem;
}
.form-label {
  color: #2551a3;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-left: 6px;
}
.form-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 14px;
  background: #60a1d9;
  border-radius: 1px;
}
.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.form-control:focus {
  border-color: #60a1d9;
  box-shadow: 0 0 0 0.1rem #60a1d9;
}

/* Inputs compactos cuando hay muchos enlaces */
.compact-inputs .form-control {
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  border-radius: 6px;
}
.compact-inputs .form-label {
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}
.compact-inputs .form-label::before {
  height: 10px;
}
.compact-inputs .form-section {
  padding: 0.5rem;
}
.compact-inputs .modal-body {
  gap: 0.5rem;
}

.alert-info-custom {
  background: #e2e8f0;
  border: 1px solid #60a1d9;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.examples-text {
  color: #64748b;
  font-size: 0.75rem;
}

.links-section {
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.3rem;
  border: 1px solid #e2e8f0;
}
.links-grid {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.links-controls {
  display: flex;
  justify-content: center;
  margin: 0.3rem 0;
}
.btn-add-link {
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  font-size: 0.8rem;
}

.form-help-box {
  background: #e2e8f0;
  border-radius: 5px;
  padding: 0.5rem;
  border: 1px solid #60a1d9;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}
.help-item-compact {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #2551a3;
  font-weight: 500;
  padding: 0.2rem;
  background: #fff;
  border-radius: 3px;
  border-left: 2px solid #60a1d9;
}
.help-item-compact i {
  font-size: 0.7rem;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

.modal-footer {
  background: #f8fafc;
  border: none;
  padding: 0.5rem 1rem; /* Más compacto */
  border-radius: 0 0 12px 12px;
  gap: 0.3rem; /* Menos gap */
  display: flex;
  justify-content: flex-end;
}
#btn-pay {
  background: linear-gradient(135deg, #2551a3 0%, #0489ae 100%);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  transition: all 0.3s;
}
#btn-pay:hover {
  background: linear-gradient(135deg, #0489ae 0%, #2551a3 100%);
  transform: translateY(-1px);
}
.modal-footer .btn-secondary {
  background: #e2e8f0;
  border: 1px solid #60a1d9;
  color: #2551a3;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s;
}
.modal-footer .btn-secondary:hover {
  background: #60a1d9;
  color: #fff;
  border-color: #2551a3;
}

/* =========================
   MODAL DE COMPRA OPTIMIZADO
========================= */

#purchaseModal.modal {
  overflow: hidden !important;
}

body.modal-open {
  overflow: hidden !important;
}

#purchaseModal.modal .modal-dialog {
  max-width: 96vw !important;
  width: 96vw !important;
  height: 90vh !important;
  max-height: auto !important;
  margin: 2vh auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-content {
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 0 8px 32px rgba(96, 161, 217, 0.18);
  overflow: hidden;
  height: 100% !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: linear-gradient(135deg, #2551a3 0%, #0489ae 100%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 12px 12px 0 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.12);
}

.modal-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.modal-header .btn-close {
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  opacity: 1;
  transition: all 0.3s;
  filter: brightness(0) invert(1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.modal-header .btn-close:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.08);
}

.modal-body {
  padding: 1rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 0.3rem;
  min-height: 0;
  height: 0;
  font-size: 0.92rem;
}

/* Scroll personalizado */
.modal-body::-webkit-scrollbar {
  width: 7px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: #60a1d9;
  border-radius: 4px;
}

.product-summary-card {
  background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(96, 161, 217, 0.08);
  font-size: 0.95rem;
}
.product-summary-card h4 {
  color: #2551a3;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.product-summary-card p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}
.price-badge {
  background: linear-gradient(145deg, #3b82f6, #1e40af);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  min-width: 90px;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.price-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.price-currency {
  color: #292525;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.form-section {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(96, 161, 217, 0.04);
  font-size: 0.92rem;
}
.form-label {
  color: #2551a3;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-left: 6px;
}
.form-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 14px;
  background: #60a1d9;
  border-radius: 1px;
}
.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.form-control:focus {
  border-color: #60a1d9;
  box-shadow: 0 0 0 0.1rem #60a1d9;
}

/* Inputs compactos cuando hay muchos enlaces */
.compact-inputs .form-control {
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  border-radius: 6px;
}
.compact-inputs .form-label {
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}
.compact-inputs .form-label::before {
  height: 10px;
}
.compact-inputs .form-section {
  padding: 0.5rem;
}
.compact-inputs .modal-body {
  gap: 0.5rem;
}

.alert-info-custom {
  background: #e2e8f0;
  border: 1px solid #60a1d9;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.examples-text {
  color: #64748b;
  font-size: 0.75rem;
}

.links-section {
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.3rem;
  border: 1px solid #e2e8f0;
}
.links-grid {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.links-controls {
  display: flex;
  justify-content: center;
  margin: 0.3rem 0;
}
.btn-add-link {
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  font-size: 0.8rem;
}

.form-help-box {
  background: #e2e8f0;
  border-radius: 5px;
  padding: 0.5rem;
  border: 1px solid #60a1d9;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}
.help-item-compact {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #2551a3;
  font-weight: 500;
  padding: 0.2rem;
  background: #fff;
  border-radius: 3px;
  border-left: 2px solid #60a1d9;
}
.help-item-compact i {
  font-size: 0.7rem;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

.modal-footer {
  background: #f8fafc;
  border: none;
  padding: 0.5rem 1rem; /* Más compacto */
  border-radius: 0 0 12px 12px;
  gap: 0.3rem; /* Menos gap */
  display: flex;
  justify-content: flex-end;
}
#btn-pay {
  background: linear-gradient(135deg, #2551a3 0%, #0489ae 100%);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  transition: all 0.3s;
}
#btn-pay:hover {
  background: linear-gradient(135deg, #0489ae 0%, #2551a3 100%);
  transform: translateY(-1px);
}
.modal-footer .btn-secondary {
  background: #e2e8f0;
  border: 1px solid #60a1d9;
  color: #2551a3;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s;
}
.modal-footer .btn-secondary:hover {
  background: #60a1d9;
  color: #fff;
  border-color: #2551a3;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  #purchaseModal .modal-dialog {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    border-radius: 0;
  }
  .modal-content {
    border-radius: 0;
    height: 100vh !important;
  }
  .modal-body {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
  .form-section {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  .product-summary-card {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  .modal-header, .modal-footer {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }
}




