:root {
  --primary-color: #6c63ff;
  --secondary-color: #4a00e0;
  --accent-color: #6c63ff;
  --tuenti-color: #ff0275;
  --claro-color: #e42229;
  --movistar-color: #009df4;
  --personal-color: #0fb3c6;
  --background: #f6f7ff;
  --card-bg: #ffffff;
  --text-color: #333;
  --text-light: #666;
  --border-radius: 16px;
  --shadow: 0 4px 20px rgba(31, 38, 135, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

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

html,
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  background-image: radial-gradient(
      at 80% 10%,
      rgba(108, 99, 255, 0.2) 0px,
      transparent 50%
    ),
    radial-gradient(at 20% 90%, rgba(74, 0, 224, 0.2) 0px, transparent 50%);
  background-attachment: fixed;
}

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

/* Estilos para el logo épico con texto animado */
.epic-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding: 20px 0;
  position: relative;
}

.logo-container {
  text-align: center;
  position: relative;
  z-index: 10;
}

.epic-logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
  transition: all 0.5s ease;
  animation: epicPulse 4s infinite ease-in-out;
}

.epic-logo:hover {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 12px 20px rgba(108, 99, 255, 0.4));
}

/* Animaciones para logo épico */
@keyframes epicPulse {
  0% {
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 15px 25px rgba(74, 0, 224, 0.4));
    transform: scale(1.05);
  }
  100% {
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
    transform: scale(1);
  }
}

/* Efecto de brillo alrededor del logo */
.logo-container::before,
.logo-container::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(108, 99, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
  animation: glow 6s infinite alternate;
}

.logo-container::after {
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(74, 0, 224, 0.4) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation-delay: 2s;
}

@keyframes glow {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Ajuste responsive para el logo épico */
@media (max-width: 767px) {
  .epic-logo {
    width: 120px;
  }

  .logo-container::before,
  .logo-container::after {
    width: 150px;
    height: 150px;
  }

  .logo-container::after {
    width: 180px;
    height: 180px;
  }
}

/* Texto del header animado */
.header-text {
  margin-top: 15px;
  text-align: center;
  animation: fadeUp 1.5s ease-out forwards;
  opacity: 0;
}

.animated-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s infinite alternate;
}

.animated-text .highlight {
  background: linear-gradient(45deg, #ff5f6d, #ffc371);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s infinite alternate-reverse;
}

.animated-text .tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
  margin-top: 5px;
}

