/* ============================================
   ESTILOS GLOBALES
  ============================================ */

* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  color: #0d0d0d;
}

/* ============================================
   APLICACIÓN PRINCIPAL (index.html)
  ============================================ */

#container {
  width: 95%;
  max-width: 640px;
  text-align: center;
  position: relative;
  padding: 20px 20px;
  border-radius: 20px;
  overflow: hidden;
}

#container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* ajusta el 0.6 si quieres más o menos oscuro */
  z-index: 0;
  border-radius: 20px;
}

#container > * {
  position: relative;
  z-index: 1;
}

#app {
  display: block;
  margin: auto;
  width: 95%;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(3px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  text-align: center;
}

#logout-section {
  margin: 1em auto;
  width: 80%;
}

#logout-btn {
  background: #ff5252;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  display: none;
}

#logout-btn:hover {
  background: #e04646;
}

#logo {
  width: 150px;
  height: auto;
  border-radius: 12px;
  transition: width 0.3s ease, opacity 0.3s ease;
}

#logo.mini {
  width: 60px;
  opacity: 0.8;
}

h1 {
  color: aliceblue;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 1.7rem;
}

input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  margin-bottom: 12px;
  text-align: center;
}

#login-btn {
  display: block;
  margin: 0 auto;
  width: 50%;
}

#codigo {
  margin-top: 1em;
  margin-bottom: 1em;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #ff9800;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #e68900;
}

#error-msg {
  color: #7a1f1f;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 130, 130, 0.35);
  background: linear-gradient(135deg, rgba(255, 214, 214, 0.92), rgba(255, 236, 236, 0.88));
  box-shadow: 0 8px 18px rgba(122, 31, 31, 0.16);
  backdrop-filter: blur(2px);
  text-align: center;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#error-msg.show {
  opacity: 1;
}

#songs {
  margin-top: 8px;
}

#title-song {
  font-weight: 600;
  margin-bottom: 8px;
}

.text-duration {
  font-weight: 300;
  font-size: 0.85em;
}

.song {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid #ff6b6b;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.song:hover {
  transform: scale(1.03);
}

.elapsed {
  font-weight: 400;
  font-size: 0.8em;
}

#terms-box {
  margin-top: 1.5em;
  margin-bottom: 2em;
  display: block;
  width: 100%;
}

#terms-box input {
  display: inline-block;
  margin-bottom: 5px;
  width: 16px;
}

#terms-box label {
  display: inline-block;
  font-size: 0.95rem;
  color: #fff;
}

#title-terms {
  color: #f4f4f4;
}

.text-terms {
  text-align: justify;
}

.genre-accordion {
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
}

.genre-accordion summary {
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.genre-accordion[open] {
  background: rgba(255, 255, 255, 0.2);
}

.songs-list {
  margin-top: 10px;
}

/* Botón de like */
.btn-like {
  background: none;
  border: none;
  color: #111111;
  /*
  color: #66d9ef;
  color: #ff4757;
  color: #00d2ff;
  */
  font-size: 14px;
  cursor: pointer;
  padding: 5px 8px;
  margin-left: 8px;
  transition: transform 0.2s ease;
  vertical-align: middle;
  border-radius: 6px;
}

.btn-like:hover {
  background: rgba(255, 71, 87, 0.1);
  transform: scale(1.1);
}

.btn-like:active {
  transform: scale(0.95);
}

.btn-like.liked {
  animation: likeAnimation 0.3s ease;
}

@keyframes likeAnimation {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

.like-count {
  font-weight: bold;
  margin-left: 3px;
  font-size: 0.9em;
}

/* ============================================
   ADMIN PANEL (admin.html)
   ============================================ */

#candado a {
  color: inherit;
  text-decoration: none;
}

#candado a:visited {
  color: inherit;
  text-decoration: none;
}

/* Contenedor principal del admin */
.container {
  width: 95%;
  max-width: 640px;
  margin: 0 auto;
}

/* Sección de formulario */
.form-section {
  width: 95%;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin: 0 auto;
}

/* Grupos de formulario */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Botones */
.btn-primary {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #ff9800;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
  margin: 10px 0;
}

