/* ===================================================
   ARGENTINA RECARGAS
   =================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-light: #f8fafc;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1e1b4b;
  color: #ffffff;
  padding: 14px 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.flag-icon { font-size: 1.4rem; }

.brand-name strong {
  color: #a5b4fc;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.btn-inicio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #4f46e5;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-inicio:hover { background: #4338ca; }

/* HERO */
.hero-banner {
  background: #f9fafb;
  padding: 60px 20px 50px;
  border-bottom: 1px solid var(--border-color);
}

.hero-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-pretitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4f46e5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: #111827;
}

.hero-sub {
  color: #6b7280;
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 480px;
}

.btn-hero {
  display: inline-block;
  background: #4f46e5;
  color: #ffffff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 18px;
}

.btn-hero:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.hero-garantia {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #6b7280;
}

.hero-image-wrap { text-align: center; }

.hero-img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border: 3px solid #ffffff;
}

/* STRIP DE OPERADORES */
.ops-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
}

.ops-strip-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ops-strip span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ops-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.op-badge {
  background: #f3f4f6;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

/* SECCIÓN PASOS */
.how-it-works {
  margin-top: 28px;
  padding: 20px;
  background: #f9fafb;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.how-it-works h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
}

.steps-list li span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ==========================================
   SECCIÓN PRINCIPAL: BENEFICIOS + FORMULARIO
   ========================================== */
.main-wrapper {
  max-width: 1200px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: flex-start;
}

/* Columna Izquierda: Beneficios */
.benefits-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.feature-pills {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.pill-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #e0faff;
  border: 1px solid #b9f3fc;
  padding: 14px 20px;
  border-radius: 40px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill-item:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 16px rgba(2, 132, 199, 0.1);
}

.pill-icon {
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.pill-info {
  display: flex;
  flex-direction: column;
}

.pill-info strong {
  font-size: 1rem;
  color: #0369a1;
}

.pill-info span {
  font-size: 0.85rem;
  color: #0284c7;
}

.character-illustration {
  text-align: center;
  padding: 10px;
}

.mascot-img {
  max-width: 280px;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

/* Columna Derecha: Tarjeta de Formulario */
.card-form-container {
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid #ede9fe;
}

.form-header {
  margin-bottom: 24px;
}

.form-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #7c3aed;
  letter-spacing: -0.5px;
}

.form-header p {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 4px;
}

.operator-selector {
  margin-bottom: 24px;
}

.section-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
}

.operator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.op-chip {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.op-chip:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.op-chip.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Inputs y Grupos */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.15rem;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 54px !important;
}

/* Ocultar flechas molestas en inputs numéricos */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

input[type="tel"],
input[type="number"],
input[type="text"],
input[type="password"],
.form-group input,
select {
  width: 100%;
  padding: 13px 16px;
  font-size: 1.05rem;
  font-family: inherit;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  color: #0f172a;
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #7c3aed;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 5px;
}

/* Montos rápidos */
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.amt-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.amt-btn:hover {
  border-color: #a855f7;
  background: #faf5ff;
}

.amt-btn.active {
  background: #faf5ff;
  border-color: #7c3aed;
  color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.tag-bonus {
  font-size: 0.65rem;
  font-weight: 800;
  background: #ec4899;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 10px;
}

/* Código Promocional */
.promo-input-row {
  display: flex;
  gap: 10px;
}

.btn-secondary {
  background-color: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.promo-msg {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
  min-height: 20px;
}

.promo-msg.success {
  color: #059669;
}

.promo-msg.error {
  color: #dc2626;
}

/* Botón Principal */
.btn-recargar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 75, 43, 0.35);
  transition: all 0.25s ease;
  margin-top: 10px;
}

.btn-recargar:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 75, 43, 0.45);
  background: linear-gradient(135deg, #e63946 0%, #f72585 100%);
}

.btn-recargar:active {
  transform: translateY(0);
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: #64748b;
}

/* ==========================================
   SECCIÓN DE PROMOCIONES
   ========================================== */
.promociones-section {
  background: #f8fafc;
  padding: 70px 20px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

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

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

.sub-badge {
  display: inline-block;
  background: #fdf2f8;
  color: #db2777;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: -0.5px;
}

.section-header p {
  color: #64748b;
  font-size: 1.05rem;
  margin-top: 6px;
}

.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.promo-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid #ede9fe;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(124, 58, 237, 0.1);
  border-color: #c084fc;
}

.promo-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #ff4757;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

