@import url('https://fonts.googleapis.com/css2?family=Roboto');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 14px;
    font-family: Roboto, sans-serif;
    color: #333333;
}

header {
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
}

main {
    flex: 1;
}

footer {
    color: white;
    text-align: center;
}

.content {
    width: 90%;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.main-content {
    flex: 1;
    padding: 20px;
}

.sidebar {
    width: 260px;
    top: 80px;
    padding: 20px;
    height: fit-content;
}

.sidebar-sticky {
    width: 360px;
    position: sticky;
    top: 80px;
    padding: 20px;
    height: fit-content;
}


.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    /* Ajusta según tus necesidades */
    height: auto;
    /* O una altura fija si lo prefieres */
    background: white;
    /* Por si necesitas contraste */
    padding: 10px;
    z-index: 1051;
    border-radius: 5px;
}
.modal-dialog.screen-modal-2 {
    width: 1200px !important;
}

.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    background: white;
    padding: 10px;
    z-index: 1051;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3); /* opcional para mejor visibilidad */
}

.modalhome {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    /* Ajusta según tus necesidades */
    height: auto;
    /* O una altura fija si lo prefieres */
    background: transparent;
    /* Por si necesitas contraste */
    padding: 10px;
    z-index: 1051;
    border-radius: 5px;
}
.modal-header,
.modal-content {
    border: none;
    padding: 10px;
}
.flatpickr-calendar {

  z-index: 1051 !important;
}
  .modal-body {
    max-height: 80vh;   /* el body nunca pasa del 75% del alto de pantalla */
    overflow-y: auto;   /* si se llena, scroll bonito dentro */
  }
  
  #modalGenericContent .card {
    max-width: 100%;    /* no reventar en móviles */
  }
  @media (min-width: 768px) {
    #modalGenericContent .card {
      max-width: 700px;
    }
  }
  @media (min-width: 992px) {
    #modalGenericContent .card {
      max-width: 900px;
    }
  }
    

.modalCombo {
    width: 1600px;
    max-width: 95%;  /* para pantallas chicas */
    background: white;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}


.modalCombo-header,
.modalCombo-content {
    border: none;
    padding: 10px;
}
.relation-td {
    vertical-align: middle;
    padding: 8px 10px;
    width: 300px;
}
.relation-select {
    width: 100%; /* ocupa todo el ancho del td */
}

#addReference,
#reserva_tipo,
#reserva_canal,
#reserva_metodo_pago {
    cursor: pointer; /* Cambia el cursor al pasar sobre */
    transition: background-color 0.1s;
}
.disabled-item {
  cursor: default !important;
  pointer-events: none;
  /* opacity: 0.6; */
}
/* #reserva_tipo:hover,
#reserva_canal:hover,
#reserva_metodo_pago:hover{
    opacity: 0.8; /* opcional: un leve efecto visual 
}*/
.hidden {
    display: none !important;
}
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* siempre 2 columnas */
    gap: 10px;
    width: 100%;
    max-width: 800px; /* opcional */
    max-height: 240px;
    overflow: auto;
  }
  
  .horario-card {
    border: 1px solid #4CAF50;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .horario-card.seleccionado {
    border: 2px solid #D70000;
  }
  .select2-search--dropdown {
    display: block; /* se verá cuando abras */
  }
  .select2-search__field {
    width: 100% !important;
    box-sizing: border-box;
  }
  .section-newreserva-description {
    list-style: none;
    padding: 20px 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .section-newreserva-description > li {
    border-bottom: 1px dotted #9E9E9E;
    padding-bottom: 10px;
  }
  
  /* .section-newreserva-description > li:last-child {
    border-bottom: none;
  } */
  
  .section-newreserva-description ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

/* Aumentar contraste de placeholders de Select2 */
.select2-selection__placeholder {
    color: #555 !important; /* Gris más oscuro */
}

/* Headers y títulos en booking-salmon */
.booking-salmon header, 
.booking-salmon h2{
    color: #222; /* si lo quieres blanco sobre salmon, verificar contraste */
}

/* Textos en spans sobre fondos claros */
span, p,  .booking-salmon h2 span {
    color: #222; /* asegurar suficiente contraste */
}

/* Sólo dentro del tbody con id RBuscador */
#RBuscador tr.channel-row {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}
/* #RBuscador tr.channel-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
} */

/* Celdas con padding y texto */
#RBuscador tr.channel-row td {
    /* padding: 18px 20px; */
    vertical-align: middle;
    color: #333;
    
    text-align: -webkit-center;
}

