/* ============================================
   PERFORMANCE & MOBILE-FIRST OPTIMIZATIONS
   ============================================ */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .spinner-circle, .payment-spinner {
    animation: none !important;
  }
}

/* Content visibility for below-fold sections */
.acordeon-section,
.info-promo-section,
.faq-section,
.glossary-banner {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* GPU acceleration for animated elements */
.chatbot-flotante,
.cookies-banner,
.loader-overlay,
.payment-loader-overlay {
  will-change: transform;
  transform: translateZ(0);
}

/* Contain for isolated components */
.purchase-inline-card,
.payment-card-box,
.faq-card {
  contain: layout style paint;
}

.card {
  contain: layout style;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #004990;
  outline-offset: 2px;
}

/* Touch action optimization */
button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Prevent text size adjustment on mobile */
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #333333;
}

/* 1. Top Bar Azul */
.top-bar {
  background-color: #004990;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
}

.top-links a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 15px;
  padding: 4px 8px;
}

.top-links a.active {
  background-color: #ffffff;
  color: #004990;
  border-radius: 2px;
}

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

.brand-link {
  font-size: 12px;
  font-weight: 400;
}

.search-box {
  background: white;
  border-radius: 15px;
  padding: 2px 10px;
  display: flex;
  align-items: center;
}

.search-box input {
  border: none;
  outline: none;
  padding: 3px;
  font-size: 12px;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 2. Nav Principal */
.main-navbar {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 20px;
}

.main-navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-telcel {
  display: block;
  width: 100px;
  height: auto;
  margin-right: 25px;
}

.dropdown {
  font-size: 14px;
  font-weight: 600;
  color: #004990;
  cursor: pointer;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-item {
  color: #004990;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.btn-mi-telcel {
  background-color: #00a9e0;
  color: white;
  padding: 6px 14px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}

/* 3. Breadcrumbs */
.breadcrumbs-container {
  max-width: 1200px;
  margin: 15px auto;
  padding: 0 20px;
  font-size: 12px;
  color: #888888;
}

.active-crumb {
  color: #004990;
}

/* 4. Hero Banner */
.hero-banner-container {
  max-width: 1200px;
  margin: 0 auto 25px auto;
  padding: 0 20px;
}

.hero-banner-full {
  position: relative;
  background: linear-gradient(105deg, #ff9a3c 0%, #ff5e8a 40%, #e91e8c 100%);
  border-radius: 16px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 60px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(230, 0, 103, 0.25);
}

/* Formas decorativas de fondo */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: 16px;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: #ffffff;
  top: -80px;
  left: -60px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: #ffcc00;
  bottom: -40px;
  left: 30%;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: #ffffff;
  top: -50px;
  right: 20%;
}

.banner-text-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.main-offer-title {
  color: #ffffff;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.offer-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.big-yellow {
  font-size: 72px;
  font-weight: 900;
  color: #eaff00;
  line-height: 1;
  text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

.middle-text {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
}

.brand-logo-wrapper {
  margin-bottom: 10px;
}

.hero-brand-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  color: #003399;
  text-shadow: -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff;
}

.hero-brand-highlight {
  color: #ff5e00;
}



/* 5. Pestañas */
.tabs-container {
  background-color: #f2f5fa;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 30px;
}

.tabs-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  text-decoration: none;
  color: #004990;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 4px solid transparent;
  transition: all 0.2s ease;
}

.tab-item.active {
  border-bottom: 4px solid #00338d;
  background-color: #ffffff;
  color: #00338d;
}

.tab-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: #004990;
}

.tab-item.active .tab-icon {
  stroke: #00338d;
}

/* 6. Tarjetas de Paquetes */
.paquetes-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.titulo {
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  color: #333333;
  margin-bottom: 12px;
}

.subtitulo {
  font-size: 18px;
  text-align: center;
  color: #333333;
  margin-bottom: 35px;
}

.paquetes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: visible;
}
#packages-wrapper {
  overflow: visible;
}


.card {
  position: relative;
  width: calc(50% - 8px);
  max-width: 520px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
  -webkit-mask-image: none;
  mask-image: none;
  clip-path: none;
}

.badge {
  position: absolute;
  top: -10px;
  left: 0;
  background-color: #b8006b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 9999;
  display: inline-block;
  white-space: nowrap;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.card-header {
  background-color: #e8f0fe;
  color: #003087;
  font-weight: 700;
  padding: 14px 20px;
  font-size: 14px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  position: relative;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
  clip-path: none;
}

.card-body {
  padding: 28px 24px 24px 24px;
}

.row-info-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
}

.info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.value {
  font-size: 22px;
  font-weight: 700;
  color: #003087;
  line-height: 1.2;
}

