/* ================================
   VARIABLES GLOBALES
================================ */
:root {
  --color-verde: #4caf50;
  --color-verde-hover: #388e3c;
  --color-rojo: #dc3545;
  --color-rojo-hover: #c82333;
  --color-azul: #007bff;
  --color-azul-hover: #0056b3;
  --color-gris: #6c757d;
  --color-gris-hover: #5a6268;

  --color-principal: #000000;
  --bg-tema-claro: #666666;

  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --text-dark: #333333;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ================================
   BASE
================================ */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-tema-claro);
  margin: 0;
  padding: 0;
  color: var(--text-dark);
}

.container {
  max-width: 450px;
  margin: 100px auto;
  padding: 30px;
  background-color: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

input,
select,
textarea {
  margin: 10px 0;
  padding: 10px;
  width: 100%;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  box-sizing: border-box;
}

button {
  padding: 6px 12px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: var(--color-principal);
  color: white;
  transition: var(--transition);
  width: auto;
  margin: 5px;
}

button:hover {
  opacity: 0.9;
}

/* ================================
   BOTONES
================================ */
.btn-verde,
form button[type="submit"] {
  background-color: var(--color-principal);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-verde:hover,
form button[type="submit"]:hover {
  background-color: color-mix(in srgb, var(--color-principal) 85%, black 15%);
}

button.btn-rojo {
  background-color: var(--color-rojo);
  color: white;
}
button.btn-rojo:hover {
  background-color: var(--color-rojo-hover);
}

button.btn-gris {
  background-color: var(--color-gris);
}
button.btn-gris:hover {
  background-color: var(--color-gris-hover);
}

button.btn-azul,
.btn-azul {
  background-color: var(--color-azul);
  color: white;
}
button.btn-azul:hover,
.btn-azul:hover {
  background-color: var(--color-azul-hover);
}

.btn-grande {
  font-size: 17px;
  padding: 14px 20px;
  font-weight: bold;
}

.btn-pequeno {
  padding: 5px 10px;
  font-size: 13px;
}

.btn-mini {
  padding: 4px 6px;
  font-size: 15px;
  border-radius: 4px;
  margin: 1px 2px;
  line-height: 1;
  width: auto !important;
  display: inline-block;
}

.btn-mini.btn-gris {
  background-color: #ccc;
  color: #333;
}

.btn-mini.btn-rojo {
  background-color: #e74c3c;
  color: white;
}

.btn-marcar {
  background-color: #4caf50 !important;
  color: white;
}
.btn-marcar:hover {
  background-color: #388e3c !important;
}

.btn-circular {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 18px;
  text-align: center;
  line-height: 1;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* ================================
   FORMULARIOS
================================ */
form {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form div {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

form label {
  flex: 1;
  min-width: 120px;
  font-weight: bold;
}

form input,
form select,
form textarea {
  flex: 2;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

form input[readonly] {
  background-color: #f9f9f9;
}

form button,
.container button {
  width: 100%;
}

form button.btn-gris {
  margin-top: 10px;
  background-color: #6c757d;
}
form button.btn-gris:hover {
  background-color: #5a6268;
}

/* ================================
   LAYOUTS Y MENÚS
================================ */
.tab-menu {
  display: flex;
  justify-content: space-around;
  background-color: var(--color-principal);
  padding: 10px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.tab-menu button {
  flex: 1;
  margin: 0 5px;
  font-weight: bold;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

.tab-content {
  padding: 20px;
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 30px;
}

.menu-dropdown {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.menu-dropdown > button {
  padding: 6px 10px;
  font-size: 18px;
  background-color: white;
  color: var(--text-dark);
  border: 1px solid #ccc;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.menu-dropdown > button:hover,
.tab-menu button:hover,
.config-dropdown button:hover,
.menu-dropdown button:hover {
  background-color: #ddd;
  color: #000;
  cursor: pointer;
}

.menu-content {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 5px;
  background-color: white;
  min-width: 180px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.menu-content button {
  width: 100%;
  padding: 10px 15px;
  font-size: 15px;
  background: white;
  color: var(--text-dark);
  text-align: left;
  border: none;
  cursor: pointer;
}

.menu-content button:hover {
  background-color: #f0f0f0;
}

/* ================================
   TABLAS
================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
}

th {
  background-color: #f1f1f1;
  font-weight: bold;
}

td:last-child {
  white-space: nowrap;
  width: 1%;
}

table th,
table td {
  padding: 2px 6px;
}

table tbody tr:hover {
  background-color: color-mix(in srgb, var(--color-principal) 15%, transparent);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* ================================
   RELOJ / FECHA
================================ */
#reloj {
  text-align: center;
  font-size: 60px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  margin-top: 1px;
}

#fecha {
  text-align: center;
  font-size: 18px;
  color: gray;
  margin-bottom: 20px;
}

/* ================================
   UTILIDADES
================================ */
.desactivado {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

.pdf-reducido {
  font-size: 13px !important;
}

#login {
  margin-top: 30px !important;
}

/* ================================
   FORMULARIO PIN
================================ */
.formulario-pin {
  max-width: 400px;
  margin: 30px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

.formulario-pin h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--text-dark);
}

.campo-pin {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.campo-pin label {
  font-weight: bold;
  margin-bottom: 5px;
}

.campo-pin input {
  padding: 10px;
  font-size: 16px;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}

/* ================================
   GRÁFICOS
================================ */
.graficos-flex {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
  gap: 20px;
  margin: 20px 0;
  overflow-x: auto;
  padding: 10px 0;
}

.graficos-flex canvas {
  flex: 0 0 280px;
  height: 280px !important;
  max-width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 10px;
  transition: transform 0.2s ease;
}

.graficos-flex canvas:hover {
  transform: scale(1.02);
}

/* ================================
   FILTROS
================================ */
.filtros-flex {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.filtros-flex label {
  flex: 1 1 180px;
  min-width: 160px;
}

/* ================================
   MODALES GENERALES
================================ */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-contenido {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: left;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.modal-cerrar {
  float: right;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

/* ================================
   MODAL DJ
================================ */
.dj-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  padding: 18px;
}

.dj-modal.is-open {
  display: flex;
}

.dj-modal-box {
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  color: var(--text-dark);
  text-align: center;
}

.dj-modal-box h4 {
  margin: 0 0 8px;
}

.dj-modal-box p {
  margin: 0 0 14px;
  opacity: 0.92;
  line-height: 1.35;
}

/* ================================
   MODAL GLOBAL SISTEMA
================================ */
.modal-global {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.modal-global.show {
  display: flex;
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 420px;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-box h3 {
  margin-top: 0;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ================================
   CELDAS / DÍAS
================================ */
.celda-entrada {
  background-color: #d4edda;
  color: #155724;
  font-weight: bold;
}

.celda-salida {
  background-color: #f8d7da;
  color: #721c24;
  font-weight: bold;
}

.dia-lunes { background-color: #e3f2fd; color: #0d47a1; font-weight: bold; }
.dia-martes { background-color: #f1f8e9; color: #33691e; font-weight: bold; }
.dia-miércoles { background-color: #fff3e0; color: #e65100; font-weight: bold; }
.dia-jueves { background-color: #fce4ec; color: #880e4f; font-weight: bold; }
.dia-viernes { background-color: #e8f5e9; color: #1b5e20; font-weight: bold; }
.dia-sábado { background-color: #ede7f6; color: #4527a0; font-weight: bold; }
.dia-domingo { background-color: #ffebee; color: #b71c1c; font-weight: bold; }

/* ================================
   CONFIG MENU
================================ */
.config-dropdown {
  position: relative;
  display: inline-block;
}

.config-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 5px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 15px;
  width: 500px;
  max-width: 95vw;
  z-index: 1000;
}

.config-menu.active {
  display: block;
}

.config-menu button {
  color: black;
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  text-align: left;
}

.config-menu button:hover {
  background-color: #f0f0f0;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}

.config-grid .campo {
  display: flex;
  flex-direction: column;
}

.config-grid label {
  font-weight: bold;
  margin-bottom: 5px;
}

/* ================================
   HORARIOS
================================ */
#tablaHorario {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#tablaHorario th,
#tablaHorario td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
}

#tablaHorario th {
  background-color: #f8f8f8;
  font-weight: bold;
  text-align: center;
}

#tablaHorario td:first-child {
  width: 110px;
  font-weight: bold;
  color: #2c3e50;
  white-space: nowrap;
  text-align: center;
}

#tablaHorario select,
#tablaHorario input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 5px;
}

#selectorEmpleado {
  padding: 8px;
  margin-bottom: 15px;
  font-size: 15px;
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#horarioContainer {
  max-width: 1000px;
  margin: auto;
}

#horarioContainer h2 {
  text-align: center;
  margin-bottom: 20px;
}

#horarioContainer button.btn-verde {
  font-size: 16px;
  padding: 10px 16px;
}

/* ================================
   AVISOS
================================ */
#avisoMarcador {
  background-color: #fff8b0;
  border: 1px solid #e0c000;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 10px auto;
}

.fila-aviso {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.etiqueta-aviso {
  font-weight: bold;
  font-size: 1rem;
  white-space: nowrap;
}

.aviso-movimiento {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
}

.aviso-movimiento span {
  display: inline-block;
  padding-left: 100%;
  animation: moverAviso 10s linear infinite;
  font-size: 1rem;
}

@keyframes moverAviso {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ================================
   DESCRIPCIÓN
================================ */
.descripcion-contenedor {
  width: 100%;
  max-width: 700px;
  padding: 20px 25px;
  background-color: #f0f4ff;
  border-left: 6px solid #2979ff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", sans-serif;
  color: #333;
  margin-bottom: 20px;
}

.descripcion-contenedor strong {
  font-size: 18px;
  color: #1a237e;
  display: block;
  margin-bottom: 10px;
}

.descripcion-contenedor span {
  font-size: 15px;
}

/* ================================
   LOGIN DJ
================================ */
#loginDJ {
  width: 95%;
  max-width: 400px;
  background: white;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

#loginDJ h2 {
  margin-bottom: 20px;
}

#loginDJ label {
  display: block;
  text-align: left;
  margin: 8px 0 4px;
  font-weight: bold;
}

#loginDJ input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 15px;
}

#loginDJ button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
}

#loginDJ.container {
  width: 95%;
  max-width: 420px;
  margin: 20px auto;
  padding: 25px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

/* ================================
   PANEL DJ
================================ */
#djPanelContainer {
  max-width: 1000px;
  width: 95%;
  margin: 40px auto;
  padding: 30px;
  text-align: left;
}

.dj-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.config-dropdown > button {
  background: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

#nombreDJ {
  margin-top: 15px;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-principal);
}

/* ================================
   BADGES / POWER
================================ */
.badge-sugerencias {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  border: 2px solid #fff;
}

.btn-config {
  position: relative;
}

.dot-power {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  display: none;
}

.dot-power.on {
  background: #22c55e;
  display: block;
}

.dot-power.off {
  background: #ef4444;
  display: block;
}

/* ================================
   LOGOS
================================ */
.logo-dj {
  width: 220px;
  max-width: 80%;
  height: auto;
  object-fit: contain;
  display: inline-block;
}

/* ================================
   CAMPOS EN FILA
================================ */
.fila-flex {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.fila-flex .campo {
  flex: 1;
}

.fila-flex label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#tipo {
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-weight: bold;
  pointer-events: none;
  color: #000;
  text-shadow: none;
}

/* ================================
   PLANILLA
================================ */
#tablaPlanilla td,
#tablaPlanilla th {
  padding: 4px 6px;
  font-size: 13px;
  line-height: 1.2;
}

#tablaPlanilla input,
#tablaPlanilla select {
  padding: 2px 4px;
  font-size: 13px;
  height: 28px;
}

.incentivoPlanilla,
.adelantoPlanilla {
  width: 80px;
  text-align: right;
}

.librePlanilla {
  width: 180px;
  font-size: 13px;
  padding: 2px 4px;
  text-align: center;
}

.entradaPlanilla,
.salidaPlanilla {
  width: 85px;
  font-size: 13px;
  padding: 2px 4px;
  text-align: center;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1000px) and (min-width: 600px) {
  .graficos-flex {
    flex-direction: column;
    align-items: center;
  }

  .graficos-flex canvas {
    width: 300px !important;
    height: 300px !important;
  }

  #filtrosInformes {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  #tablaHorario {
    font-size: 13px;
  }

  #tablaHorario td input,
  #tablaHorario td select {
    font-size: 13px;
  }

  #djPanelContainer {
    width: 96%;
    padding: 16px;
    margin: 18px auto;
  }

  .dj-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dj-header h1 {
    text-align: center;
    margin: 0;
    font-size: 1.4rem;
  }

  .dj-header > div {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  #logoDJ {
    width: 150px !important;
    height: auto !important;
  }

  #colorSistema {
    width: 36px !important;
    height: 36px !important;
  }

  #linkSolicitudes {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1;
  }

  button {
    font-size: 14px;
  }

  .btn-mini {
    font-size: 14px;
    padding: 6px 8px;
  }

  #tablaSolicitudes,
  #tablaProcesadas {
    display: table;
    width: 100%;
    border: none;
    background: transparent;
  }

  #tablaSolicitudes thead,
  #tablaProcesadas thead {
    display: none !important;
  }

  #tablaSolicitudes tbody,
  #tablaProcesadas tbody,
  #tablaSolicitudes tr,
  #tablaProcesadas tr,
  #tablaSolicitudes td,
  #tablaProcesadas td {
    display: block !important;
  }

  #tablaSolicitudes tbody tr,
  #tablaProcesadas tbody tr {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    margin: 12px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }

  #tablaSolicitudes td,
  #tablaProcesadas td {
    position: static !important;
    padding: 6px 0 !important;
    border: none;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  #tablaSolicitudes td::before,
  #tablaProcesadas td::before {
    content: attr(data-label);
    position: static !important;
    width: auto !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    display: block !important;
    font-weight: 700;
    color: #64748b;
    font-size: 12px;
    opacity: 0.75;
  }
}