/* Nombre canal destacado */
#RBuscador tr.channel-row td.channel-name {
    font-weight: normal;
    font-size: 14px;
    color: #1a1a1a;
}

/* Botón representantes */
#RBuscador tr.channel-row td .rep-btn {
    background: transparent;
    color: #000;
    border: none;
    /* padding: 10px 16px; */
    /* border-radius: 40px; */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    /* box-shadow:
        0 0 6px rgba(74, 144, 226, 0.7),
        inset 0 -3px 5px rgba(255, 255, 255, 0.3); */
    /* transition: box-shadow 0.4s ease; */
    /* position: relative; */
    overflow: hidden;
}
#RBuscador td {
    vertical-align: middle;  /* Opcional: alinea arriba */
    
  }
  /* Sólo celdas de Actividad dentro del tbody */
/* Forzar ancho de la columna de Actividad */
/* Tabla respeta los anchos */
#table-home-reservas .table {
    table-layout: fixed;
    width: 100%;
}

#table-home-reservas thead th:nth-child(4) {
    text-align: left;
}

/* Estilo base para la tabla */
#table-home-reservas .table {
    table-layout: fixed;
    width: 100%;
  }
  
  /* Reset general para celdas */
  #RBuscador td,
  #table-home-reservas th {
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    font-weight: 500;
  }
  
  /* 🏢 Columna 3: EMPRESA */
  #RBuscador td:nth-child(3),
  #table-home-reservas th:nth-child(3) {
    white-space: normal;
    min-width: 180px;
    width: 180px;
  }
  
  /* 🎯 Columna 4: ACTIVIDAD */
  #RBuscador td:nth-child(4),
  #table-home-reservas th:nth-child(4) {
    text-align: left;
    white-space: 1px;
    width: auto;
    min-width: 250px;
  }
  #RBuscador td:nth-child(4) {
    text-align: justify;
  }
  
  /* 👤 Columna 5: CLIENTE */
  #RBuscador td:nth-child(5),
  #table-home-reservas th:nth-child(5) {
    white-space: normal;
    width: 165;
    min-width: 100px;
    text-align: left;
  }
  
  /* Otras columnas: tamaños fijos o mínimos */
  #RBuscador td:nth-child(1),
  #table-home-reservas th:nth-child(1) {
    width: 140px;
    min-width: 140px;
  }
  #RBuscador td:nth-child(2),
  #table-home-reservas th:nth-child(2),
  #RBuscador td:nth-child(6),
  #table-home-reservas th:nth-child(6),
  #RBuscador td:nth-child(7),
  #table-home-reservas th:nth-child(7),
  #RBuscador td:nth-child(8),
  #table-home-reservas th:nth-child(8),
  #RBuscador td:nth-child(9),
  #table-home-reservas th:nth-child(9),
  #RBuscador td:nth-child(10),
  #table-home-reservas th:nth-child(10) {
    width: 95px;
    min-width: 95px;
    text-align: left;
  }
  #RBuscador td,
  #table-home-reservas th{
    padding: 15px 5px !important;
  }
  /* 📱 RESPONSIVE: Ajustes para pantallas medianas */
  @media (max-width: 1360px) {
    #RBuscador td:nth-child(3),
    #table-home-reservas th:nth-child(3) {
      width: 145px;
      min-width: 145px;
    }
  
    #RBuscador td:nth-child(4),
    #table-home-reservas th:nth-child(4) {
      min-width: 225px;
    }
  
    #RBuscador td:nth-child(5),
    #table-home-reservas th:nth-child(5) {
      min-width: 120px;
    }
  }
  
  /* 📱 RESPONSIVE: Pantallas pequeñas */
  @media (max-width: 1230px) {
    #RBuscador td:nth-child(3),
    #table-home-reservas th:nth-child(3) {
      min-width: 120px;
    }
  
    #RBuscador td:nth-child(4),
    #table-home-reservas th:nth-child(4) {
      min-width: 150px;
    }
  
    #RBuscador td:nth-child(5),
    #table-home-reservas th:nth-child(5) {
      min-width: 80px;
    }
  }
  

  #toursBlockModal, #addonsBlockModal {
      width: 100%;
  }