.btn-primary:hover {
  background-color: #e68900;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: block;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #FF6467;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  max-width: 320px;
  cursor: pointer;
  margin: 10px auto;
  transition: background 0.3s ease, transform 0.1s ease;
}

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

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-danger {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #FF2E31;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
  margin: 10px 0;
}

.btn-danger:hover {
  background-color: #D10003;
}

.btn-danger:active {
  transform: scale(0.98);
}

.btn-success {
  background-color: #28a745 !important;
}

.btn-success:hover {
  background-color: #218838 !important;
}

/* Mensajes de estado */
.status {
  padding: 12px;
  border-radius: 8px;
  margin: 15px 0;
  font-weight: 500;
  display: none;
  animation: slideIn 0.3s ease;
}

.status-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Caja de código */
.codigo-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: slideIn 0.3s ease;
}

.codigo-label {
  color: #e0e0e0;
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.codigo {
  font-size: 48px;
  font-weight: bold;
  color: #4CAF50;
  font-family: "Courier New", monospace;
  letter-spacing: 3px;
  margin: 15px 0;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.fecha {
  color: #b0b0b0;
  font-size: 0.95rem;
  margin: 8px 0;
}

.expiracion {
  color: #ffc107;
  font-size: 0.95rem;
  margin: 8px 0;
  font-weight: 600;
}

/* Información de usuario */
.usuario-info {
  color: #4CAF50;
  font-size: 0.95rem;
  margin: 8px 0;
  font-weight: 600;
}

/* Sección de código premium */
.codigo-temporal-section {
  background: rgba(156, 39, 176, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.codigo-temporal-section h3 {
  margin: 0 0 15px 0;
}

/* Select personalizado */
.select-duracion {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 600;
  color: #333;
}

.select-duracion:focus {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 10px rgba(156, 39, 176, 0.3);
}

.select-duracion option {
  padding: 10px;
  font-weight: 600;
}

/* Información de sesión */
.session-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.session-info p {
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
}

.session-info strong {
  color: #fff;
}

/* Sección de logout */
.logout-section {
  margin-top: 8px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-section-top {
  margin-top: 0;
  margin-bottom: 14px;
  padding-top: 0;
  border-top: none;
}

/* Códigos premium recientes */
.recent-codes-section {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
}

.recent-codes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.recent-codes-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.btn-refresh-codes {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.recent-codes-summary {
  margin: 0 0 10px 0;
  color: #d9d9d9;
  font-size: 0.88rem;
}

.recent-codes-list {
  max-height: 280px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.recent-code-item {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px;
}

.recent-code-item-premium {
  position: relative;
  padding-right: 46px;
  padding-bottom: 36px;
}

.recent-code-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recent-code-value {
  color: #fff;
  font-size: 1.05rem;
  font-family: "Courier New", monospace;
  font-weight: bold;
  letter-spacing: 1px;
}

.recent-code-status {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.recent-code-status-bottom {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.btn-copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-copy-code svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.35);
}

.btn-copy-code:active {
  transform: scale(0.95);
}

.copy-feedback {
  position: absolute;
  top: -28px;
  right: 0;
  background: rgba(40, 167, 69, 0.95);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-copy-code.copied .copy-feedback {
  opacity: 1;
  transform: translateY(0);
}

.recent-code-active {
  color: #d5ffe2;
  background: rgba(40, 167, 69, 0.35);
}

.recent-code-expired {
  color: #ffd6d6;
  background: rgba(220, 53, 69, 0.35);
}

.recent-code-meta {
  margin-top: 6px;
  font-size: 0.84rem;
  color: #d7d7d7;
}

.recent-code-empty {
  margin: 4px 0;
  color: #d7d7d7;
  font-size: 0.9rem;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Imagen del ícono */
.whatsapp-icon {
  width: 100%;
  height: 100%;
  display: block; 
}

/* Botón pequeño de cerrar */
.close-wa {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  cursor: pointer;
  line-height: 16px;
  text-align: center;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Información de contacto */
.contact-info {
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  margin: 20px auto;
  max-width: 640px;
  opacity: 0.8;
}

.contact-info a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
}

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

/* ========================================
   ESTILOS PARA CÓDIGO DEL DÍA
   Agregar estos estilos a tu archivo style.css
  ======================================== */

.codigo-dia-box {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  padding: 0;
}

/* Código activo (lunes a jueves) */
.codigo-dia-activo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.codigo-dia-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.emoji-calendar {
  font-size: 28px;
}

.codigo-dia-titulo {
  font-size: 18px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.codigo-dia-codigo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 10px;
  margin: 10px 0;
  font-family: 'Courier New', monospace;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.codigo-dia-valor {
  letter-spacing: 8px;
}

.btn-copiar-codigo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-copiar-codigo:hover {
  background: rgba(255, 255, 255, 0.4);
}

.btn-copiar-codigo:active {
  transform: scale(0.92);
}

.btn-copiar-codigo svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-copiar-codigo .btn-copiar-feedback {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #4CAF50;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-copiar-codigo.copiado {
  background: #4CAF50;
}

.btn-copiar-codigo.copiado .btn-copiar-feedback {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.codigo-dia-fecha {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 8px 0;
  font-weight: 500;
}

.codigo-dia-nota {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-style: italic;
}

/* Código inactivo (fin de semana) */
.codigo-dia-inactivo {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.codigo-dia-inactivo .codigo-dia-titulo {
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.codigo-dia-mensaje {
  font-size: 18px;
  color: white;
  margin: 12px 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Error al cargar */
.codigo-dia-error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  border-radius: 15px;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.codigo-dia-error .codigo-dia-mensaje {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* Sección de parámetros */
.parametros-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grupo con toggle */
.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 15px;
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #fff;
  font-weight: 500;
}

.estado-texto {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4CAF50;
  transition: color 0.3s ease;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:focus + .slider {
  box-shadow: 0 0 1px #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Botón de configuración */
.btn-config {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-top: 15px;
}

.btn-config:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Tabs en admin */
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.admin-tab {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  padding: 10px 8px;
}

.admin-tab:hover {
  background: rgba(255, 255, 255, 0.14);
}

.admin-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(255, 255, 255, 0.35);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ============================================
   RESPONSIVE - Pantallas menores a 420px
============================================ */

@media (max-width: 420px) {

  h1 {
    font-size: 24px;
  }

  #container {
    padding: 0;
    width: 98%;
    /*min-height: 100vh;*/
  }

  #app {
    width: 99%;
  }

  #logout-section {
    width: 98%;
  }

  #songs {
    margin-left: -2px;
  }

  #terms-box {
    margin-bottom: 10px;
  }

  #terms-box input {
    display: block;
    margin: 0 auto 8px auto;
  }

  #terms-box label {
    display: block;
    margin-top: 4px;
    line-height: 1.45;
  }

  #login-btn {
    margin-top: 2em;
    width: 99%;
  }

  #btn-clipboard {
    width: 80%;
  }

  /* Admin Panel Responsive */
  .container {
    width: 98%;
  }

  .form-section {
    width: 99%;
    padding: 15px;
  }

  .codigo {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger {
    padding: 10px;
    font-size: 0.9rem;
  }

  .session-info {
    font-size: 0.85rem;
  }

  .codigo-box {
    padding: 15px;
  }

  /* Código Premium Responsive */
  .codigo-temporal-section {
    padding: 15px;
  }

  .codigo-temporal-section h3 {
    font-size: 1rem;
  }

  .select-duracion {
    font-size: 0.9rem;
    padding: 10px;
  }

  .recent-codes-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-refresh-codes {
    width: 100%;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 28px;
    bottom: 15px;
    right: 15px;
  }

}

@media (max-width: 480px) {
  .codigo-dia-box {
    max-width: 95%;
    margin: 15px auto;
  }
  
  .codigo-dia-codigo {
    font-size: 32px;
    padding: 12px 20px;
    gap: 8px;
  }

  .codigo-dia-valor {
    letter-spacing: 5px;
  }
  
  .codigo-dia-titulo {
    font-size: 16px;
  }
  
  .emoji-calendar {
    font-size: 24px;
  }

  .toggle-group {
    padding: 12px;
  }
  
  .switch {
    width: 50px;
    height: 28px;
  }
  
  .slider:before {
    height: 20px;
    width: 20px;
  }
  
  input:checked + .slider:before {
    transform: translateX(22px);
  }

}