@media (max-width: 600px) {
  .container {
    margin: 30px 20px;
    padding: 20px;
  }

  .tab-menu {
    flex-direction: column;
  }

  .tab-menu button {
    margin: 5px 0;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .logo-dj {
    width: 80%;
    max-width: 280px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  #loginDJ.container {
    width: 98%;
    margin: 15px auto;
    padding: 20px 15px;
  }
}

@media (max-width: 400px) {
  .logo-dj {
    width: 85%;
  }
}

/* ================================
   PRINT
================================ */
@media print {
  table {
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }

  .filtros-flex,
  #btnExportarPDFHorarios,
  .columna-acciones,
  #graficosInformes,
  .no-imprimir {
    display: none !important;
  }

  label:has(select),
  label:has(input[type="date"]),
  label:has(input[type="number"]) {
    display: none !important;
  }
}

#modalPerfil .modal-perfil-ancho {
  max-width: 850px;
  width: 95%;
}

.perfil-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.perfil-lado-logo {
  flex: 0 0 240px;
  text-align: center;
  border-right: 1px solid #e5e7eb;
  padding-right: 20px;
}

.perfil-logo-preview {
  width: 220px;
  max-width: 100%;
  height: 120px;
  object-fit: contain;
  cursor: pointer;
  border: 1px dashed #ccc;
  border-radius: 12px;
  padding: 8px;
}