.value-dark {
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  line-height: 1.2;
}

.label {
  font-size: 11px;
  color: #888888;
  font-weight: 500;
  line-height: 1.3;
}

.price-col {
  display: flex;
  align-items: flex-end;
  margin-left: auto;
}

.price {
  font-size: 26px;
  font-weight: 800;
  color: #000000;
  line-height: 1;
}

.row-button {
  display: flex;
  justify-content: flex-end;
}

.btn-lo-quiero {
  background-color: #741b8a;
  color: #ffffff;
  border: none;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-lo-quiero:hover {
  background-color: #5a156e;
}

.legales {
  font-size: 12px;
  color: #666666;
  margin-top: 20px;
}

/* SECCIÓN DE COMPRA (PASO 1) */
.purchase-inline-container {
  display: none;
  margin-top: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.purchase-inline-container.active {
  display: flex;
}

.purchase-inline-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  border: 1px solid #dcdcdc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-family: 'Montserrat', sans-serif;
}

.purchase-summary-box {
  background-color: #ffffff;
  padding: 10px 0;
}

.summary-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.summary-check {
  color: #00873e;
  font-weight: 700;
  font-size: 14px;
}

.btn-modify {
  background: none;
  border: none;
  color: #004990;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.summary-package-name {
  color: #004990;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.summary-amount-label {
  font-size: 13px;
  color: #333333;
  font-weight: 600;
}

.summary-amount-value {
  color: #004990;
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}

.summary-phone-value {
  color: #004990;
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

.modal-divider {
  border: none;
  border-top: 1px solid #dcdcdc;
  margin: 15px 0;
}

.modal-form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
}

.modal-form-instructions {
  font-size: 13px;
  color: #333333;
  margin-bottom: 15px;
}

.form-inputs-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-inputs-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #b0b0b0;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
}

.form-input:focus {
  border-color: #004990;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .form-input {
  padding-right: 38px;
}

.btn-clear-input {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #004990;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: none;
}

.input-success-icon {
  position: absolute;
  right: 14px;
  color: #00873e;
  font-weight: 800;
  font-size: 15px;
  display: none;
  pointer-events: none;
}

.form-group.is-valid .form-input {
  border-color: #b0b0b0;
}

.form-group.is-valid .input-success-icon {
  display: block;
}

.form-group.has-error .form-input {
  border-color: #cc0000 !important;
  color: #cc0000;
}

.form-group.has-error label {
  color: #cc0000 !important;
}

.form-group.has-error .btn-clear-input {
  color: #cc0000;
  display: block;
}

.form-group.has-error .input-success-icon {
  display: none !important;
}

.error-message-text {
  display: none;
  font-size: 12px;
  color: #cc0000;
  font-weight: 600;
  margin-top: 6px;
}

.form-group.has-error .error-message-text {
  display: block;
}

/* Loader Flotante */
.loader-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  z-index: 100;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.loader-overlay.active {
  display: flex;
}

.loader-popup {
  background-color: #ffffff;
  padding: 24px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.spinner-circle {
  width: 42px;
  height: 42px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #0056b3;
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}

.loader-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #222222;
}

@keyframes spinLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.btn-continue {
  background-color: #cccccc;
  color: #ffffff;
  border: none;
  padding: 10px 60px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#purchase-form:valid .btn-continue {
  background-color: #004990; 
}

.modal-footer-terms {
  text-align: left;
}

.modal-footer-terms a {
  font-size: 12px;
  color: #004990;
  text-decoration: none;
  font-weight: 700;
}

/* SECCIÓN PASARELA DE PAGO (PASO 2) */
.payment-gateway-container {
  display: none;
  margin-top: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.payment-gateway-container.active {
  display: flex;
}

.payment-card-box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  border: 1px solid #dcdcdc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-family: 'Montserrat', sans-serif;
}

.expanded-card-option {
  border: 1px solid #0076ce;
  border-radius: 10px;
  padding: 16px 18px;
  background-color: #ffffff;
}

