/* Base styling */
  body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a1128 0%, #1c2541 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* Evitar scroll horizontal */
  body {
    overflow-x: hidden;
  }

  /* Container for better alignment - optimized for desktop */
  .container {
    width: 100%;
    max-width: 1400px; /* Increased from 1200px for better use of widescreen displays */
    margin: 0 auto;
    padding: 0 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar todos los elementos hijos */
  }

  /* Centrar el apartado de inicio de sesión */
  #login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-sizing: border-box;
  }

  /* Enhanced header with subtle animation */
  header {
  background: linear-gradient(to right, #1c2541, #3a506b);
  padding: 18px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(79, 195, 247, 0.2);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  left: 0;
  right: 0;
}


  /* Shrink header slightly on scroll for better UX */
  header.scrolled {
    padding: 12px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  }

  header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #25d366, #4fc3f7);
  }

  .logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Cambiado a space-between para separar logo y botón */
    width: 100%; /* Asegurar que ocupe todo el ancho */
  }

  .logo {
    height: 70px; /* Increased from 50px to make the logo bigger */
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  }

  .logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3)) brightness(1.05);
  }

  /* Improved desktop layout with content spacing */
  .desktop-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
  }

  .main-column {
    flex: 1;
    min-width: 600px;
    max-width: 900px; /* Limitar ancho máximo para alinear con formulario */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centro los elementos hijos */
  }
  
  .side-column {
    width: 350px;
    flex-shrink: 0;
  }

  /* Typography improvements */
  h1, h2, h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
  }

  h1 {
    font-size: 2.4rem; /* Larger for desktop */
    margin-top: 40px;
    margin-bottom: 30px;
    color: #ffffff;
  }

  h2 {
    font-size: 1.8rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(37, 211, 102, 0.6), transparent);
  }

  h3 {
    font-size: 1.4rem;
    color: #25d366;
    margin-top: 10px;
  }

  /* Form enhancements optimized for desktop */
  form {
    max-width: 900px; /* Formulario más ancho */
    margin: 40px auto; /* Centrado con margen automático */
    padding: 50px; /* Mayor padding para más espacio interno */
    background: linear-gradient(145deg, #1c2541, #202f54);
    border-radius: 20px; /* Bordes más redondeados para consistencia */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4); /* Sombra más pronunciada */
    text-align: center; /* Centrado del contenido */
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* Incluir padding en el cálculo del ancho */
    width: 100%; /* Usar ancho completo hasta el máximo */
    left: 0; /* Asegurar que no haya desplazamiento horizontal */
    right: 0; /* Asegurar que no haya desplazamiento horizontal */
  }
  
  form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #25d366, #4fc3f7);
    border-radius: 4px 4px 0 0;
  }

  /* Mejoras en labels del formulario */
  form label {
    display: block;
    margin: 25px auto 12px auto; /* Centrado explícito con auto */
    font-weight: 600; /* Texto más bold */
    color: #ffffff;
    text-align: left;
    font-size: 1.1rem; /* Texto ligeramente más grande */
    letter-spacing: 0.3px;
    max-width: 700px; /* Ancho máximo para alineación */
    width: 100%; /* Ancho completo hasta el máximo */
    box-sizing: border-box; /* Incluir padding en el cálculo */
  }

  /* Inputs del formulario mejorados */
  form input[type="text"] {
    width: 100%;
    max-width: 700px; /* Ancho máximo consistente */
    padding: 18px 24px; /* Mayor padding para inputs más grandes */
    margin: 0 auto 30px auto; /* Centrado explícito y más espaciado */
    border: 2px solid rgba(255, 255, 255, 0.15); /* Borde más visible */
    border-radius: 12px; /* Bordes más redondeados */
    font-size: 16px;
    background-color: rgba(42, 47, 74, 0.8); /* Fondo más consistente con el login */
    color: #ffffff; /* Texto blanco */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block; /* Asegurar que sea bloque para centrado */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra interior */
    box-sizing: border-box; /* Incluir padding en el cálculo */
  }

  /* Placeholder para inputs del formulario */
  form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Placeholder más visible */
    font-weight: 400;
  }

  /* Hover para inputs del formulario */
  form input[type="text"]:hover:not(:focus) {
    border-color: rgba(37, 211, 102, 0.3);
    background-color: rgba(47, 52, 81, 0.9);
  }

  /* Focus para inputs del formulario */
  form input[type="text"]:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background-color: rgba(47, 52, 81, 0.9);
  }

  /* Contenedor de números mejorado */
  .numero-container {
    display: flex;
    align-items: center;
    margin: 0 auto 25px auto; /* Centrado explícito */
    width: 100%; /* Ancho completo */
    max-width: 700px; /* Ancho máximo consistente */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: transform 0.2s ease;
  }

  .numero-container:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
  }
  
  .numero-container:focus-within {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
  }
  
  /* Input número dentro del contenedor */
  .numero {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 16px;
    background-color: rgba(42, 47, 74, 0.8); /* Consistente con otros inputs */
    color: #ffffff; /* Texto blanco */
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
  }

  .numero::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
  }

  .numero:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background-color: rgba(47, 52, 81, 0.9);
  }

  /* Grid de números mejorado */
  .numbers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Mayor espaciado entre elementos */
    margin: 30px auto; /* Centrado explícito y más margen */
    width: 100%; /* Ancho completo */
    max-width: 700px; /* Ancho máximo consistente */
    box-sizing: border-box; /* Incluir padding en cálculo de ancho */
  }

  /* Grupo de botones mejorado */
  .button-group {
    display: flex;
    justify-content: center; /* Centrado */
    gap: 30px; /* Mayor espaciado entre botones */
    margin: 40px auto; /* Más margen y centrado explícito */
    max-width: 700px; /* Ancho máximo consistente */
    width: 100%; /* Ancho completo hasta el máximo */
  }

  .button-group button {
    flex: 1;
    max-width: 300px; /* Ancho máximo para cada botón */
    min-width: 200px; /* Ancho mínimo */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px; /* Mayor padding */
    font-size: 1rem; /* Texto más grande */
    border-radius: 12px; /* Bordes más redondeados */
    background: #25d366; /* Color verde para los botones */
    color: #ffffff; /* Texto blanco */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3); /* Sombra verde */
  }

  .button-group button:hover {
    background: #1da851; /* Verde más oscuro al hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  }

  .button-group button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.25);
  }

  /* Botón principal del formulario */
  form button[onclick="generarLink()"] {
    width: 100%;
    max-width: 400px; /* Mayor ancho máximo */
    padding: 20px 32px; /* Mayor padding */
    margin: 40px auto 20px auto; /* Más margen y centrado explícito */
    font-size: 1.2rem; /* Texto más grande */
    font-weight: bold;
    border-radius: 12px; /* Bordes más redondeados */
    display: block; /* Asegurar centrado */
    box-sizing: border-box; /* Incluir padding en el cálculo */
    background: #25d366; /* Color verde para el botón principal */
    color: #ffffff; /* Texto blanco */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3); /* Sombra verde */
  }

  /* Título del formulario */
  form h3 {
    font-size: 1.6rem; /* Título más grande */
    margin: 0 auto 30px auto; /* Centrado explícito y más espaciado debajo */
    color: #25d366;
    text-align: center;
    max-width: 700px; /* Consistente con otros elementos */
    width: 100%; /* Ancho completo hasta el máximo */
  }

  /* Output section optimized for desktop viewing */
  .output {
    max-width: 800px; /* Wider for desktop */
    margin: 30px auto;
    padding: 30px; /* More padding for desktop */
    background: linear-gradient(145deg, #1c2541, #202f54);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    color: #ffffff;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .output::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #25d366, #4fc3f7);
    border-radius: 3px 3px 0 0;
  }

  .output:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  }

  .output a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: rgba(79, 195, 247, 0.1);
    display: inline-block;
    margin-top: 10px;
    border: 1px solid rgba(79, 195, 247, 0.2);
  }

  .output a:hover {
    color: #b3e5fc;
    text-decoration: none;
    background-color: rgba(79, 195, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .output a:active {
    transform: translateY(0);
  }

  /* Phone number styling */
  .numero-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
  }

  .numero-container:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.08);
  }

  .bandera-container {
    margin-right: 15px;
    transition: transform 0.2s ease;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
  }

  .bandera-container:hover {
    transform: scale(1.1);
  }

  .bandera {
    width: 32px;
    height: 22px;
    border-radius: 3px;
    display: block;
  }

  .numero {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid rgba(58, 80, 107, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background-color: rgba(212, 248, 232, 0.9);
    color: #0a1128;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
  }

  .numero::placeholder {
    color: #6c757d;
    opacity: 0.7;
  }

  .numero:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
  }

  /* Login container styling - improved */
  #login-container {
    width: 100%;
    max-width: 450px;
    margin: 60px auto;
    padding: 50px 40px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #1a1f3a, #1c2541);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  #login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
  }
  
  #login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #25d366, #4fc3f7);
    border-radius: 4px 4px 0 0;
  }

  #login-container h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: bold;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
  }
  
  #login-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(37, 211, 102, 0.6), transparent);
  }

  /* Labels específicos para el login - improved */
  #login-container label {
    display: block;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
    text-align: left;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    padding: 0;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  
  #login-container label:focus-within {
    color: #25d366;
    transform: translateX(5px);
  }

  /* Inputs específicos para el login container - improved */
  #login-container input[type="email"],
  #login-container input[type="password"] {
    width: 100%;
    padding: 18px 20px;
    margin: 8px 0 25px 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    background-color: rgba(42, 47, 74, 0.8);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: block;
  }
  
  #login-container input[type="email"]:hover,
  #login-container input[type="password"]:hover {
    border-color: rgba(37, 211, 102, 0.3);
    background-color: rgba(47, 52, 81, 0.9);
  }
  
  #login-container input[type="email"]:focus,
  #login-container input[type="password"]:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background-color: rgba(47, 52, 81, 0.9);
  }
  
  #login-container input[type="email"]::placeholder,
  #login-container input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    transition: color 0.2s ease;
  }
  
  #login-container input[type="email"]:focus::placeholder,
  #login-container input[type="password"]:focus::placeholder {
    color: rgba(255, 255, 255, 0.2);
  }
  
  /* Botón específico para el login container - improved */
  #login-container button {
    width: 100%;
    padding: 18px 24px;
    margin: 30px 0 0 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(to right, #25d366, #1da851);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: block;
  }
  
  #login-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(to right, #1da851, #25d366);
  }
  
  #login-container button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  }
  
  #login-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg, 
      rgba(255, 255, 255, 0) 0%, 
      rgba(255, 255, 255, 0.2) 50%, 
      rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.7s ease;
  }
  
  #login-container button:hover::before {
    left: 100%;
  }

  /* Mensaje de error - improved */
  #login-error {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #ff6b6b;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0 0 0;
    font-weight: 500;
    display: none;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
  }

  /* Notification system - improved */
  .notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: linear-gradient(145deg, #1c2541, #202f54);
    border-left: 4px solid #25d366;
    color: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    font-weight: 500;
    font-size: 1rem;
  }
  
  .notification.error {
    border-left-color: #ff6b6b;
    background: linear-gradient(145deg, #2a1a28, #3a2838);
  }
  
  .notification.show {
    transform: translateX(0);
  }

  /* Footer styles */
  footer {
  margin-top: 60px;
  padding: 30px 0;
  text-align: center;
  background: linear-gradient(145deg, rgba(28, 37, 65, 0.9), rgba(32, 47, 84, 0.9));
  border-top: 1px solid rgba(79, 195, 247, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100% !important;   /* fuerza que ocupe todo el ancho */
  max-width: 100% !important;
  margin-left: 0;
  margin-right: 0;
  left: 0;
  right: 0;
  position: relative;
}

  footer .footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  footer .copyright {
    color: #25d366;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
  }
  
  footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
  }
  
  footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
  }
  
  footer a:hover {
    color: #4fc3f7;
    background-color: rgba(79, 195, 247, 0.1);
  }
  
  footer a:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -12px;
    color: rgba(255, 255, 255, 0.4);
  }
  
  @media (max-width: 768px) {
    @media (max-width: 768px) {
  .container {
    max-width: 100% !important;
    padding: 0 10px;
    overflow-x: hidden;
  }

  .main-column {
    min-width: unset !important;
    max-width: 100% !important;
  }

  #editar-link-container {
    transform: none !important;
    width: 95% !important;
    margin: 20px auto !important;
  }

  body {
    overflow-x: hidden; /* evita scroll horizontal */
  }
}

    #editar-link-container {
    transform: none !important;
    width: 95%;
    margin: 20px auto;
  }
  .main-column {
    min-width: unset;   /* sacar el mínimo de 600px */
    max-width: 100%;
    padding: 0 10px;
  }

  .side-column {
    width: 100%;  /* que ocupe todo el ancho en mobile */
    margin-top: 20px;
  }

  #editar-link-container {
    transform: none;   /* quitar el corrimiento lateral */
    width: 95%;
    margin: 20px auto;
  }

  form {
    padding: 20px;   /* menos padding en pantallas chicas */
  }

  .button-group {
    flex-direction: column;
    gap: 15px;
  }

  .user-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}


  /* Modal de planes - ajustado según imagen de referencia */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo más oscuro */
    z-index: 1000;
    overflow-y: auto; /* Habilitar barra de desplazamiento */
  }

  .modal-container {
    background: linear-gradient(145deg, #0f172a, #1e293b); /* Fondo más oscuro */
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    margin: 50px auto;
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
  }

  .modal-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffffff;
  }

  .modal-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
  }

  .plan-card {
    background: linear-gradient(145deg, #1c2541, #202f54); /* Fondo degradado */
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  }

  .plan-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #25d366;
    margin-bottom: 15px;
  }

  .plan-price {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
  }

  .plan-price .price-amount {
    font-size: 3.5rem; /* Tamaño más grande */
    font-weight: bold;
    color: #25d366;
    background: rgba(37, 211, 102, 0.2); /* Fondo verde claro */
    padding: 20px 30px; /* Más espacio alrededor */
    border-radius: 12px; /* Bordes redondeados */
    display: inline-block;
  }

  .plan-price .price-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    display: block;
  }

  .plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
  }

  .plan-features li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    display: flex;
    align-items: center;
  }

  .plan-features li::before {
    content: '✔';
    color: #25d366;
    margin-right: 10px;
    font-size: 1.2rem;
  }

  .plan-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }

  /* Botón de WhatsApp */
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Espacio entre el logo y el texto */
  padding: 14px 24px; /* Más espacio interno */
  background: linear-gradient(135deg, #25d366, #128C7E); /* Colores de WhatsApp */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 12px; /* Bordes redondeados */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4); /* Sombra verde */
}

