*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/*LOGIIIIIN*/
.main{

    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(/assets/dia.jpg);
    animation: gradients 65s ease infinite;
    overflow: hidden;
 
}

@keyframes gradients{
    0%{
        background-position: 0% 75%;
    }
    50%{

        background-position: 75% 75%;

    }
    100%{
        background-position: 0% 75%;

    }
}



.contenedor-login{
    position: relative;
    width: 380px;
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    background: rgba(15, 15, 15, 0.548);
    border: 2px solid rgba(221, 218, 218, 0.445);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.692);
    z-index: 10px;
    overflow: hidden;
}

.contenedor-login::before{
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.158);
    transform:skewX(-15deg);
    transition: 0.3s;
    pointer-events: none;
    
}

.contenedor-login:hover::before{
    left: 120%;
}


.contenedor-login h2{
    color: rgb(240, 248, 255);
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgb(6, 255, 201);
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input{
    width: 100%;
    padding: 15px 20px;
    background: rgba(253, 253, 253, 0.082);
    border: none;
    outline: none;
    border-radius: 35px;
    font-size: 16px;
    color: rgb(221, 238, 252);
    box-shadow: 0 5px 15px rgb(255, 255, 255) ;
    transition: all 0.3 ease;

}

.input-group input::placeholder{
    color: rgba(255, 255, 255, 0.705);
}

.input-group input:focus{
    background: rgba(255, 255, 255, 0.301);
    box-shadow: 0px 8px 20px rgb(255, 255, 255);

}

.input-group label{
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.726);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus + label,
.input-group input:valid + label{
    top:0;
    left:16%;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.205);
    padding: 2px 8px;
    border-radius: 10px;
    color: rgb(255, 255, 255);
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #00ffff,
        0 0 30px #00ffff;

}

.enviar{
    width: 100%;
    padding: 15px;
    margin-top: 10%;
    background-color: rgba(0, 0, 0, 0.445);
    border: none;
    border-radius: 35px;
    color: aliceblue;
    font-size: 23px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.603);
}

.enviar:hover{
    background-color: rgba(0, 0, 0, 0.582);
    box-shadow: 0 8px 20px rgb(255, 255, 255);
    font-size: 27px;
}

.mensaje-err{
   background-color: rgba(187, 31, 31, 0.596);
   border-radius: 50px;
   text-align: center;
    color: rgb(255, 0, 0);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    width: 100%;
}




/* ***********************************************HEADER************************************************* */

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 25px;

    background: linear-gradient(135deg, #39a0f5, #0d47a1);
    backdrop-filter: blur(10px);

    border-bottom:1px solid rgba(255,255,255,0.1);

    position:relative;
}

/* LOGO */

.logo{
    display:flex;
    flex-direction:column;
    color:white;
}


.sub{
    font-size:12px;
    opacity:.6;
}

/* MENU */

.menu{
    display:flex;
    gap:25px;
    list-style:none;
}

.menu a{
    text-decoration:none;
    color:white;
    font-size:14px;
    font-weight:500;
    position:relative;
    transition:.3s;
    cursor:pointer;
    
    
}

.menu a::after{
    content:"";
    position:absolute;
    bottom:-5px;
    left:0;
    width:0%;
    height:2px;
    background:#ffffff;
    transition:.3s;
}

.menu a:hover::after{
    width:100%;
    cursor: pointer;
}

.cerrarSesion {
    color:#f87171 !important;
}

.cerrarSesion a::after{
    content:"";
    position:absolute;
    bottom:-5px;
    left:0;
    width:0%;
    height:2px;
    background:#f83838;
    transition:.3s;
}

/* HAMBURGER */

.hamburger{
    display:none;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
}

.hamburger span{
    width:25px;
    height:3px;
    background:white;
    border-radius:3px;
    transition:.3s;
}

/* Animacion hamburguesa */

.hamburger.active span:nth-child(1){
    transform:rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2){
    opacity:0;
}