.payment-radio-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radio-fake-circle {
  width: 18px;
  height: 18px;
  border: 2px solid #b0b0b0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-fake-circle.active {
  border-color: #0076ce;
  background-color: #0076ce;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.payment-option-text {
  font-size: 14px;
  color: #004990;
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.card-form-body {
  margin-top: 15px;
  padding-top: 10px;
}

.card-icons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.payment-label-mini {
  font-size: 12px;
  font-weight: 700;
  color: #333333;
}

.cards-logos {
  display: flex;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}

.badge-visa { color: #1a1f71; }
.badge-mc { color: #eb001b; }
.badge-amex { color: #006fccf7; }

.secure-text {
  font-size: 12px;
  color: #666666;
  margin-bottom: 18px;
}

.form-grid-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.pay-group {
  flex: calc(50% - 7.5px);
  display: flex;
  flex-direction: column;
}

.pay-group.grid-full {
  flex: 100%;
}

.pay-group label {
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 5px;
}

.pay-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #b0b0b0;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
}

.pay-input:focus {
  border-color: #004990;
}

/* Estilo exacto para número de tarjeta con icono y check */
.card-number-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.card-num-styled {
  padding-left: 38px !important;
  padding-right: 36px !important;
}

.card-brand-icon {
  position: absolute;
  left: 12px;
  font-size: 15px;
  pointer-events: none;
}

.card-valid-check {
  position: absolute;
  right: 14px;
  color: #00873e;
  font-weight: 800;
  font-size: 15px;
  display: none;
  pointer-events: none;
}

.card-number-input-wrapper.is-valid-card .card-valid-check {
  display: block;
}

.input-with-help {
  position: relative;
  display: flex;
  align-items: center;
}

.help-icon-circle {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  border: 1px solid #888;
  border-radius: 50%;
  font-size: 11px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.terms-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #333333;
}

.terms-checkbox-row input {
  margin-top: 2px;
}

.terms-blue-link {
  color: #0076ce;
  text-decoration: none;
  font-weight: 600;
}

.pay-submit-container {
  display: flex;
  justify-content: center;
}

.btn-pay-action {
  background-color: #cccccc;
  color: #ffffff;
  border: none;
  padding: 10px 80px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
}

#payment-form-card:valid .btn-pay-action {
  background-color: #004990;
}

/* CHATBOT FLOTANTE */
.chatbot-flotante {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
  cursor: pointer;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.2);
}

.chatbot-flotante img {
  display: block;
  max-width: 180px;
  height: auto;
  margin-top: -50px;
  margin-bottom: -5px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: none;
}

/* 7. Sección Acordeón */
.acordeon-section {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.acordeon-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef0f3;
  overflow: hidden;
}

.acordeon-header {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.acordeon-content {
  padding: 0 20px 16px 20px;
  font-size: 13px;
  color: #555555;
}

/* 8. Sección Informativa */
.info-promo-section {
  max-width: 1100px;
  margin: 50px auto 80px auto;
  padding: 0 20px;
}

.info-promo-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.promo-graphic-wrapper {
  flex: 1;
  min-width: 320px;
}

.promo-description {
  flex: 1.2;
}

.promo-description h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
}

.promo-description p {
  font-size: 13px;
  color: #444444;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* 9. FAQ */
.faq-section {
  max-width: 1100px;
  margin: 90px auto 40px auto;
  padding: 0 20px;
}

.faq-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background-color: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-header {
  padding: 22px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.faq-body {
  padding: 0 28px 24px 28px;
  font-size: 14px;
  color: #555555;
  border-top: 1px solid #f0f4f8;
  margin-top: 4px;
  padding-top: 18px;
}

/* 10. Glosario Banner */
.glossary-banner {
  max-width: 1000px;
  margin: 60px auto 80px auto;
  padding: 0 20px;
}

.glossary-box {
  border: 1px solid #d0dbe5;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  background-color: #ffffff;
}

.glossary-box h2 {
  color: #004990;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.glossary-box p {
  color: #333333;
  font-size: 15px;
}

.glossary-box a {
  color: #0076ce;
  font-weight: 700;
  text-decoration: none;
}

/* 11. Footer Principal */
.main-footer {
  background-color: #f0f4f9;
  padding-top: 40px;
}

.footer-top-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.col-brand {
  border-right: 1px solid #dcdcdc;
  padding-right: 25px;
  align-items: flex-start;
  gap: 12px;
}

.footer-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 8px;
}

.btn-segment {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #0076ce;
  color: #0076ce;
  text-align: center;
  width: 110px;
}

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

.col-links a {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.col-apps {
  border-left: 1px solid #dcdcdc;
  padding-left: 25px;
  align-items: center;
}

.apps-title {
  font-size: 15px;
  font-weight: bold;
  color: #222222;
  margin-bottom: 15px;
}

.store-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
}

.store-btn {
  background-color: #000000;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  text-decoration: none;
}

.social-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: bold;
  font-size: 15px;
}

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

.social-icons a {
  color: #004990;
  text-decoration: none;
}

.footer-bottom-bar {
  background-color: #00338d;
  color: #ffffff;
  padding: 18px 0;
  font-size: 13px;
}

.footer-bottom-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

/* ============================================
   MOBILE-FIRST RESPONSIVE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px;
  }
  .top-right {
    display: none;
  }

  .main-navbar-container {
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-right {
    display: none;
  }
  .logo-telcel {
    width: 80px;
  }

  .hero-banner-full {
    height: 180px;
    padding: 16px 24px;
    justify-content: center;
  }
  .hero-illustration {
    display: none;
  }
  .banner-text-content {
    align-items: center;
    text-align: center;
  }
  .main-offer-title {
    font-size: 26px;
    letter-spacing: 1px;
  }
  .big-yellow {
    font-size: 44px;
  }
  .middle-text {
    font-size: 18px;
  }
  .hero-brand-text {
    font-size: 20px;
  }

  .tabs-wrapper {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs-wrapper::-webkit-scrollbar {
    display: none;
  }
  .tab-item {
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: 12px;
  }
  .tab-item span {
    display: none;
  }

  .paquetes-container {
    flex-direction: column;
  }
  .card {
    width: 100%;
    max-width: 100%;
  }
  .row-info-grid {
    gap: 8px;
  }
  .value {
    font-size: 18px;
  }
  .value-dark {
    font-size: 16px;
  }
  .price {
    font-size: 22px;
  }

  .form-inputs-row {
    flex-direction: column;
    gap: 15px;
  }
  .form-grid-payment {
    flex-direction: column;
  }
  .pay-group {
    flex: 100%;
  }

  .footer-top-container {
    flex-direction: column;
    gap: 24px;
  }
  .col-brand, .col-apps {
    border: none;
    padding: 0;
    align-items: center;
  }
  .footer-bottom-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .store-badges {
    flex-wrap: wrap;
    justify-content: center;
  }

  .chatbot-flotante {
    display: none;
  }

  .breadcrumbs-container {
    font-size: 11px;
    padding: 0 16px;
  }

  .info-promo-container {
    flex-direction: column;
    gap: 24px;
  }
  .promo-graphic-wrapper {
    min-width: auto;
  }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .card {
    width: calc(50% - 8px);
  }
  .tabs-wrapper {
    flex-wrap: wrap;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .paquetes-section,
  .acordeon-section,
  .info-promo-section,
  .faq-section {
    max-width: 1200px;
  }
}

/* LOADER DE PASARELA DE PAGO */
.payment-loader-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.payment-loader-overlay.active {
  display: flex;
}

.payment-loader-popup {
  background-color: #ffffff;
  padding: 32px 48px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 140px;
}

.payment-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #0076ce;
  border-radius: 50%;
  animation: spinPaymentLoader 0.9s linear infinite;
}