.claro-badge { background: #e74c3c; }
.movistar-badge { background: #00a8ff; }
.tuenti-badge { background: #9b59b6; }
.sube-badge { background: #0984e3; }

.promo-op {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 6px;
}

.promo-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

.promo-desc {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 16px;
  flex-grow: 1;
}

.promo-perks {
  list-style: none;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 20px;
}

.promo-perks li {
  margin-bottom: 6px;
  color: #059669;
  font-weight: 600;
}

.btn-promo-apply {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.btn-promo-apply:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

/* ==========================================
   SECCIÓN DE CONFIANZA
   ========================================== */
.trust-section {
  padding: 60px 20px;
  background: #ffffff;
}

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

.trust-box {
  background: #fafafa;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.trust-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 12px;
}

.trust-box p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  font-size: 0.9rem;
  color: #334155;
}

.check-list li {
  margin-bottom: 8px;
  font-weight: 600;
}

/* ==========================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================== */
.faq-section {
  padding: 60px 20px 80px 20px;
  background: #f8fafc;
}

.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.2s;
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #7c3aed;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-content {
  margin-top: 12px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================
   PIE DE PÁGINA
   ========================================== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 20px 30px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 380px;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 0.85rem;
}

/* ==========================================
   ASISTENTE FLOTANTE (BOT)
   ========================================== */
.floating-assistant {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
}

.assistant-bubble {
  background: #8b5cf6;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  position: relative;
  animation: floatBounce 3s ease-in-out infinite;
}

.assistant-bubble::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #8b5cf6;
}

.assistant-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.assistant-btn:hover {
  transform: scale(1.08);
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================
   VENTANA DEL CHATBOT INTERACTIVO
   ========================================== */
.chat-window {
  position: fixed;
  bottom: 95px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(124, 58, 237, 0.22), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #ede9fe;
}

.chat-window.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
}

.chat-header {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.chat-title h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.chat-status {
  font-size: 0.75rem;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #10b981;
}

.chat-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.chat-msg {
  max-width: 82%;
  padding: 11px 15px;
  font-size: 0.9rem;
  line-height: 1.45;
  border-radius: 16px;
  word-break: break-word;
}

.chat-msg.bot {
  align-self: flex-start;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.chat-msg.bot strong {
  color: #7c3aed;
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.quick-chip {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-chip:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  align-self: flex-start;
  width: fit-content;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #a855f7;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

.chat-input-bar {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input-bar input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.9rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 24px;
  background: #f8fafc;
}

.chat-input-bar input:focus {
  outline: none;
  border-color: #7c3aed;
  background: #ffffff;
}

.chat-send-btn {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 10px rgba(255, 75, 43, 0.3);
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

/* ==========================================
   RESPONSIVIDAD (Móviles y Tablets)
   ========================================== */
@media (max-width: 900px) {
  .hero-banner-inner,
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card-form-container {
    padding: 24px;
  }
}

/* ==========================================
   VISTAS DE CONFIRMACIÓN Y ERROR SEGURO
   ========================================== */
.bg-confirmation {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #f5f3ff 0%, #f8fafc 100%);
}

.confirm-container {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 20px;
  width: 100%;
}

.confirm-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid #ede9fe;
  text-align: center;
}

.success-icon-wrap,
.error-icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon-wrap {
  background: #ecfdf5;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.error-icon-wrap {
  background: #fef2f2;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2);
}

.confirm-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 10px;
}

.confirm-subtitle {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 24px;
}

.receipt-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.95rem;
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-row span:first-child {
  color: #64748b;
  font-weight: 600;
}

.receipt-row span:last-child {
  color: #0f172a;
  font-weight: 700;
}

.status-badge {
  background: #d1fae5;
  color: #065f46;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.error-box {
  background: #fff5f5;
  border-color: #fed7d7;
  color: #991b1b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.confirm-actions {
  max-width: 320px;
  margin: 0 auto;
}

.mt-auto {
  margin-top: auto;
}

.mt-4 {
  margin-top: 16px;
}

/* ==========================================
   PASARELA DE PAGO CON TARJETA (PAGO.HTML)
   ========================================== */
.payment-wrapper {
  max-width: 1100px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
  flex: 1;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: flex-start;
}

/* Resumen del Pedido */
.order-summary-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid #ede9fe;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.06);
  margin-bottom: 24px;
}

.summary-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #7c3aed;
  background: #f5f3ff;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 8px;
}

.order-summary-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 16px;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #64748b;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.summary-row strong {
  color: #0f172a;
}

.summary-row.total-row {
  border-bottom: none;
  padding-top: 6px;
  font-size: 1.1rem;
}

.text-free {
  color: #059669 !important;
  font-weight: 700;
}

.total-amount {
  color: #7c3aed !important;
  font-size: 1.45rem;
  font-weight: 800;
}

/* Tarjeta Virtual 3D Mockup */
.card-visual-preview {
  margin-bottom: 24px;
  perspective: 1000px;
}

.virtual-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #7c3aed 100%);
  border-radius: 18px;
  padding: 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 35px rgba(30, 27, 75, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.virtual-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.virtual-card:hover {
  transform: translateY(-4px) rotateX(4deg);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-chip-sim {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  position: relative;
}

.card-chip-sim::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
}

.card-brand {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.card-number-display {
  font-family: 'Share Tech Mono', monospace, courier;
  font-size: 1.35rem;
  letter-spacing: 2.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 14px 0;
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.card-holder-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.card-expiry-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Garantías */
.guarantee-box {
  background: #ffffff;
  border: 1px solid #ede9fe;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guarantee-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
}

.guarantee-item span {
  font-size: 1.2rem;
}

.guarantee-item strong {
  display: block;
  color: #1e1b4b;
}

.guarantee-item p {
  color: #64748b;
  margin: 2px 0 0 0;
  font-size: 0.82rem;
}

/* Fila de 2 columnas */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card-types-accepted {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #64748b;
}

.badge-card {
  background: #ede9fe;
  color: #6d28d9;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 850px) {
  .payment-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PÁGINA DE POLÍTICA DE PRIVACIDAD (PRIVACY.HTML)
   ========================================== */
.bg-privacy {
  background-color: #fcfbfe;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.privacy-container {
  max-width: 1200px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: flex-start;
}

/* Menú lateral sticky */
.privacy-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-sticky {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid #ede9fe;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.sidebar-sticky h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ede9fe;
}

.privacy-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1.35;
}

.privacy-nav a:hover {
  background-color: #f5f3ff;
  color: #7c3aed;
}

.privacy-nav a.active {
  background-color: #7c3aed;
  color: #ffffff;
}

/* Contenido Principal de Privacidad */
.privacy-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  border: 1px solid #ede9fe;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.policy-section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.privacy-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.effective-date {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 24px;
}

.privacy-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.privacy-content p {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 16px;
}

.privacy-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.privacy-content li {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 8px;
}

.callout-security {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  font-size: 0.93rem;
  color: #065f46;
  line-height: 1.6;
}

.contact-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 14px;
}

.contact-card p {
  margin-bottom: 8px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card a {
  color: #7c3aed;
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Responsividad de Privacidad */
@media (max-width: 900px) {
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .privacy-sidebar {
    position: static;
  }

  .privacy-content {
    padding: 24px 20px;
  }

  .privacy-content h1 {
    font-size: 1.7rem;
  }
}

/* Alertas amigables de validación en formulario de pago */
.form-error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shakeAlert 0.3s ease-in-out;
}

.input-error input {
  border-color: #ef4444 !important;
  background-color: #fff5f5 !important;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ==========================================
   SECCIÓN DE CONTACTO (CONTACTATE CON NOSOTROS)
   ========================================== */
.contact-section {
  padding: 80px 20px;
  background: #ffffff;
}

.contact-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-title {
  color: #0038ff;
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 35px;
}

.contact-form {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group-contact {
  width: 100%;
}

.contact-input {
  width: 100%;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 40px;
  padding: 15px 26px;
  font-size: 1rem;
  font-family: inherit;
  color: #1f2937;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.contact-input:focus {
  border-color: #0038ff;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 56, 255, 0.1);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #6b7280;
  font-weight: 500;
}

.contact-textarea {
  width: 100%;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 18px 26px;
  font-size: 1rem;
  font-family: inherit;
  color: #1f2937;
  outline: none;
  resize: vertical;
  min-height: 140px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.contact-textarea:focus {
  border-color: #0038ff;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 56, 255, 0.1);
}

.contact-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-contact-submit {
  background: linear-gradient(180deg, #ff9e00 0%, #ff6a00 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 60px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 106, 0, 0.5);
}

.btn-contact-submit:active {
  transform: translateY(0);
}

.contact-feedback-msg {
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-feedback-msg.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Barra de Datos de Contacto Oficial */
.contact-info-strip {
  margin-top: 50px;
  width: 100%;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-info-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.info-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.contact-info-item div strong {
  display: block;
  font-size: 0.85rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-info-item div a,
.contact-info-item div span {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.contact-info-item div a {
  color: #0038ff;
}

.contact-info-item div a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-title {
    font-size: 1.7rem;
  }
  .btn-contact-submit {
    width: 100%;
    padding: 14px 20px;
  }
  .captcha-box {
    flex-direction: column;
    align-items: stretch;
  }
  .captcha-img-wrapper {
    justify-content: space-between;
  }
}

/* ==========================================
   COMPONENTE DE CAPTCHA ANTI-BOT SEGURO
   ========================================== */
.captcha-group {
  margin-top: 14px;
  margin-bottom: 20px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-img-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 4px 6px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.captcha-img-wrapper img {
  display: block;
  border-radius: 6px;
  height: 48px;
  width: auto;
  user-select: none;
}

.btn-refresh-captcha {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-refresh-captcha:hover {
  background: #ede9fe;
  color: #7c3aed;
  border-color: #c4b5fd;
  transform: rotate(45deg);
}

.captcha-input-wrap {
  flex: 1;
  min-width: 150px;
}

.captcha-input-wrap input {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.captcha-help-text {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 6px;
}