/* Cuando la pantalla sea menor o igual a 1360px */
@media (max-width: 1360px) {
    #modalContentWrapper {
        flex-direction: column;
    }
    #toursBlockModal, #addonsBlockModal {
        width: 100%;
    }
}

  
/* #RBuscador tr.channel-row td .rep-btn:hover {
    box-shadow:
        0 0 12px rgba(74, 144, 226, 1),
        inset 0 -4px 7px rgba(255, 255, 255, 0.5);
    animation: pulse-blue 1.5s infinite;
} */

/* Animación sutil para el botón reps */
@keyframes pulse-blue {
    0%, 100% {
        box-shadow:
            0 0 12px rgba(74, 144, 226, 1),
            inset 0 -4px 7px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 0 20px rgba(74, 144, 226, 1.5),
            inset 0 -5px 9px rgba(255, 255, 255, 0.7);
    }
}

/* Icono del grupo más grande */
#RBuscador tr.channel-row td .rep-btn i.material-icons {
    font-size: 1.6rem;
}

/* Badge contador */
#RBuscador tr.channel-row td .rep-count {
    background: #17a2b8;
    font-weight: 700;
    font-size: 1rem;
    padding: 4px 10px;
    border-radius: 40px;
    color: white;
    /* box-shadow: 0 2px 6px rgba(255, 71, 87, 0.5); */
    user-select: none;
}

/* Teléfono y tipo con color gris suave */
#RBuscador tr.channel-row td.channel-phone,
#RBuscador tr.channel-row td.channel-type {
    font-size: 1rem;
    color: #666;
}

/* Acciones */
#RBuscador tr.channel-row td .channel-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

#RBuscador tr.channel-row td .channel-actions button {
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: #555;
    font-size: 1.5rem;
    /* transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
}
/* #RBuscador tr.channel-row td .channel-actions button:hover {
    background-color: #357ABD;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(53, 122, 189, 0.6);
} */

/* Fila para agregar canal */
#RBuscador tr.add-channel-cell td {
    text-align: center;
    padding: 25px 0;
}

/* Botón nuevo canal estilo neumorfismo */
#RBuscador tr.add-channel-cell td .neumorphic-btn {
    background: #e0e5ec;
    border-radius: 40px;
    border: none;
    padding: 14px 32px;
    font-size: 1.2rem;
    color: #357ABD;
    font-weight: 700;
    box-shadow:
        8px 8px 15px #babecc,
        -8px -8px 15px #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: box-shadow 0.3s ease, color 0.3s ease;
}
#RBuscador tr.add-channel-cell td .neumorphic-btn:hover {
    color: #234a7a;
    box-shadow:
        inset 4px 4px 6px #babecc,
        inset -4px -4px 6px #ffffff;
}
@media (max-width: 1400px) {
    .horarios-grid {
      grid-template-columns: repeat(1, 1fr); /* 1 columna en pantallas pequeñas */
    }
}
.lds-dual-ring {
    display: inline-block;
    width: 64px;
    height: 64px;
  }
  .lds-dual-ring:after {
    content: " ";
    display: block;
    width: 46px;
    height: 46px;
    margin: 1px;
    border-radius: 50%;
    border: 5px solid #3498db;
    border-color: #3498db transparent #3498db transparent;
    animation: lds-dual-ring 1.2s linear infinite;
  }
  @keyframes lds-dual-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  #modalLoader .modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.8);
  }
  #toursBlockModal td:first-child,
  #addonsBlockModal td:first-child {
    white-space: normal; /* permite salto de línea */
    word-wrap: break-word;
    max-width: 150px;
  }
  
  #toursBlockModal th:first-child,
  #addonsBlockModal th:first-child {
    max-width: 150px;
    white-space: normal;
    word-wrap: break-word;
  }
  