.payment-loader-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #222222;
}

@keyframes spinPaymentLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* MENSAJE DE ERROR DE CONEXIÓN EN PASARELA DE PAGO */
.payment-error-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: #fff5f5;
  border: 1px solid #c53030;
  border-radius: 6px;
  padding: 16px 18px;
  margin-top: 20px;
}

.payment-error-icon {
  font-size: 22px;
  color: #c53030;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.payment-error-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #742a2a;
  line-height: 1.5;
}

/* VALIDACIONES VISUALES DEL FORMULARIO DE PAGO */

/* Wrapper para inputs con iconos */
.input-wrapper-payment {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper-payment .pay-input {
  padding-right: 64px;
}

/* Check verde */
.input-check {
  position: absolute;
  right: 36px;
  color: #00873e;
  font-weight: 800;
  font-size: 15px;
  display: none;
  pointer-events: none;
}

/* X para limpiar */
.input-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #004990;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  padding: 0;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
}

/* Mensaje de error */
.error-msg {
  display: none;
  font-size: 12px;
  color: #c53030;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.4;
}

/* Estado de error */
.pay-group.has-error label {
  color: #c53030 !important;
}

.pay-group.has-error .pay-input {
  border-color: #c53030 !important;
  color: #c53030;
}

.pay-group.has-error .input-clear {
  display: block;
  color: #c53030;
}

.pay-group.has-error .error-msg {
  display: block;
}

.pay-group.has-error .input-check {
  display: none !important;
}

/* Estado válido */
.pay-group.is-valid .pay-input {
  border-color: #00873e;
}

.pay-group.is-valid .input-check {
  display: block;
}

.pay-group.is-valid .input-clear {
  display: none;
}

.pay-group.is-valid .error-msg {
  display: none !important;
}

/* Ajustar card-number-input-wrapper para iconos */
.card-number-input-wrapper .input-check {
  right: 36px;
}

.card-number-input-wrapper .input-clear {
  right: 14px;
}

.card-number-input-wrapper.is-valid-card .card-valid-check {
  display: none;
}

.card-number-input-wrapper.is-valid-card .input-check {
  display: block;
}

/* ============================================
   CAMPO HONEYPOT ANTIBOTS
   ============================================ */

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.hp-field input {
  height: 0;
  width: 0;
  padding: 0;
  border: none;
  outline: none;
}