.whatsapp-button:hover {
  background: linear-gradient(135deg, #1da851, #0d6f5a); /* Verde más oscuro al hover */
  transform: translateY(-3px); /* Efecto de elevación */
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5); /* Sombra más pronunciada */
}

.whatsapp-button:active {
  transform: translateY(1px); /* Efecto de clic */
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); /* Sombra reducida */
}

/* Botón de Mercado Pago */
.mercadopago-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Espacio entre el logo y el texto */
  padding: 14px 24px; /* Más espacio interno */
  background: linear-gradient(135deg, #009ee3, #007bbd); /* Colores de Mercado Pago */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 12px; /* Bordes redondeados */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 158, 227, 0.4); /* Sombra azul */
}

.mercadopago-button:hover {
  background: linear-gradient(135deg, #007bbd, #005f99); /* Azul más oscuro al hover */
  transform: translateY(-3px); /* Efecto de elevación */
  box-shadow: 0 8px 20px rgba(0, 158, 227, 0.5); /* Sombra más pronunciada */
}

.mercadopago-button:active {
  transform: translateY(1px); /* Efecto de clic */
  box-shadow: 0 4px 10px rgba(0, 158, 227, 0.3); /* Sombra reducida */
}

/* Estilo para el ícono dentro del botón */
.button-icon {
  width: 28px; /* Tamaño del logo */
  height: 28px;
  border-radius: 50%; /* Hacer el logo circular */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra para el logo */
}

/* User section with improved styling */
.user-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: linear-gradient(145deg, #1c2541, #202f54);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 900px;
    align-self: center;
    box-sizing: border-box;
  }
  
  .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
    font-weight: 600;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .user-details {
    display: flex;
    flex-direction: column;
  }
  
  .user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
  }
  
  .user-email {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
  }
  
  .logout-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .logout-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .logout-button .icon {
    font-size: 1.1rem;
  }

  /* Premium Plans button styling */
  .plans-button {
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .plans-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
      rgba(255, 255, 255, 0) 0%, 
      rgba(255, 255, 255, 0.2) 50%, 
      rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.7s ease;
    z-index: -1;
  }

  .plans-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #1da851 0%, #0d7164 100%);
  }

  .plans-button:hover:before {
    left: 100%;
  }

  .plans-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  }

  .plans-button span {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  }

  .premium-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff9800;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  /* Estilos específicos para la sección de edición de links */
  #editar-link-container {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateX(10%);
  }
  
  #editar-link-container h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #25d366;
    text-align: center;
    font-weight: 700;
  }
  
  #editar-numeros-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }
  
  .edit-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    position: relative;
    display: inline-block;
  }
  
  .edit-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(37, 211, 102, 0.6), transparent);
  }

  .message-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
    text-align: left;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    padding: 0;
  }
  
  .message-input {
    width: 100%;
    padding: 16px 20px;
    margin: 0 0 25px 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    background-color: rgba(42, 47, 74, 0.8);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: block;
    resize: none; /* Evitar cambio de tamaño */
  }
  
  .message-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
  }
  
  .message-input:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background-color: rgba(47, 52, 81, 0.9);
  }

  .buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
  }

  /* Estilos para los botones de la sección de edición */
  .btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .btn-primary {
    background: #25d366;
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
  }
  
  .btn-primary:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  }
  
  .btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.25);
  }
  
  .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
  }
  
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .btn-secondary:active {
    transform: translateY(1px);
  }

  /* Estilo para el textarea de "Editar Mensaje Automático" */
  #editar-mensaje {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 16px;
    background-color: rgba(42, 47, 74, 0.8); /* Consistente con los inputs de números */
    color: #ffffff; /* Texto blanco */
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    width: 100%; /* Asegurar que ocupe todo el ancho */
    box-sizing: border-box;
  }

  #editar-mensaje::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
  }

  #editar-mensaje:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background-color: rgba(47, 52, 81, 0.9);
  }

  button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }

  /* Estilo para el botón de "Actualizar Link" */