.perfil-label-color {
  display: block;
  margin-top: 14px;
  font-weight: bold;
}

.perfil-color-input {
  width: 70px;
  height: 45px;
  padding: 0;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.perfil-formulario {
  flex: 1;
  max-width: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 700px) {
  .perfil-layout {
    flex-direction: column;
  }

  .perfil-lado-logo {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding-right: 0;
    padding-bottom: 18px;
  }
}

.logo-hover-box {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.logo-hover-box img {
  width: 220px;
  max-width: 100%;
  height: 120px;
  object-fit: contain;
  border: 1px dashed #ccc;
  border-radius: 12px;
  padding: 8px;
}

/* Overlay oculto */
.logo-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: white;
  font-weight: bold;
  font-size: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  opacity: 0;
  transition: 0.25s ease;
}

/* Mostrar al pasar el mouse */
.logo-hover-box:hover .logo-hover-overlay {
  opacity: 1;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  padding: 12px;

  background: #fff;
  color: #444;
  font-weight: 600;

  border: 1px solid #ddd;
  border-radius: 8px;

  cursor: pointer;
  transition: 0.2s;
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.btn-google:hover {
  background: #f7f7f7;
  border-color: #ccc;
}

.nombre-dj-preview {
  display: inline-block;
  margin-left: 8px;
  font-weight: 800;
  font-size: 15px;
  color: white;
  background: var(--color-principal);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ================================
   MODERNIZACIÓN 2026 + BILLING
================================ */
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--color-principal) 24%, transparent), transparent 35%),
    linear-gradient(145deg, #0b1220 0%, #111827 45%, #020617 100%);
  background-attachment: fixed;
}

