:root {
  --primary-color: #626ef5;
  --primary-dark: #4a55d4;
  --background-dark: #f5f5f0; /* Blanco hueso */
  --background-light: #ffffff;
  --background-container: #ffffff;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #666666;
  --border-color: #dddddd;
  --success-color: #10b981;
  --error-color: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
}

body {
  background-color: var(--background-dark);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--text-dark);
  padding: 1rem;
  position: relative;
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(98, 110, 245, 0.08);
  transform: scale(0);
  animation: ripple 6s infinite;
  pointer-events: none;
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(6); opacity: 0; }
}

.container {
  background-color: var(--background-container);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 52rem;
  position: relative;
  z-index: 1;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
}

.logo {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  background-color: rgba(98, 110, 245, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
}

.logo img {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary-color);
}

.title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.description {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 1rem;
}

.phone-input {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.country-select {
  position: relative;
  flex: 1 0 auto;
  min-width: 120px;
}

.country-select select,
.country-select option {
  font-family: 'Oswald', 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
  font-size: 0.95rem;
}

.country-select select {
  width: 100%;
  padding: 0.75rem 2rem 0.75rem 2.5rem;
  background-color: var(--background-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  appearance: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.phone-number {
  flex: 1;
  min-width: 200px;
}

.phone-number input {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--background-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.error {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.success {
  color: var(--success-color);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
  font-weight: bold;
}

.button {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 0.5rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.button:hover {
  background-color: var(--primary-dark);
}

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

.success-container {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.success-message {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.success-details {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.verify-container {
  display: none;
  text-align: center;
}

.verify-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.verify-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.verify-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.verify-button {
  margin-bottom: 1rem;
}

.lock-button {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
  margin: 1rem auto 0;
  font-size: 1.25rem;
}

.lock-button:hover {
  transform: scale(1.1);
  border-color: var(--primary-color);
}

.loading-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(245, 245, 240, 0.95);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-ripple {
  position: relative;
  width: 120px;
  height: 120px;
}

.loading-ripple div {
  position: absolute;
  border: 4px solid var(--primary-color);
  opacity: 1;
  border-radius: 50%;
  animation: loading-ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loading-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes loading-ripple {
  0% {
    top: 60px;
    left: 60px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 120px;
    height: 120px;
    opacity: 0;
  }
}

.loading-text {
  margin-top: 2rem;
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-dark);
}

.carrier-select, .data-plan-select {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--background-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Media Queries para Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .title {
    font-size: 1.6rem;
  }

  .phone-input {
    flex-direction: column;
    gap: 0.5rem;
  }

  .country-select, .phone-number {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }

  .container {
    padding: 1.25rem;
    border-radius: 0.75rem;
  }

  .title {
    font-size: 1.4rem;
  }

  .description {
    font-size: 0.95rem;
  }

  .button {
    padding: 0.75rem;
  }

  .success-icon {
    font-size: 3.5rem;
  }

  .success-message {
    font-size: 1.2rem;
  }

  .verify-title {
    font-size: 1.2rem;
  }
}

/* Agregar estos estilos al final del archivo */

.code-validation-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.code-input {
  flex: 1;
  padding: 0.75rem;
  background-color: var(--background-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.validate-button {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.validate-button:hover {
  background-color: var(--primary-dark);
}

.validate-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--text-muted);
}

.loading-dots {
  display: inline-block;
  width: 1em;
  text-align: left;
}

.loading-dots::after {
  content: '...';
  animation: loading-dots 1.5s infinite steps(4, end);
  display: inline-block;
  width: 0;
}

@keyframes loading-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

/* ... (estilos anteriores se mantienen) ... */

/* Nuevos estilos para el grupo de validación de código */
.code-validation-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.code-input {
  flex: 1;
  min-width: 0; /* Permite que el input se reduzca */
  padding: 0.75rem;
  background-color: var(--background-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.validate-button {
  flex: 0 0 auto;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

/* Estilos para las banderas */
.country-flag {
  width: 20px;
  height: 15px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

.country-select {
  position: relative;
}

.country-select select {
  padding-left: 35px !important; /* Espacio para la bandera */
}

.country-select::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 15px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}
/* ... (otros estilos se mantienen igual) ... */

.audio-player {
      background: #ffffff;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      max-width: 300px;
      width: 90%;
      text-align: center;
    }
    audio {
      width: 100%;
      outline: none;
    }