/* Animaciones para el texto */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Ajuste responsive para el texto en móviles */
@media (max-width: 767px) {
  .animated-text h1 {
    font-size: 1.8rem;
  }

  .animated-text .tagline {
    font-size: 0.9rem;
  }
}
.promo-banner {
  background: linear-gradient(135deg, #ff6b6b, #ff0275);
  color: white;
  border-radius: var(--border-radius);
  padding: 15px 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  animation: pulse 2s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
  animation: shine 3s infinite linear;
}

.promo-icon {
  font-size: 24px;
  margin-right: 15px;
}

.promo-text {
  display: flex;
  flex-direction: column;
}

.promo-highlight {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

/* Sección de confianza */
.trust-section {
  background-color: #f9f9f9;
  padding: 40px 0;
  margin-top: 60px;
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
}

.trust-item {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  text-align: center;
}

.trust-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.trust-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.trust-item p {
  font-size: 0.9rem;
  color: #555;
}

/* Footer */
.site-footer {
  background-color: #131313;
  color: #fff;
  padding: 40px 0 20px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 20px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
  padding-right: 20px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-column p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ccc;
}

.contact-info {
  margin-top: 15px;
}

.contact-info i {
  margin-right: 8px;
  color: var(--accent-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.payment-methods {
  font-size: 2rem;
  margin-bottom: 15px;
}

.payment-methods i {
  margin-right: 10px;
  color: #ddd;
}

.security-seals img {
  height: 40px;
  margin-right: 10px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 20px;
  border-top: 1px solid #333;
  text-align: center;
}

.legal-text,
.disclaimer {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 10px;
}

.disclaimer {
  font-style: italic;
}

.copyright {
  font-size: 0.8rem;
  color: #777;
  margin-top: 15px;
}
/* Botón flotante de WhatsApp - Tooltip mejorado */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none; /* Elimina el subrayado */
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-tooltip {
  position: absolute;
  top: -45px;
  right: 10; /* Alinea a la derecha en lugar de centrar */
  transform: translateX(-25%); /* Mueve el tooltip ligeramente a la izquierda */
  background-color: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  white-space: nowrap;
  width: auto;
  z-index: 101;
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 25px; /* Alinea la flecha con el botón */
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Versión móvil del botón de WhatsApp */
@media (max-width: 767px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }

  .whatsapp-tooltip {
    right: -40px; /* Ajuste adicional para móviles */
  }
}
/* Responsive */
@media (max-width: 768px) {
  .trust-container {
    flex-direction: column;
  }

  .footer-column {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  20% {
    opacity: 0;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

h1 {
  font-size: 32px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.tagline {
  font-size: 16px;
  color: var(--text-light);
  margin-top: -5px;
}

h2 {
  font-size: 24px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

/* Sections */
section {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  border: var(--glass-border);
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.active-section {
  display: block;
  animation: fadeIn 0.5s ease;
}

.hidden-section {
  display: none;
}

/* Company selection */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.company {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.company:hover {
  transform: translateY(-5px);
}

.company[data-company="tuenti"]:hover {
  border-color: var(--tuenti-color);
}

.company[data-company="claro"]:hover {
  border-color: var(--claro-color);
}

.company[data-company="movistar"]:hover {
  border-color: var(--movistar-color);
}

.company[data-company="personal"]:hover {
  border-color: var(--personal-color);
}

.company img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.company:hover img {
  transform: scale(1.1);
}

.company p {
  font-weight: 600;
  margin: 0;
}

/* Amount selection */
.back-button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-button:hover {
  transform: translateX(-5px);
}

.back-button i {
  margin-right: 8px;
}

.company-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.company-selected img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-right: 20px;
  padding: 5px;
}

.company-selected p {
  font-weight: 600;
  font-size: 20px;
  color: var(--text-color);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.amount-option {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 18px;
  border: 2px solid transparent;
}

.amount-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.amount-option.selected {
  background: var(--gradient);
  color: white;
  transform: translateY(-3px);
}

.custom-amount {
  background-color: rgba(108, 99, 255, 0.1);
  border: 2px dashed var(--primary-color);
}

.custom-amount-input {
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.custom-amount-input.hidden {
  height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
}

.custom-amount-input label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

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

.input-group span {
  position: absolute;
  left: 15px;
  font-weight: 600;
}

input[type="number"] {
  width: 100%;
  padding: 15px 15px 15px 30px;
  border-radius: var(--border-radius);
  border: 2px solid #ddd;
  font-size: 18px;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
}

.phone-input {
  margin-bottom: 25px;
}

.phone-input label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

input[type="tel"] {
  width: 100%;
  padding: 15px;
  border-radius: var(--border-radius);
  border: 2px solid #ddd;
  font-size: 18px;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

input[type="tel"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
}

.payment-button {
  width: 100%;
  padding: 15px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.payment-button:enabled:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(31, 38, 135, 0.25);
}

.payment-button:enabled:active {
  transform: translateY(-1px);
}

.payment-button i {
  margin-left: 10px;
}

.payment-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para la barra de progreso móvil y overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  font-size: 36px;
  color: var(--primary-color);
}

.mobile-progress-bar {
  display: none;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .container {
    max-width: 480px;
  }
}

/* Optimizaciones específicas para móviles - página index */
@media (max-width: 767px) {
  /* Ajustes generales */
  body {
    font-size: 16px;
  }

  .container {
    padding: 15px;
    max-width: 100%;
  }

  /* Encabezado más compacto */
  header h1 {
    font-size: 24px;
    margin-bottom: 5px;
  }

  .tagline {
    font-size: 14px;
    margin-bottom: 15px;
  }

  /* Banner promocional más visible */
  .promo-banner {
    padding: 12px 15px;
    margin-bottom: 20px;
  }

  .promo-highlight {
    font-size: 16px;
  }

  /* Grid de compañías - 2 columnas en lugar de 4 */
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .company {
    padding: 15px 10px;
    height: auto;
  }

  .company img {
    max-width: 60px;
    height: 60px;
  }

  /* Grid de montos - 2 columnas en lugar de 4 */
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .amount-option {
    height: 60px;
    font-size: 18px;
  }

  /* Input de teléfono más grande */
  .phone-input input {
    height: 52px;
    font-size: 16px; /* Previene zoom en iOS */
    border-radius: 8px;
  }

  /* Botón más grande y accesible */
  .payment-button {
    height: 56px;
    font-size: 17px;
    border-radius: 8px;
    margin-top: 25px;
  }

  /* Mejoras en feedback visual */
  .company.selected,
  .amount-option.selected {
    transform: scale(0.98);
  }

  /* Animación para selección de opciones */
  @keyframes selectPulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(0.97);
    }
    100% {
      transform: scale(1);
    }
  }

  .company:active,
  .amount-option:active {
    animation: selectPulse 0.3s ease;
  }

  /* Input personalizado más accesible */
  .custom-amount-input {
    margin-top: 15px;
  }

  .input-group {
    height: 52px;
  }

  .input-group input {
    font-size: 16px;
  }

  /* Barra de progreso en móviles */
  .mobile-progress-bar {
    display: flex;
    justify-content: space-between;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .progress-step {
    font-size: 12px;
    color: #888;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
  }

  .progress-step.active {
    color: var(--primary-color);
    font-weight: 600;
  }

  .progress-step::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-bottom: 5px;
  }

  .progress-step.active::before {
    background-color: var(--primary-color);
  }

  .progress-step::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 50%;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
  }

  .progress-step:first-child::after {
    display: none;
  }

  .progress-step.active::after {
    background-color: var(--primary-color);
  }

  /* Animación para botón habilitado */
  @keyframes readyPulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.03);
    }
    100% {
      transform: scale(1);
    }
  }

  .payment-button.ready {
    animation: readyPulse 0.6s ease;
  }
}

/* Estados táctiles para elementos interactivos */
.company.touch-active,
.amount-option.touch-active {
  background-color: rgba(108, 99, 255, 0.2);
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 350px) {
  .companies-grid,
  .amount-grid {
    gap: 8px;
  }
  .company img {
    max-width: 50px;
    height: 50px;
  }
}
