@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #81667b;
    --secondary-color: #8b3780;
    --accent-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f5f8fa;
    --dark-text: #17181a;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    --input-focus-shadow: 0 0 0 0.2rem rgba(129, 102, 123, 0.4);
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles mejorados */
.header-bar {
  background: linear-gradient(135deg, #a04381, #8f197f, #a30662);
  padding: 1.5rem 0;
  box-shadow: 0 8px 25px rgba(160, 67, 129, 0.4);
  position: relative;
  overflow: hidden;
}

.header-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.logo-box {
  padding: 1rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.marca {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 0;
  letter-spacing: 2px;
  position: relative;
}

.marca span {
  background: linear-gradient(45deg, #ffeb3b, #ffc107, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

.menu-box {
  background: linear-gradient(135deg, #8f197f, #a30662);
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 25px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.nav-btn::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;
}

.nav-btn:hover::before {
  left: 100%;
}

.nav-btn:hover,
.nav-btn.active {
  background: linear-gradient(145deg, rgba(255,235,59,0.2), rgba(255,193,7,0.1));
  border-color: rgba(255,235,59,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,235,59,0.3);
}

.nav-btn .icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.nav-btn span {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Estilos para las secciones de contenido */
.section-content {
  display: none;
  animation: fadeInSection 0.5s ease-in-out;
}

.section-content.active {
  display: block;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Estilos para la sección de servicios */
.services-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.services-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(129, 102, 123, 0.2);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--dark-text);
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Estilos para la sección de promos */
.promos-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.promos-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.promo-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.promo-card.featured {
  background: linear-gradient(135deg, #8f197f, #a04381);
  color: white;
  border-color: #ffeb3b;
  transform: scale(1.05);
}

.promo-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(129, 102, 123, 0.3);
}

.promo-card.featured:hover {
  transform: translateY(-10px) scale(1.08);
}

.promo-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(45deg, #ffeb3b, #ffc107);
  color: #8f197f;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4);
  animation: pulse 2s infinite;
}

.promo-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.promo-card.featured h3 {
  color: white;
}

.promo-benefit {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promo-card.featured .promo-benefit {
  color: #ffeb3b;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.promo-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.promo-features li {
  margin: 0.8rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-text);
}

.promo-card.featured .promo-features li {
  color: white;
}

.promo-timer {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--danger-color);
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: rgba(255, 235, 59, 0.2);
  border-radius: 15px;
  animation: titilar 1.5s infinite;
}

/* Promo section mejorada */
.promo {
  background: linear-gradient(135deg, #8f197f, #a30662, #8f197f);
  color: #ffffff;
  text-align: center;
  padding: 2rem 1.5rem;
  margin: 3rem auto;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(143, 25, 127, 0.4);
  border-radius: 25px;
  max-width: 900px;
  animation: promoGlow 3s infinite ease-in-out;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.promo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 4s infinite;
}

.promo:hover {
  box-shadow: 0 20px 45px rgba(143, 25, 127, 0.6);
  transform: translateY(-5px);
  animation: promoPulse 1.5s infinite;
}

.promo h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.promo p {
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

@keyframes promoGlow {
  0%, 100% { 
    box-shadow: 0 15px 35px rgba(143, 25, 127, 0.4);
  }
  50% { 
    box-shadow: 0 20px 45px rgba(143, 25, 127, 0.7);
  }
}

@keyframes promoPulse {
  0%, 100% { 
    transform: translateY(-5px) scale(1);
  }
  50% { 
    transform: translateY(-5px) scale(1.02);
  }
}

/* Animations */
@keyframes titilar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); }
    100% { transform: scale(1.02); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
}

/* Main content */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: box-shadow var(--transition-speed);
}

.container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
}

/* Companies grid mejorado */
.companias-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-bottom: 3rem;
    padding: 1rem;
}

.compania {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.compania::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.compania:hover::before,
.compania.selected::before {
    transform: scaleX(1);
}

.compania::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(129, 102, 123, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    border-radius: 50%;
}

.compania:hover::after {
    width: 200px;
    height: 200px;
}

.compania:hover,
.compania.selected {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(129, 102, 123, 0.25);
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(145deg, #ffffff, #fefefe);
}

.compania img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    position: relative;
    z-index: 2;
}

.compania:hover img,
.compania.selected img {
    transform: scale(1.15) rotate(2deg);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

.compania p {
    font-weight: 800;
    color: var(--dark-text);
    font-size: 1.2rem;
    margin: 0;
    transition: all var(--transition-speed);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compania:hover p,
.compania.selected p {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Efectos específicos por compañía */
.compania[data-compania="claro"]:hover {
    border-color: #e60000;
    box-shadow: 0 15px 40px rgba(230, 0, 0, 0.2);
}

.compania[data-compania="personal"]:hover {
    border-color: #00a0e6;
    box-shadow: 0 15px 40px rgba(0, 160, 230, 0.2);
}

.compania[data-compania="movistar"]:hover {
    border-color: #00a651;
    box-shadow: 0 15px 40px rgba(0, 166, 81, 0.2);
}

.compania[data-compania="tuenti"]:hover {
    border-color: #ff6600;
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.2);
}

/* Responsive para compañías */
@media (max-width: 768px) {
  .companias-grid {
    gap: 1.5rem;
    padding: 0.5rem;
  }
  
  .compania {
    width: 160px;
    padding: 1.5rem 1rem;
  }
  
  .compania img {
    width: 85px;
    height: 85px;
  }
  
  .compania p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .companias-grid {
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }
  
  .compania {
    width: 100%;
    padding: 1.2rem 0.8rem;
  }
  
  .compania img {
    width: 75px;
    height: 75px;
  }
  
  .compania p {
    font-size: 1rem;
  }
}

/* Form styles mejorados con tamaños apropiados */
.formulario-recarga {
    background: linear-gradient(145deg, #fefefe, #e6d9e6);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(129, 102, 123, 0.15);
    transition: box-shadow var(--transition-speed);
}

.formulario-recarga:hover {
    box-shadow: 0 15px 45px rgba(129, 102, 123, 0.3);
}

.form-step {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Grid para organizar campos por tamaño */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-col-full {
    flex: 1;
}

.form-col-half {
    flex: 0 0 48%;
}

.form-col-third {
    flex: 0 0 30%;
}

.form-col-small {
    flex: 0 0 120px;
}

.formulario-recarga h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.formulario-recarga label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1rem;
}

.formulario-recarga input[type="tel"],
.formulario-recarga input[type="text"],
.formulario-recarga input[type="email"],
.formulario-recarga select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--dark-text);
    transition: all var(--transition-speed);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

/* Campos específicos con tamaños apropiados */
#numero {
    max-width: 300px;
}

#titular {
    max-width: 400px;
}

#dni {
    max-width: 200px;
}

#tarjeta {
    max-width: 350px;
}

#vencimiento {
    max-width: 120px;
}