.container {
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 24px 70px rgba(2,6,23,.35);
  backdrop-filter: blur(14px);
}

#djPanelContainer {
  background: rgba(255,255,255,.97);
  border-radius: 24px;
}

.dj-header {
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

input, select, textarea {
  min-height: 42px;
  border-color: #cbd5e1;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-principal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-principal) 16%, transparent);
}

button, .btn-verde, .btn-azul, .btn-gris, .btn-rojo {
  min-height: 40px;
  border-radius: 10px;
  font-weight: 700;
}

button:hover { transform: translateY(-1px); }

table { box-shadow: 0 10px 30px rgba(15,23,42,.08); }
th { background: #eef2f7; color: #334155; }

.trial-pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.5);
  background: rgba(34,197,94,.12);
  color: #bbf7d0;
  font-weight: 800;
  margin-bottom: 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 850px;
  margin: 24px auto;
  gap: 20px;
}

.plan-card { display:flex; flex-direction:column; text-align:left; }
.plan-card .precio-valor small { font-size:.9rem; color:#cbd5e1; }
.plan-card ul { flex:1; }
.plan-cta { margin-top:18px; width:100%; box-sizing:border-box; }
.pricing-note { text-align:center; color:#cbd5e1; }

.billing-gate {
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px 16px;
  box-sizing:border-box;
  color:#0f172a;
}

.billing-shell {
  width:min(920px,100%);
  background:rgba(255,255,255,.98);
  border:1px solid rgba(255,255,255,.5);
  border-radius:28px;
  padding:28px;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
  text-align:center;
}

.billing-brand { display:flex; justify-content:center; align-items:center; gap:10px; font-weight:900; }
.billing-brand img { width:72px; height:48px; object-fit:contain; }
.billing-icon { font-size:42px; margin-top:8px; }
.billing-shell h1 { margin:8px 0; }
.billing-lead { max-width:640px; margin:0 auto 22px; color:#475569; line-height:1.6; }
.billing-plans { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; text-align:left; }
.billing-plan { border:1px solid #dbe3ee; border-radius:20px; padding:22px; background:#f8fafc; }
.billing-plan.featured { border-color:#22c55e; box-shadow:0 12px 32px rgba(34,197,94,.13); }
.billing-tag { display:inline-block; border-radius:999px; padding:5px 10px; background:#dcfce7; color:#166534; font-size:12px; font-weight:800; }
.billing-plan h2 { margin:12px 0 4px; }
.billing-price { display:flex; align-items:end; gap:8px; margin-bottom:10px; }
.billing-price strong { font-size:40px; color:#16a34a; }
.billing-price span { padding-bottom:7px; color:#64748b; }
.billing-saving { margin:-4px 0 10px; color:#15803d; font-weight:800; }
.billing-plan ul { list-style:none; padding:0; line-height:1.9; color:#334155; }
.billing-status { min-height:22px; font-weight:800; margin:18px 0 4px; }
.billing-status[data-type="error"] { color:#dc2626; }
.billing-status[data-type="success"] { color:#16a34a; }
.billing-secure { color:#64748b; font-size:13px; }
.billing-logout { background:#475569; color:#fff; padding:10px 16px; }

@media (max-width:700px) {
  .pricing-grid, .billing-plans { grid-template-columns:1fr; }
  .billing-shell { padding:20px 14px; }
}

/* ================================
   RESUMEN DE PLAN / SUSCRIPCIÓN
================================ */
.billing-summary-card {
  margin: 20px 0 26px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15,23,42,.98), rgba(30,41,59,.96));
  color: #f8fafc;
  border: 1px solid rgba(148,163,184,.2);
  box-shadow: 0 16px 34px rgba(15,23,42,.22);
}
.billing-summary-main { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.billing-summary-main h2 { margin:8px 0 4px; color:#fff; }
.billing-summary-main p { margin:0; color:#cbd5e1; }
.billing-summary-actions button { width:auto !important; white-space:nowrap; }
.billing-status-badge { display:inline-flex; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:800; background:#475569; }
.billing-status-badge.trial { background:#0ea5e9; color:#fff; }
.billing-status-badge.active { background:#22c55e; color:#052e16; }
.billing-status-badge.inactive { background:#ef4444; color:#fff; }
.billing-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:18px; }
.billing-summary-grid > div { background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); padding:12px; border-radius:12px; }
.billing-summary-grid span { display:block; color:#94a3b8; font-size:12px; margin-bottom:5px; }
.billing-summary-grid strong { display:block; color:#fff; font-size:14px; word-break:break-word; }
.modal-planes-dj { max-width:900px !important; max-height:92vh; overflow:auto; }
.billing-plans.embedded { margin-top:18px; }
@media (max-width: 760px) {
  .billing-summary-main { flex-direction:column; align-items:stretch; }
  .billing-summary-actions button { width:100% !important; }
  .billing-summary-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 440px) { .billing-summary-grid { grid-template-columns:1fr; } }