.hamburger.active span:nth-child(3){
    transform:rotate(-45deg) translate(5px,-5px);
}

/* RESPONSIVE */

@media(max-width:978px){

    .hamburger{
        display:flex;
    }

    .nav{
        position:absolute;
        top:95px;
        left:0;
        width:100%;
        background: linear-gradient(135deg, #237cc5, #022f72);
        max-height:0;
        overflow:hidden;
        transition: 1s ease;
    }

    .nav.active{
        max-height:400px;
    }

    .menu{
        flex-direction:column;
        padding:20px;
    }
}


h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #334155;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;

  /* Diseño moderno de letras */
  letter-spacing: 0.6px;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.08);
}

.titulo {
  font-size: 25px;
  font-weight: 600;
}

.sub {
  font-size: 18px;
  opacity: .6;
}





/* *********************************************Botones acciones ************************************************************************ */

/* PANEL GENERAL */
.tickets-panel{
    padding:25px;
}

/* CARD PRINCIPAL */

.tickets-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:25px;

    background:#ffffff;
    border-radius:18px;
    padding:25px;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.08);
}

/* INFO */

.tickets-info h3{
    font-size:22px;
    color:#1e293b;
    margin-bottom:6px;
}

.totalT{
    font-size:20px;
    color:#64748b;
    font-weight:500;
}

/* ACCIONES */

.tickets-actions{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}



/* RELOJ */

.clock{
    text-align: center;
    font-weight:600;
    padding:8px 16px;
    border-radius:50px;
    font-size:24px;
    margin-left: auto;


  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;

  font-size: 24px;
  font-weight: bold;

  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);

  transition: transform 0.2s, box-shadow 0.2s;
}

/* BOTONES */

.btn{
    margin-top: 10PX;
    border:none;
    padding:11px 18px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    font-size:14px;

    transition:0.25s;
}

/* COPIA */

.btn-copy{
    background:#6366f1;
    color:white;
}

.btn-copy:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 15px rgba(99,102,241,0.4);
}

/* AGREGAR */

.btn-add{
    background:#10b981;
    color:white;
}

.btn-add:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 15px rgba(16,185,129,0.4);
}

/* BUSCADOR */

.search-input{
    padding:11px 15px;
    border-radius:10px;
    border:1px solid #e2e8f0;
    outline:none;
    min-width:220px;

    transition:0.3s;
}

.search-input:focus{
    border-color:#6366f1;
    box-shadow:0 0 0 3px rgba(99,102,241,0.2);
}

/* RESPONSIVE */

@media(max-width:978px){
    .clock{
        width:100%;

    }

    .tickets-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .tickets-actions{
        width:100%;
        flex-direction:column;
        align-items:stretch;
    }

    .btn{
        width:100%;
    }

    .search-input{
        width:100%;
    }

    .clock{
        align-self:flex-end;
    }
}


/* ***************************TABLAS *******************************************/
table {
table-layout: fixed;
    margin-top: 30PX;
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, sans-serif;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(53, 92, 219, 0.5);
}

/* Encabezado */
thead {
  background: linear-gradient(90deg, #334155, #085ee7);
  color: white;
}

th {
  padding: 14px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

/* Celdas */
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.95rem;
}

/* Filas hover */
tbody tr:hover {
  background: #f8fafc;
  transition: 0.2s;
}

/* Última fila sin borde */
tbody tr:last-child td {
  border-bottom: none;
}

/* Botones */
td button {
    width: 100%;
  margin: 2px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  background: #3b82f6;
  color: white;
  transition: 0.2s;
}

/* Hover botones */
td button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Botón borrar */
td button:last-child {
  background: #ef4444;
}


tbody tr:nth-child(even) {
  background: #f9fafb;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}


table::-webkit-scrollbar {
  height: 6px;
}

table::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

th, td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}




/* *******************************************************Modal**************************************************+*/

/* Fondo oscuro del modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55); /* Oscurecido moderado */
  backdrop-filter: blur(3px); /* efecto moderno */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 15px;
}