#cvv {
    max-width: 80px;
}

#email {
    max-width: 350px;
}

#monto {
    max-width: 200px;
}

.formulario-recarga input[type="tel"]:focus,
.formulario-recarga input[type="text"]:focus,
.formulario-recarga input[type="email"]:focus,
.formulario-recarga select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: var(--input-focus-shadow);
    transform: translateY(-2px);
}

.formulario-recarga input.is-invalid,
.formulario-recarga select.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.mensaje-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
    height: auto;
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--danger-color);
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    gap: 1rem;
}

.button-group button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all var(--transition-speed);
    flex: 1;
    position: relative;
    overflow: hidden;
}

.button-group button::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;
}

.button-group button:hover::before {
    left: 100%;
}

.button-group button[type="submit"],
.btn-next {
    background: linear-gradient(145deg, var(--primary-color), #6d4c66);
    color: var(--white);
    box-shadow: 0 6px 15px rgba(129, 102, 123, 0.3);
}

.button-group button[type="submit"]:hover,
.btn-next:hover {
    background: linear-gradient(145deg, #6d4c66, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(129, 102, 123, 0.4);
}

.btn-back {
    background: linear-gradient(145deg, var(--secondary-color), #7a2f75);
    color: var(--white);
    box-shadow: 0 6px 15px rgba(139, 55, 128, 0.3);
}

.btn-back:hover {
    background: linear-gradient(145deg, #7a2f75, var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 55, 128, 0.4);
}

/* Responsive para formularios */
@media (max-width: 768px) {
  .formulario-recarga {
    padding: 2rem 1.5rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-col-half,
  .form-col-third,
  .form-col-small {
    flex: 1;
  }
  
  #numero,
  #titular,
  #dni,
  #tarjeta,
  #vencimiento,
  #cvv,
  #email,
  #monto {
    max-width: 100%;
  }
  
  .button-group {
    margin-top: 2rem;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .formulario-recarga {
    padding: 1.5rem 1rem;
  }
  
  .button-group {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .formulario-recarga h2 {
    font-size: 1.5rem;
  }
}

/* Cards section mejorada */
.tarjetas {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(129, 102, 123, 0.1);
}

.tarjetas::before {
    content: "💳 Métodos de pago aceptados";
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    text-align: center;
}

.tarjetas img {
  height: 45px;
  width: auto;
  margin: 0 0.6rem 0.8rem 0.6rem;
  object-fit: contain;
  transition: all var(--transition-speed) ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  border-radius: 8px;
  background: white;
  padding: 0.3rem;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
}

.tarjetas img:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(129, 102, 123, 0.2);
  border-color: var(--primary-color);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.tarjetas img:active {
  transform: translateY(-1px) scale(1.05);
}

/* Responsive para tarjetas */
@media (max-width: 768px) {
  .tarjetas {
    padding: 1rem;
    margin-top: 2rem;
  }
  
  .tarjetas img {
    height: 40px;
    margin: 0 0.4rem 0.6rem 0.4rem;
  }
  
  .tarjetas::before {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .tarjetas {
    padding: 0.8rem;
  }
  
  .tarjetas img {
    height: 35px;
    margin: 0 0.3rem 0.5rem 0.3rem;
  }
  
  .tarjetas::before {
    font-size: 0.85rem;
  }
}

/* Estilos para errores de tarjetas */
.tarjetas img.card-error {
  opacity: 0.3;
  filter: grayscale(100%) brightness(0.5);
  border: 2px solid var(--danger-color);
  border-radius: 8px;
  animation: cardErrorPulse 1.5s infinite;
}

@keyframes cardErrorPulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  50% { 
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
}

/* Mensaje de error mejorado para pago */
.payment-error-container {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border: 1px solid var(--danger-color);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
  animation: errorSlideIn 0.5s ease-out;
}

.payment-error-title {
  color: var(--danger-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.payment-error-message {
  color: #721c24;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.payment-error-suggestion {
  color: #856404;
  font-size: 0.9rem;
  font-style: italic;
  background-color: rgba(255, 243, 205, 0.8);
  padding: 0.8rem;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

@keyframes errorSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botón de reintentar */
.btn-retry {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all var(--transition-speed);
}

.btn-retry:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Messages */
.mensaje.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mensaje.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.oculto {
    display: none;
}

/* Footer */
footer {
  width: 100%;
  background: linear-gradient(135deg, #5a3a5a, #81667b);
  color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  text-align: center;
  box-sizing: border-box;
  margin-top: 3rem;
}

footer p {
  margin: 0.2rem 0;
  opacity: 0.9;
}


/* ========== BLOQUE PROMOCIONAL MEJORADO ========== */
.bloque-publicitario-mejorado {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem 1.2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(129, 102, 123, 0.15);
  background: linear-gradient(145deg, #fefefe, #e6d9e6);
  transition: box-shadow var(--transition-speed);
}

.bloque-publicitario-mejorado:hover {
  box-shadow: 0 15px 45px rgba(129, 102, 123, 0.3);
}

.contenedor-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.imagen-container {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-adaptable {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed);
}

.img-adaptable:hover {
  transform: scale(1.03);
}

.texto-container {
  flex: 0 0 45%;
  text-align: center;
}

.texto-maquina {
  font-size: 1.8rem;
  font-weight: 700;
  color: #8f197f;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  border-right: 3px solid #8f197f;
  animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: #8f197f; }
}

.beneficios-lista {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 500px;
}

.beneficios-lista li {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #333;
}

.beneficios-lista li::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
}

.beneficios-lista li:nth-child(1)::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238f197f"><path d="M5 13l4 4L19 7"/></svg>');
}

.beneficios-lista li:nth-child(2)::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238f197f"><path d="M12 2L4 7v10l8 5 8-5V7z"/></svg>');
}

.beneficios-lista li:nth-child(3)::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238f197f"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
}

/* Responsive para navegación */
@media (max-width: 768px) {
  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  .nav-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    flex: 1;
    min-width: 100px;
  }
  
  .marca {
    font-size: 2.2rem;
  }
  
  .services-grid,
  .promos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-title,
  .promos-title {
    font-size: 2rem;
  }
  
  .contenedor-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .imagen-container, 
  .texto-container {
    flex: 0 0 100%;
  }
  
  .texto-maquina {
    font-size: 1.5rem;
  }
  
  .img-adaptable {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .nav-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-width: 90px;
  }
  
  .nav-links {
    gap: 0.5rem;
  }
  
  .marca {
    font-size: 1.8rem;
  }
  
  .service-card,
  .promo-card {
    padding: 2rem 1.5rem;
  }
  
  .texto-maquina {
    font-size: 1.3rem;
  }
  
  .beneficios-lista li {
    font-size: 1rem;
  }
}