#editar-link-container button {
  width: 100%;
  max-width: 400px;
  padding: 16px 24px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 12px;
  background: #25d366; /* Color verde llamativo */
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3); /* Sombra verde */
}

#editar-link-container button:hover {
  background: #1da851; /* Verde más oscuro al hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

#editar-link-container button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.25);
}

#login-info {
  display: none; /* Asegúrate de que este estilo no se aplique después de iniciar sesión */
}

/* Estilo para centrar y destacar el número "3" */
.centered-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px; /* Tamaño del contenedor */
  height: 100px; /* Tamaño del contenedor */
  margin: 0 auto; /* Centrar horizontalmente */
  background: linear-gradient(145deg, #25d366, #1da851); /* Fondo degradado */
  color: #ffffff; /* Color del texto */
  font-size: 3rem; /* Tamaño del número */
  font-weight: bold; /* Negrita */
  border-radius: 50%; /* Forma circular */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.1); /* Sombra */
  text-align: center; /* Centrar el texto */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transiciones */
}

.centered-number:hover {
  transform: translateY(-5px); /* Efecto de elevación */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(255, 255, 255, 0.2); /* Sombra más pronunciada */
}

.centered-number:active {
  transform: translateY(2px); /* Efecto de clic */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.1); /* Sombra reducida */
}