.modal label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 12px;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
}

/* Ajuste del radio */
.modal input[type="radio"] {
  margin: 0;
  transform: translateY(1px); /* ajuste fino visual */
}

/* Caja del contenido */
.modal .contenido {
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: aparecerModal 0.25s ease;
}

/* Animación */
@keyframes aparecerModal {
  from {
    opacity: 0;
    transform: translateY(-25px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Inputs */
.modal input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

.modal input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* Radios */
.modal label {
  margin-right: 10px;
  font-size: 0.9rem;
  color: #334155;
}

/* Texto informativo */
.modal p {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 8px;
}

/* Botones generales */
button.aceptar,
button.cancelar {
  margin-top: 12px;
  padding: 9px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
}

/* Botón aceptar */
button.aceptar {
  background: #3b82f6;
  color: white;
  margin-right: 6px;
}

button.aceptar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

/* Botón cancelar */
button.cancelar {
  background: #e43636;
  color: #fafafa;
}

button.cancelar:hover {
  background: #cbd5e1;
}

/* Mensajes */
.modal .msg {
  font-size: 0.85rem;
  margin-top: 10px;
  color: #ef4444;
}

@media (max-width: 480px) {

  .modal .contenido {
    padding: 18px;
    border-radius: 12px;
  }

  button.aceptar,
  button.cancelar {
    width: 100%;
    margin-right: 0;
  }

}



/* Modal que NO contiene form (detalle pago) */
.modal > div:not(.contenido) {
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: aparecerModal 0.25s ease;
}

/* Contenido tipo resumen */
.modal > div:not(.contenido) .contenido {
  background: #f8fafc;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  border: 1px solid #e2e8f0;
}

/* Textos del resumen */
.modal > div:not(.contenido) .contenido p {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin: 6px 0;
  color: #334155;
}

/* Etiquetas en negrita */
.modal > div:not(.contenido) strong {
  color: #0f172a;
}

/* Total destacado */
.modal .total {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 1rem !important;
  color: #16a34a !important;
  font-weight: bold;
}

/* Separación botones */
.modal > div:not(.contenido) button {
  margin-top: 14px;
}


@media (max-width: 480px) {

  .modal > div:not(.contenido) {
    padding: 18px;
  }

}

.modal .total {
  background: #ecfdf5;
  padding: 8px 10px;
  border-radius: 8px;
}


.modal  textarea {
margin-top: 10px;
  width: 100%;
  min-height: 95px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #f8fafc;
  transition: all 0.25s ease;

  /* mantiene redimensionar */
  resize: vertical;
}

/* Hover suave */
.modal  textarea:hover {
  border-color: #94a3b8;
}

/* Focus moderno */
.modal  textarea:focus {
  background: white;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.modal .copia{
      background: #8308f7c9;
  color: white;
  margin-right: 6px;
  margin-top: 12px;
  padding: 9px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;

}



/* *************************************************************Canvas*********************************************************************/


/* Contenedor principal */
div:has(> canvas) {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  max-width: 100%;
}

/* Radios y labels */
div:has(> canvas) input[type="radio"] {
  margin-top: 12px;
}

div:has(> canvas) label {
  margin-right: 14px;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
}

/* Inputs fecha */
div:has(> canvas) input[type="date"] {
  margin-top: 12px;
  margin-right: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

div:has(> canvas) input[type="date"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

/* Botones */
div:has(> canvas) button {
  margin-top: 12px;
  margin-right: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}

/* Hover botones */
div:has(> canvas) button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

/* Canvas */
div:has(> canvas) canvas {
  margin-top: 18px;
  width: 100% !important;
  height: auto !important;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
}


@media (max-width: 600px) {

  div:has(> canvas) button {
    width: 100%;
  }

  div:has(> canvas) input[type="date"] {
    width: 100%;
    margin-right: 0;
  }

}