/* Centrar el apartado de editar link */
#editar-link-container {
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  display: block;
  margin: 40px auto;         /* Centrado vertical y horizontal */
  max-width: 600px;          /* Ancho máximo */
  width: 90%;                /* Ancho relativo para responsividad */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform: translateX(32%);
}

/* Estilo para el contenedor del formulario */
#registro-container {
  width: 100%;
  max-width: 450px;
  margin: 60px auto;
  padding: 50px 40px;
  box-sizing: border-box;
  background: linear-gradient(145deg, #1a1f3a, #1c2541);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Estilo para los inputs */
#registro-container input[type="email"],
#registro-container input[type="password"] {
  width: 100%;
  padding: 18px 20px;
  margin: 8px 0 25px 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 16px;
  background-color: rgba(42, 47, 74, 0.8);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Placeholder para inputs */
#registro-container input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* Hover y focus para inputs */
#registro-container input:hover {
  border-color: rgba(37, 211, 102, 0.3);
  background-color: rgba(47, 52, 81, 0.9);
}

#registro-container input:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  background-color: rgba(47, 52, 81, 0.9);
}

/* Estilo para el botón */
#registro-container button {
  width: 100%;
  padding: 18px 24px;
  margin: 30px 0 0 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(to right, #25d366, #1da851);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Centrar el botón de 'Registrarse' */
#registro-form .btn {
  display: block;
  margin: 0 auto; /* Centrar horizontalmente */
  text-align: center;
}

#registro-container button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  background: linear-gradient(to right, #1da851, #25d366);
}

#registro-container button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.password-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-container input {
  width: 100%;
  padding-right: 35px; /* reserva espacio para el icono */
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  color: #666; /* opcional: para darle estilo */
}


/* Botón de Débito Automático */
.debito-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #4caf50, #2e7d32); /* Verde tipo tarjeta */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 12px; /* Bordes redondeados */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.debito-button:hover {
  background: linear-gradient(135deg, #388e3c, #1b5e20);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5);
}

.debito-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

/* Estilo para el botón de 'Volver al inicio' */
.volver-inicio-button {
  background-color: #ff5722; /* Color llamativo */
  color: #fff; /* Texto blanco */
  font-size: 16px; /* Tamaño de fuente más grande */
  padding: 10px 20px; /* Espaciado interno */
  border: none; /* Sin bordes */
  border-radius: 5px; /* Bordes redondeados */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
  cursor: pointer; /* Cambiar el cursor al pasar */
  transition: all 0.3s ease; /* Animación suave */
}

/* Hover para el botón de 'Volver al inicio' */
.volver-inicio-button:hover {
  background-color: #e64a19; /* Color más oscuro al pasar */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
}

/* Active para el botón de 'Volver al inicio' */
.volver-inicio-button:active {
  background-color: #d84315; /* Color aún más oscuro al hacer clic */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra más pequeña */
}
@media (max-width: 768px) {
  body {
    font-size: 14px; /* Reduce tamaño de texto global */
  }

  #login-container {
    max-width: 90%;   /* Reduce ancho del formulario */
    padding: 20px;
    margin: 20px auto;
  }

  form {
    padding: 15px;
    margin: 20px auto;
  }

  h1, h2, h3 {
    font-size: 1.5rem;
  }
}
#buttons-plnbuttons {
  display: none;
}

#estadisticas h3 { font-size: 1.1rem; }
#estadisticas canvas { display:block; width:100%; height:100%; }

.password-container {
  position: relative;
  width: 100%;
  margin-bottom: 25px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  user-select: none;
}

.toggle-password:hover {
  color: rgba(255, 255, 255, 0.9);
}