/* <link rel="stylesheet" type="text/css" href="static/css_Bonchart/modificaciones.css"> */

.js-requires-fp { display: none !important; }

#boton-ir-favpage-events:not([data-fp-ok="1"]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 🔓 con llave */
#boton-ir-favpage-events[data-fp-ok="1"] {
  display: inline-block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Oculta por estilo (defensivo) el botón de crear cuando no es el dueño */
/* en tu hoja global */
.fp-readonly #crear-flyer-btn {
  display: none !important;
  pointer-events: none !important;
}



#popup-chat-list li.msg {
  display: flex; gap: 8px; align-items: flex-end; margin: 8px 0;
}
#popup-chat-list li.msg.self { flex-direction: row-reverse; justify-content: flex-end; }
#popup-chat-list li.msg.other { flex-direction: row; justify-content: flex-start; }


#login-spinner {
  transition: opacity 0.3s ease;
}

#login-spinner.show-spinner {
  display: inline-block !important;
  opacity: 1;
}


.spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Spinner más claro y centrado */
.spinner i {
  color: white;
  font-size: 1.2rem;
}

/* Botón durante carga */
.btn-loading {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  opacity: 0.8;
  cursor: wait;
}


.more-dropdown {
  display: block;
  position: absolute;
  top: 100%;
  right: 0;
  width: 180px;
  box-shadow: 0 0 34px 0 rgba(63, 66, 87, .1);
  background-color: #fff;
  border-radius: 4px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear .3s, opacity .3s linear;
}


.more-dropdown.open {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  transition: visibility 0s, opacity 0.3s ease;
}

#boton-perfil-cambiar-avatar-header {
    
    justify-content: center;
    align-items: center;
 
  
    overflow: hidden;
 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 6px rgba(90, 155, 239, 0.5);
}

/* Oculta el menú por defecto */
#boton-perfil-cambiar-avatar-header .more-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 200px;
  padding: 8px 0;
  margin-top: 8px;
}

/* Muestra el menú cuando tiene la clase 'open' */
#boton-perfil-cambiar-avatar-header .more-dropdown.open {
  display: block;
}

/* Estilos básicos de las opciones del menú */
#boton-perfil-cambiar-avatar-header .more-dropdown li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

#boton-perfil-cambiar-avatar-header .more-dropdown li a:hover {
  background-color: #f0f0f0;
}


.main-header-weather {
    height: 100%;
    margin-bottom: 30px;
}


 .selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .selected-item {
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
  }

  .selected-item button {
    background: transparent;
    border: none;
    color: white;
    margin-left: 5px;
    font-weight: bold;
    cursor: pointer;
  }

  .options-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    padding-left: 0;
    margin-bottom: 0;
  }

  .options-list li {
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
  }

  .options-list li:hover {
    background-color: #f0f0f0;
  }

  .options-list img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }
  
#btnCerrarAmpliarFoto{
        background: red;
}

#modalImagenAmpliada .modal-dialog {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}


.control-block {
  top: 0 !important;
  position: relative; /* o fixed, según sea el caso correcto */
}


.widget {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.h6.title {
  margin-bottom: 10px;
}
.svg[class*="olymp-"] {
  width: 20px;
  height: 20px;
}
.text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-icons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.svg-white svg, .svg-white use {
    fill: white;
}
.z-index-top {
    position: relative; /* Required for z-index to take effect */
    z-index: 10; /* Adjust the value as needed to be on top of other elements */
}
/* para el formulario Flyer del evento */
#tag-container {
         margin-bottom: 20px;
}
#preview-image {
    margin-bottom: 20px;
    max-width: 200px !important;
    max-height: 200px !important;
    display: inline-block;
}
#preview-image img {
    max-width: 200px !important;
    max-height: 200px !important;
    display: inline-block;
}
#global-user-search-results {
    display: block;
    background: white;
}


/* 🟣 Mejorar dropdown de búsqueda global */
.selectize-dropdown {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #ffffff !important;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  border-radius: 6px;
  padding: 10px 0;
  scrollbar-width: thin;             /* Firefox */
  scrollbar-color: #ccc transparent; /* Firefox */
}

/* Estilo de scrollbar en Chrome y WebKit */
.selectize-dropdown::-webkit-scrollbar {
  width: 6px;
}

.selectize-dropdown::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

/* Estilo visual de cada resultado */
.selectize-dropdown .inline-items {
  padding: 8px 15px;
  transition: background 0.2s ease;
}

.selectize-dropdown .inline-items:hover {
  background-color: #f0f2f5;
  cursor: pointer;
}



@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}



.selectize-dropdown .inline-items.active,
.selectize-dropdown .inline-items.selected {
  background-color: #f5f5f5;
  cursor: pointer;
}

/* Mejor contraste para el texto */
.selectize-dropdown .notification-event .h6 {
  color: #333;
  font-weight: 600;
}

.selectize-dropdown .chat-message-item {
  color: #666;
  font-size: 13px;
}

.selectize-dropdown {
  max-height: 380px !important;
  overflow-y: auto;
  background-color: var(--bs-white);
  border: 1px solid var(--bs-border-color);
  box-shadow: var(--bs-box-shadow);
     top:0px !important;
}







#map {
    height: 200px;
    width: 100%;
}
.controls {
    margin-top: 10px;
    border: 1px solid transparent;
    border-radius: 2px 0 0 2px;
    box-sizing: border-box;
    height: 32px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
#favorite-page-physical-address {
    background-color: #fff;
    font-family: Roboto;
    font-size: 15px;
    font-weight: 300;
    margin-left: 12px;
    padding: 0 11px 0 13px;
    text-overflow: ellipsis;
    width: 100%;
}
.sorting-item {
    flex: 1 1 calc(33.333% - 16px); /* Ajusta este valor para el ancho de las columnas */
    box-sizing: border-box;
    margin-bottom: 16px; /* Ajusta este valor para el espaciado entre filas */
}
#event-modal {
    display: none; 
    position: fixed; 
    z-index: 50000; 
    left: 0; 
    top: 0; 
    width: 100vw;
    height: 100vh; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con transparencia */
    padding-top: 60px; 
    transition: opacity 0.3s ease-in-out; /* Transición para el efecto de fade */
    opacity: 0; /* Inicialmente oculto */
}
#event-modal.show {
    display: block;
    opacity: 1; /* Mostrar el modal con transición */
}
#event-modal .modal-content {
    margin: 5% auto; 
    padding: 20px; 
    border: 1px solid #888; 
    width: 80%; 
    max-width: 66.66667%; 
    background-color: white; /* Fondo blanco para el contenido del modal */
    z-index: 1060; /* Asegurar que el contenido del modal esté por encima del fondo */
}
#event-modal .btn-secondary {
    width: 150px;
    position: absolute;
    right: 20px; /* Ajusta este valor según sea necesario */
    bottom: 20px; /* Ajusta este valor según sea necesario */
    margin-bottom: 15px;
    margin-right: 15px;
    margin-top: 15px;
}

#event-modal .close-button {
    color: #020000;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px; /* Ajusta este valor según sea necesario */
    top: 20px; /* Ajusta este valor según sea necesario */
    cursor: pointer;
}

#event-modal .close-button:hover,
#event-modal .close-button:focus {
    color: rgb(233, 27, 27);
    text-decoration: none;
    cursor: pointer;
}

/* Estilos adicionales específicos para el contenido del modal */
#event-details-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#event-details-container .ui-block {
    background-color: #fff;
    margin-bottom: 15px;
    width: 70%;
}

#event-details-container img {
    width: 85%;
}

#event-details-container .author-date.not-uppercase .post__author-name {
    top: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
}

#event-details-container .comment-form .post__author img {
    margin-right: 10px;
    min-width: 28px;
 max-width: 28px; 
    height: 28px;
}

#event-details-container .post-content p {
    text-align: justify;
}



/* Slider del flyer */
/* Swiper container and its children styling */
#single-post-slider {
    width: 100%;
    max-width: 700px; /* Adjust as needed */
    margin: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

#swiper-wrapper-unique {
    width: 100%;
    height: auto;
}

#swiper-wrapper-unique .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#swiper-wrapper-unique .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

#swiper-wrapper-unique .swiper-button-next,
#swiper-wrapper-unique .swiper-button-prev {
    color: #000;
}

#swiper-wrapper-unique .swiper-pagination {
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
}

.hidden {
    display: none;
}

#event-details-container .comment-item img {
    border-radius: 50%;
    margin-right: 10px;
}

#event-details-container .comment-item .author-date {
    display: flex;
    align-items: center;
}

#event-details-container .comment-item .author-date .post__author-name.fn {
    margin-right: 10px;
    font-weight: bold;
}

#event-details-container .comment-item .author-date .post__date time {
    font-size: 0.875rem;
    color: #aaa;
}

/* Estilos adicionales para el formulario de comentarios */
#event-details-container .comment-form {
    margin-top: 20px;
}

#event-details-container .comment-form .form-group {
    margin-bottom: 10px;
}

#event-details-container .comment-form .form-group textarea {
    width: 100%;
    resize: none;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}

#event-details-container .comment-form .btn {
    margin-top: 10px;
}

/* Estilos adicionales específicos para los elementos dentro de #event-details-container */
#event-details-container .weight-normal,
#event-details-container .eventNameOnFlyer,
#event-details-container .eventDescriptionOnFlyer {
    align-items: center;
    text-align: center;
    margin: 0.5em 0; /* Ajusta los márgenes según sea necesario */
}

#event-details-container .single-post-slider {
    width: 66.66%;
}

#event-details-container article {
   border-radius: 30px;
    box-shadow: 0 0 20px 2px rgb(16 183 237 / 30%);
    margin-bottom: 60px;
    margin-top: 40px;
}

#event-details-container article:hover {
    box-shadow: 0 0 30px 5px rgba(244, 127, 10, 0.5);
}

#photo-page .photo-item {
   height: 450px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px; /* Opcional: agregar borde redondeado */
}

#photo-page .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


.event-flyer-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

.photo-album-item {
    position: relative;
}

.photo-album-item .checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100; /* Asegúrate de que el z-index es suficientemente alto */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 128, 0, 0.7);
    border-radius: 50%;
    display: none; /* Oculto por defecto */
}

.photo-album-item .checkbox input[type="checkbox"] {
    display: none;
}

.photo-album-item.checked .checkbox {
    display: flex; /* Mostrar cuando está seleccionado */
}

.photo-album-item.checked .checkbox::after {
    content: '✓';
    color: white;
    font-size: 20px;
    line-height: 20px;
}


.img-container {
    max-width: 100%;
    margin: 0 auto;
}

#photo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.choose-photo-item {
    flex: 0 0 30%; /* Ajusta el ancho de cada foto para que se ajusten 3 por fila */
    margin-bottom: 10px; /* Espacio entre filas */
    box-sizing: border-box;
    overflow: hidden; /* Oculta cualquier contenido desbordado */
}

.choose-photo-item .photo-container {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Oculta cualquier contenido desbordado */
    display: flex;
    justify-content: center;
    align-items: center;
}

.choose-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta y ajusta la imagen para cubrir el contenedor */
}



.author-thumb img {
    border-radius: 100%;
    overflow: hidden;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.author-thumb {
    width: 36px; /* o cualquier tamaño que desees */
    height: 36px; /* o cualquier tamaño que desees */
}

.pasado {
    background: #eab39f;
    
}
.pasado .title {
    color: rgb(10, 54, 92) !important;
}

#futuro-container {
    background: #68a8e4;
    color: rgb(255, 255, 255)
}

#futuro-container .title {
    color: rgb(255, 255, 255);
}


.futuro {
    background: #4e5963;
    
    
}

.futuro .title {
    color: rgb(255, 255, 255) !important;
}

table .title-per-year {
    padding: 10px;

}

.event-item-table .futuro {
    margin-left:  2rem;
    width: 97.5%;
    background: linear-gradient(to right, rgb(3, 3, 3) 15%, rgba(255, 255, 255, 0) 100%);
    outline: none;


}


/* Despegar el elemento h6 del límite izquierdo */
.event-item-table .futuro h6 {
    margin-left: 15px !important;
    padding: 5px 15px;
    outline: none;
}


#past-events-container .event-item {
    background: rgba(205, 205, 205, 0.592);
}


/* Estilos del modal */
#participants-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#participants-modal .modal-content {
    background-color: #f0f0f5;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#participants-modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

#participants-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.participant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.participant-name {
    font-size: 18px;
    color: #333;
}

.participant-actions .btn {
    background-color: #4CAF50;
    color: white;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.participant-actions .btn.follow-btn {
    background-color: #2196F3;
}

.participant-actions .btn:hover {
    opacity: 0.9;
}



.editing-mode {
    background-color: #f39c12; /* Color de franja para indicar modo edición */
    color: white;
}


/* Asegura que el calendario sea fijo y esté siempre visible */
.daterangepicker {
    position: fixed !important;  /* Fijo en la pantalla */
    top: 50% !important;         /* Centrar verticalmente */
    left: 50% !important;        /* Centrar horizontalmente */
    transform: translate(-50%, -50%);  /* Centrado absoluto */
    z-index: 1050;               /* Encima de otros elementos */
    width: auto !important;      /* Ajusta el ancho automáticamente */
    max-width: 100%;             /* Evita que se desborde */
    max-height: 100%;            /* Asegura que no se salga del viewport */
    overflow: visible;           /* No oculta contenido */
}


.fa-solid, .fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff763a;
}

#posts-grid-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}



/* ANIMACION PARA LOS LIKES */

.heart-animation {
    position: absolute;
    color: red;
    animation: float-up 1.5s ease-in-out forwards;
    opacity: 1;
    z-index: 9999; /* Asegúrate de que los corazones estén sobre otros elementos */
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1.2); /* Un pequeño zoom */
        opacity: 0.8;
    }
    100% {
        transform: translateY(-50px) scale(1);
        opacity: 0;
    }
}


.socials-shared {
    display: flex;
    gap: 1px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 5px;
    padding-bottom: 15px;
}

.share-title{
    margin-top: 40px;

}

.social-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
  
    overflow: hidden;
 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 6px rgba(90, 155, 239, 0.5);
}




.social-item:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 6px rgba(232, 138, 6, 0.5);
}

.social-icon {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.bg-ghost .bg-Whatsapp {
    background-color: #f8f9fa; /* Un color neutro para Ghost */
}

#event-details-container img {
    width: 85%;
    margin: 0 auto; /* Centra horizontalmente */
    display: block; /* Asegúrate de que el elemento img se comporte como un bloque */
}

.copy-link-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px; /* Espacio entre Copy Link y otros elementos */
    cursor: pointer; /* Cambiar el cursor a pointer para indicar clickeable */
}

.copy-link-title {
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50; /* Verde distintivo */
    text-align: center;
    text-decoration: underline; /* Opcional: subrayado para enfatizar el texto clickeable */
    transition: color 0.3s ease;
}

.copy-link-title:hover {
    color: #3A9E42; /* Cambiar a un tono más oscuro al pasar el mouse */
}




/* BANNER DE EDITION */

/* Estilo base para el banner */
.event-status-banner {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Estilo para POSTPUESTO */
.event-status-banner.postpuesto {
    background-color: rgba(0, 47, 255, 0.7);
    height: 30px;
    width: 30px;
    margin-left: 15px;
    margin-top: 10px;
    border-radius: 5px;
    pointer-events: auto;
    text-align: center;
    overflow: hidden;
}

/* Mostrar solo la "P" inicialmente */
.event-status-banner .initial-text {
    display: inline;
}

/* Ocultar el texto completo inicialmente */
.event-status-banner .full-text {
    display: none;
}

/* Expansión al colocar el cursor sobre el artículo */
article:hover .event-status-banner {
    width: 80%;
    height: 40px;
    background: linear-gradient(to bottom, rgb(0, 47, 255, 0.7) 0%, rgba(255, 0, 0, 0.0) 100%);
    margin-left: 15px;
    margin-top: 10px;
    border-radius: 0;
    justify-content: center;
}

/* Mostrar el texto completo al expandir */
article:hover .event-status-banner .initial-text {
    display: none;
}

article:hover .event-status-banner .full-text {
    display: inline;
}



/* Estilo para EDITADO */
.event-status-banner.editado {
    background-color: rgba(31, 231, 78, 0.7);
    height: 30px;
    width: 30px;
    margin-left: 15px;
    margin-top: 10px;
    border-radius: 5px;
    pointer-events: auto;
    text-align: center;
    overflow: hidden;
}

/* Mostrar solo la "E" inicialmente */
.event-status-banner .initial-text {
    display: inline;
}

/* Ocultar el texto completo inicialmente */
.event-status-banner .full-text {
    display: none;
}

/* Expansión al colocar el cursor sobre el artículo */
article:hover .event-status-banner.editado {
    width: 80%;
    height: 40px;
    margin-left: 15px;
    background: linear-gradient(to bottom, rgb(31, 231, 78, 0.7) 0%, rgba(255, 0, 0, 0.0) 100%);
    margin-top: 10px;
    border-radius: 0;
    justify-content: center;
}

/* Mostrar el texto completo al expandir */
article:hover .event-status-banner.editado .initial-text {
    display: none;
}

article:hover .event-status-banner.editado .full-text {
    display: inline;
}




.event-status-banner.cancelado {
    position: absolute;
    top: 0;
    left: 0; /* Eliminar el desplazamiento hacia la derecha */
    width: 93%;
    height: 40%; /* Ocupa el 15% de la altura */
    margin-left: 15px;
    background: linear-gradient(to bottom, rgba(255, 0, 0, 1) 0%, rgba(255, 0, 0, 0.0) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    z-index: 10;
    pointer-events: none;
    opacity: 0.9;
}

article:hover .event-status-banner.cancelado {
    width: 80%;
    height: 40px;
    margin-left: 15px;
    background: linear-gradient(to bottom, rgba(255, 0, 0, 1) 0%, rgba(255, 0, 0, 0.0) 100%);
    margin-top: 10px;
    border-radius: 0;
    justify-content: center;
}

/* El banner de cancelado siempre muestra el texto completo */

.event-status-banner.cancelado .full-text {
    display: inline;
}



/* Ajustar el contenedor padre */
.post-thumb img{
    position: relative; /* Para posicionar correctamente los banners */
    overflow: hidden; /* Asegura que no haya contenido fuera del contenedor */
}

.modal-content.bg-warning {
    background-color: #b75c2f; /* Amarillo */
    color: #000; /* Texto negro */
}

.modal-content.bg-danger {
    background-color: #dc3545; /* Rojo */
    color: #fff; /* Texto blanco */
}

.modal-footer .btn {
    min-width: 100px;
    margin-top: 17px;
}

#filter-button {
    margin-top: 27px;
}



/* MODIFICACION PARA EL BANNER DE STATUS DEL FLYER */


/* Banners específicos del modal */
.event-status-banner-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
}

/* Clases individuales por estado con desvanecimiento horizontal y vertical */
.cancelado-modal {
    background: linear-gradient(to bottom right, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0));
    height: 15%;
    width: 40%;
    position: absolute;
    margin: 0 auto;
    z-index: 20;
}

.postpuesto-modal {
    background: linear-gradient(to bottom right, rgba(0, 47, 255, 0.7), rgba(255, 165, 0, 0));
    height: 15%;
    width: 40%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
}

.editado-modal {
    background: linear-gradient(to bottom right, rgba(31, 231, 78, 0.7), rgba(0, 128, 255, 0));
    height: 15%;
    width: 40%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
}


#hidden-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    justify-content: center;  /* Asegura que los elementos estén centrados */
    align-items: center;  /* Centra verticalmente dentro del contenedor */
    width: 100%;  /* Ocupa todo el ancho disponible */
}

#hidden-categories.expanded {
    max-height: 200px;
    display: flex;
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.2); /* Línea delgada desvanecida */
    
}

.cat-list__item {
    background-color: #dee4ec;
    border-radius: 30px;
    overflow: hidden;
    padding: 10px 10px;
    text-align: center;
    transition: background 0.3s ease-in-out;
    white-space: nowrap;  /* Evita que el texto se divida en varias líneas */
}

.cat-list__item a {
    text-decoration: none;
    font-size: 10px;
    color: black;
    padding: 1px 1px;
    display: block;
}

.cat-list__item:hover {
    background: #d1d8e0;
}

.cat-list__item a:hover, .cat-list__item.active {
    background-color: #ff5e3a;
    border-radius: 30px;
}


/* Dropdown de países */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.dropdown-menu li:hover {
    background-color: #f1f1f1;
}

/* Mostrar el menú al hacer clic */
.dropdown:hover .dropdown-menu {
    display: block;
}


/* 📌 Línea vertical a la derecha de la primera tabla */
#country-list {
    position: relative;
    padding-right: 20px; /* Espaciado para la línea */
}


#country-list::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

/* CODIGO PARA EL MODAL DE LA REVISTA */
/* ============================= */
/* 📌 ESTILOS GENERALES DEL MODAL */
/* ============================= */

/* Botón flotante para abrir la revista */
.open-magazine-button {
    position: fixed;
    z-index: 200;
    width: 30px;
    height: 30px;
    bottom: 20px;
    left: 10px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(63, 66, 87, 0.4);
    border-radius: 50%;
    background-color: #ff5e3a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}

.open-magazine-button:hover {
    transform: scale(1.1);
}

/* ============================= */
/* 📌 ESTILOS PARA EL MODAL */
/* ============================= */

/* Fondo del modal */
.revista-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.revista-overlay.active {
    display: block;
    opacity: 1;
}

#revista-overlay {
  display: none;
  pointer-events: none;
}

#revista-modal {
  display: none;
  pointer-events: none;
}

/* Contenedor principal del modal */
.revista-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    height: 90%;
    background: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    display: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.revista-modal.show {
    display: flex;
    opacity: 1;
}

/* ============================= */
/* 📌 BOTÓN DE CIERRE */
/* ============================= */
.revista-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff5e3a;
    transition: transform 0.2s ease-in-out;
}

.revista-close-btn:hover {
    transform: scale(1.2);
    color: #d43f2e;
}

/* ============================= */
/* 📌 CONTENIDO DEL MODAL */
/* ============================= */

/* Contenedor de la revista */
.magazine-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1500px;
    align-items: center;
    justify-content: center;
}

/* Portada */
/* Portada */
.magazine-page.cover {
    position: absolute;
    width: 60%;
    max-width: 500px;
    height: 90%;
    max-height: 700px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-size: contain; /* Asegura que toda la imagen sea visible */
    background-repeat: no-repeat; /* Evita la repetición de la imagen */
    background-position: center center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Si estás usando una etiqueta <img> en lugar de background-image */
.magazine-page.cover img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene la imagen completa dentro del contenedor */
    border-radius: 10px;
}


/* Grid de la portada */
.magazine-cover-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(50, 1fr);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 160;
    pointer-events: none;
}


/* Estilo para el título de la revista */
.magazine-title {
    font-family: 'Playfair Display', serif; /* Fuente elegante y clásica */
    font-size: 4rem; /* Tamaño grande y llamativo */
    font-weight: 900; /* Negrita fuerte para impacto */
    text-transform: uppercase; /* Mayúsculas para un look editorial */
    letter-spacing: 3px; /* Espaciado para sensación de lujo */
    color: white; /* Color blanco para contrastar con la portada */
    text-align: center;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);

    z-index: 200;
   
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;

    /* Efecto de superposición con máscara dinámica */
    -webkit-mask-image: none;
    mask-image: none;
    -webkit-mask-position: center top;
    mask-position: center top;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}


/* Efecto al pasar el mouse sobre el título */
.magazine-title:hover {
    text-shadow: 5px 5px 20px rgba(255, 255, 255, 0.9),
                 -5px -5px 20px rgba(0, 0, 0, 0.8);
    transform: translateX(-50%) scale(1.05); 
}



/* ============================= */
/* 📌 BOTONES DE NAVEGACIÓN */
/* ============================= */
.magazine-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.magazine-nav:hover {
    background: rgba(255, 94, 58, 0.8);
    transform: scale(1.1);
}

#prev-page {
    left: 20px;
    z-index: 200;
    display: none; /* No se muestra en la portada */
}

#next-page {
    right: 20px;
    z-index: 200;
}

/* ============================= */
/* 📌 MEDIA QUERIES */
/* ============================= */



/* Evita que la revista se deforme al reducir la ventana */
.revista-modal {
    min-width: 800px;  /* Ancho mínimo para evitar que se deforme */
    min-height: 600px; /* Altura mínima para mantener la proporción */
    max-width: 90vw;   /* Máximo del 90% del ancho de la pantalla */
    max-height: 90vh;  /* Máximo del 90% del alto de la pantalla */
    overflow: hidden;  /* Evita desbordamientos */
}

/* Limitar la portada para que no se deforme */
.magazine-page.cover {
    width: 60%;
    max-width: 1200px;
    height: 90%;
    max-height: 700px;
    background-size: contain; /* Mantiene la proporción exacta sin cortes */
    background-repeat: no-repeat;
    background-position: center;
}

/* Evita que la imagen de la portada se estire o deforme */
#revista-portada {
    background-size: contain; /* Asegura que la imagen siempre se vea completa */
    background-repeat: no-repeat;
    background-position: center;
    width: 40%;
    height: 100%;
    object-fit: cover; /* Mantiene las proporciones sin distorsión */
}

html, body {
    min-width: auto !important;
    width: 100% !important;
    overflow-x: hidden !important;
}



/* ============================= */
/* GRID DE CONTENIDO EN LA PORTADA */
/* ============================= */

/* Contenedor del grid de contenido sobre la portada */
.magazine-cover-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 columnas */
    grid-template-rows: repeat(50, 1fr); /* 50 filas */
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 200;
    pointer-events: none;
    padding: 20px;
    box-sizing: border-box;
}

/* ============================= */
/* Cuadros de Contenido Izquierda */
/* ============================= */

.magazine-cover-left {
    grid-column: 1 / 4; /* Ocupa el 28% del ancho */
    background: rgba(255, 255, 255, 0.15); /* Transparencia entre 10-25% */
    border-radius: 10px;
    padding: 10px;
    text-align: left;
    font-size: 1.3rem;
    font-weight: bold;
    color: black;
    margin-bottom: 10px;
    width: 90%;
    align-self: center;
    pointer-events: auto;
}

/* ============================= */
/* Cuadros de Contenido Derecha */
/* ============================= */

.magazine-cover-right {
    grid-column: 7 / 11; /* Alineado a la derecha */
    background: rgba(255, 255, 255, 0.20); /* Transparencia diferente */
    border-radius: 10px;
    padding: 10px;
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    margin-bottom: 10px;
    width: 90%;
    align-self: center;
    pointer-events: auto;
}

/* ============================= */
/* Ajustes de Separación y Márgenes */
/* ============================= */

/* Espaciado automático de los elementos para evitar la figura de la persona */
.magazine-cover-left:nth-child(odd),
.magazine-cover-right:nth-child(even) {
    margin-top: 20px;
}

/* Asegurar márgenes del título y borde inferior */
.magazine-cover-left:first-child,
.magazine-cover-right:first-child {
    margin-top: 80px; /* Espacio bajo el título */
}

.magazine-cover-left:last-child,
.magazine-cover-right:last-child {
    margin-bottom: 30px; /* Evita que toque el borde inferior */
}

/* ============================= */
/* RESPONSIVE: Ajustar en pantallas pequeñas */



#modelo-portada {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain; /* Evita la distorsión de la imagen */
    display: block;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}









/*  nuevo */


/* Contenedor de la revista */
.magazine-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1500px;
}

.magazine-page {
    width: 40%;
    height: 90%;
    background: white;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 20px;
    padding-bottom: 40px;  /* Espacio para el número de página */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    transform-origin: center;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

/* Estilo para el número de página */
.page-number {
    position: absolute;
    bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

/* Posiciona el número en la esquina izquierda en páginas impares */
.magazine-page:nth-child(odd) .page-number {
    left: 10px;
}

/* Posiciona el número en la esquina derecha en páginas pares */
.magazine-page:nth-child(even) .page-number {
    right: 10px;
}



/* Simulación del doblez en el borde izquierdo y derecho */
.magazine-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0));
    z-index: 1;
}

.magazine-page::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0));
    z-index: 1;
}

/* Efecto de margen en las páginas */
.magazine-page + .magazine-page {
    margin-left: 20px; /* Espaciado entre páginas */
}

/* Efecto al pasar el mouse sobre la página */
/* .magazine-page:hover {
    transform: scale(1.02);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.3);
} */

/* Títulos dentro de la página */
.magazine-page .page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Contenido dentro de la página */
.magazine-page p {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Efecto de páginas opuestas al pasar el mouse */
/* .magazine-page:hover:nth-child(odd) {
    transform: rotateY(-3deg);
}

.magazine-page:hover:nth-child(even) {
    transform: rotateY(3deg);
} */

/* Ajustes para que la primera página comience alineada */
.magazine-container > .magazine-page:first-child {
    margin-left: 5%;
}




/* LOS LAYOUTS */



/* ===== ESTILOS PARA LOS DIFERENTES LAYOUTS ===== */

/* ===== ESTILOS PARA LOS DIFERENTES LAYOUTS ===== */

/* 📌 Layout 1: Imagen grande arriba, texto abajo */
.layout-1 {
    display: grid;
    grid-template-rows: 70% 30%;
    gap: 10px;
    height: 700px;
}

.layout-1 .image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.layout-1 .text {
    font-size: 1rem;
    padding: 10px;
    text-align: justify;
}

/* 📌 Layout 2: Dos imágenes pequeñas y texto */
.layout-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 60% 40%;
    gap: 10px;
    height: 700px;
}

.layout-2 .image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.layout-2 .text {
    font-size: 1rem;
    padding: 10px;
    text-align: justify;
    grid-column: span 2;
}

/* 📌 Layout 3: Imagen a la izquierda y texto a la derecha */
.layout-3 {
    display: grid;
    grid-template-columns: 50% 50%;
    height: 100%;
    gap: 10px;
    height: 700px;
}

.layout-3 .image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.layout-3 .text {
    font-size: 1rem;
    padding: 10px;
    text-align: justify;
}

/* 📌 Layout 4: Cuadrícula de imágenes */
.layout-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    height: 700px;
}

.layout-4 .image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* 📌 Layout 5: Imagen en el fondo con texto superpuesto */
.layout-5 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    height: 700px;
}

.layout-5 .text {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

#revista-close-button {
    width: 80px;
    z-index: 9999;
}
#revista-close-btn {
    z-index: 9999;
}

.comments-list .comment-item {
    padding: 25px;
    border-bottom: 1px solid #e6ecf5;
    background-color: #fafbfd;
    position: relative;
    display: block;
}

/* .top-header-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
 */
  
.top-header-thumb {
    width: 100%;
    height: 440px;  /* Altura fija para evitar que se encoja */
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;  /* Color de fondo en caso de que no haya imagen */
}

.top-header-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

.input-error {
    border: 2px solid red !important;
    background-color: #ffe5e5;
}


.readonly-field {
    background-color: #f0f0f0 !important;
    cursor: not-allowed;
}


.evento-cancelado-overlay-on-eventlist {
    position: absolute;
    top: 0;
    left: 30px;
    width: 96%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 0, 0, 0.418), #ffffff9a);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cancelado-banner-text-on-eventlist {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}



.date-event {
    position: relative; /* 🔑 Necesario para que el overlay se posicione dentro */
}
/* 🔵 Banner azul degradado encima de la fecha */
.postpuesto-banner-on-event-list {
    position: absolute;
    top: -30px;
    left: 0;
    width: 40%;
    height: 220%;
    background: linear-gradient(to right, #007bff75, #ffffff9a);
    color: rgb(0, 0, 0);
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 40px;
    z-index: 0;
    border-radius: 4px 4px 0 0;
    pointer-events: none; /* Para que no interfiera con clics */
}


.fecha-tachada-on-event-list {
    text-decoration: line-through;
    color: red;
    margin-right: 10px;
}







/* Estilo para las fotos de la galería */
/* Estilo para las fotos de la galería */
.photo-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    cursor: pointer; /* Añadir cursor de mano al hacer hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil para resaltar la foto */
}

.photo-item img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    transform: scale(1); /* Para la animación de agrandamiento */
}

.photo-item:hover img {
    transform: scale(1.1); /* Efecto de agrandamiento */
}

/* Overlay oscuro con animación */
.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6); /* Fondo oscuro con opacidad */
    opacity: 0;
    transition: all 0.3s ease;
}

.photo-item:hover .overlay {
    opacity: 1; /* Mostrar overlay al hacer hover */
}

/* Ajustes en el contenido dentro del hover */
.photo-item .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transition: all 0.3s ease;
    transform: translateY(100%); /* Iniciar la animación con el contenido fuera de vista */
}

.photo-item:hover .content {
    transform: translateY(0); /* Traer el contenido hacia arriba cuando se hace hover */
}

/* Estilo de los "likes" y "views" */
.photo-item .post-add-icon span {
    font-size: 14px;
    color: #fff;
}

/* Estilo de los puntos suspensivos en los caption */
.photo-caption {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Control para fotos que ocupan 2 celdas */
.photo-item.col-4-width {
    width: 33.33%; /* Una celda de ancho */
}

.photo-item.col-8-width {
    width: 66.66%; /* Dos celdas de ancho */
}


/* Estilo de los "likes" y "views" */
.photo-item .post-add-icon span {
    font-size: 14px;
    color: #fff;
}

/* Estilo de los puntos suspensivos en los caption */
.photo-caption {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


#miniaturas-slider-fotos {
    display: flex;
    overflow-x: auto; /* Permite el desplazamiento */
    gap: 10px; /* Espacio entre miniaturas */
    max-width: 100%; /* Asegura que no excedan el contenedor */
    scrollbar-width: thin;
}

#miniaturas-slider-fotos .slides-item {
    display: inline-block;
    width: 100px; /* Tamaño máximo para las miniaturas */
    height: 100px; /* Tamaño máximo para las miniaturas */
    position: relative;
    cursor: pointer; /* Cambia el cursor para indicar interactividad */
    transition: transform 0.3s ease; /* Efecto suave al hacer hover */
    width: 100px;
    height: 100px;
    flex: 0 0 auto;
    overflow: hidden;
   
    margin-right: 8px;
}

#miniaturas-slider-fotos .slides-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantener la relación de aspecto */
}

#miniaturas-slider-fotos .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    visibility: hidden;
}

#miniaturas-slider-fotos .slides-item:hover .overlay {
    visibility: visible;
}

#miniaturas-slider-fotos .slide-active {
    border: 3px solid #ffcc00; /* Resaltar la miniatura activa */
}

#miniaturas-slider-fotos::-webkit-scrollbar {
    height: 8px;
}

#miniaturas-slider-fotos::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 5px;
}

#miniaturas-slider-fotos::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}


#miniaturas-slider-fotos .btn-next, #miniaturas-slider-fotos .btn-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
}

#miniaturas-slider-fotos .btn-next {
    right: 10px;
}

#miniaturas-slider-fotos .btn-prev {
    left: 10px;
}


.swiper-slide-active img {
    width: 100%;
}

.replies-list {
    list-style-type: none;
    margin-top: 10px;
    margin-left: 30px;
    padding-left: 15px;
    border-left: 2px solid #ccc;
}

.replies-list .comment-item {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
}


.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-content .modal-header {
    margin-bottom: 20px;
}

.modal-content .upload-photo-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    padding-bottom: 50px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    margin-bottom: 40px;
}

.modal-content .upload-photo-item:hover {
    background-color: #f8f8f8;
}

.modal-content .upload-photo-item svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.modal-content .upload-options-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}


/* Aplica solo al modal de subida de foto */
#update-photo-modal .scrollable-photo-modal {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#update-photo-modal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#update-photo-modal .modal-body {
    overflow-y: auto;
    flex-grow: 1;
    padding: 1rem;
}

/* Aplica solo al modal de subida de foto */
#update-photo-modal .scrollable-photo-modal {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#update-photo-modal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#update-photo-modal .modal-body {
    overflow-y: auto;
    flex-grow: 1;
    padding: 1rem;
}


.choose-photo-container {
    max-height: 400px;  /* Altura máxima */
    overflow-y: auto;   /* Permitir desplazamiento */
    padding-bottom: 20px; /* Espacio adicional */
}


#contenedor-principal-decajaDeComentariosFotos {
    max-height: 300px;
    overflow: hidden; /* PS lo maneja */
    position: relative;
  }
  

  #swiper-wrapper-unique {
    width: 100%;
    max-width: 800px;
    max-height: 532px;
    margin: auto;
  }
  #swiper-wrapper-unique .swiper-slide img {
    max-width: 100%;
    max-height: 532px;
    object-fit: contain;
   
    background: #000;
}

#choose-from-my-photo .modal-dialog {
    max-width: 80vw;
    height: 80vh;
}

#choose-from-my-photo .modal-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

#choose-from-my-photo .choose-photo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: 80vh;
}

.choose-photo-item {
    width: calc(25% - 10px); /* 4 por fila */
    height: 170px;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.choose-photo-item.selected {
    outline: 3px solid #007bff;
    border-radius: 6px;
}


/* Limitar el alto del contenedor de fotos y permitir scroll interno */
.choose-photo-container {
    max-height: 400px;  /* Ajusta según tu diseño */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

/* Evitar scroll duplicado en el modal general */
.modal-body {
    overflow: visible !important;
}


.choose-photo-item {
    width: calc(25% - 16px);
    margin: 8px;
    display: inline-block;
    vertical-align: top;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px;
    transition: border 0.3s;
}

.choose-photo-item:hover {
    border-color: #007bff;
}

#choose-from-my-photo .modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

body.modal-open {
    overflow: hidden;
}

.top-header-author .author-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
    display: block;
}


.avatar {
    width: 132px;               /* o cualquier tamaño deseado */
    height: 132px;              /* igual al ancho para mantenerlo cuadrado */
    border-radius: 100%;         /* círculo perfecto */
    object-fit: cover;          /* recorta para llenar el círculo */
    object-position: center;    /* centra la imagen */
    display: block;
    border: 1px solid #fff;     /* opcional, como estilo de borde */
    background-color: #FDFBEE;  /* opcional, para fondo */
}

.author-thumb {
    width: 40px;         /* o el tamaño que desees */
    height: 40px;        /* igual al width para que sea un círculo */
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    position: relative;
}

.author-thumb .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


.olymp-three-dots-icon {
    width: 16px;
    height: 4px;
    color: black;
    fill: currentColor; /* Esto es lo que faltaba */
    z-index: 1000;
}


.caption-elegante {
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    color: #555;
    position: relative;
    margin-top: 10px;
}

.caption-elegante::before,
.caption-elegante::after {
    content: '';
    display: inline-block;
    width: 25px;
    height: 1px;
    background: #ccc;
    vertical-align: middle;
    margin: 0 10px;
}


#update-photo-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
  }
  
  #update-photo-modal #image-preview {
    max-height: 30vh;
    object-fit: contain;
  }
  

  #choose-from-my-photo .modal-body {
    max-height: 70vh;
    overflow-y: auto;
  }

  #photo-container {
    max-height: 50vh;
    overflow-y: auto;
  }

  #modal-navigation{
    max-height: 10vh;
    overflow-y: auto;
  }





/* PAGINACIÓN ELEGANTE */
.pagination-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
}

.pagination-dot {
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
  color: #ccc;
  user-select: none;
}

.pagination-dot.active {
  color: #007bff;
  font-size: 24px;
  transform: scale(1.3);
  text-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

.pagination-dot:hover {
  color: #0056b3;
  transform: scale(1.1);
}

/* TRANSICIÓN DE FOTOS */
.choose-photo-container.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.choose-photo-container.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease;
}


#pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
  }
  
  #pagination-controls .pagination-dot {
    font-size: 20px;
    color: #bbb;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
  }
  
  #pagination-controls .pagination-dot.active {
    font-size: 26px;
    color: #007bff;
    text-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
    transform: scale(1.2);
  }
  
  #pagination-controls .pagination-dot:hover {
    color: #0056b3;
    transform: scale(1.1);
  }
  
  #pagination-controls .btn {
    font-size: 18px;
    padding: 4px 10px;
  }
  


  .photo-selectable {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
  }

  .photo-selectable.selected {
    border-color: #007bff;
  }

  .photo-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    transform: scale(1.2);
    z-index: 10;
  }

  .preview-item {
    position: relative;
    margin: 10px;
  }
  
  .preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ccc;
  }
  
  .preview-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    padding: 2px 6px;
  }
  

  .photo-album-item {
    height: 460.156px;
  }





/* Contenedor general del modal */
#modal-header-content {
    max-height: 80vh;
    overflow-y: auto;
  
    gap: 16px;
   
  }
  
  /* Cada bloque de foto + inputs */
  #modal-header-content .photo-album-item-wrap {
    width: 23%; /* Aproximadamente 4 por fila */
    min-width: 220px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
 
  }
  
  /* Estructura interna del bloque */
  #modal-header-content .photo-album-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
  }
  
  /* Imagen con tamaño fijo y centrado */
  #modal-header-content .photo-album-item img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* o 'contain' si prefieres mostrar todo */
    object-position: center;
    border-radius: 6px;
    margin-bottom: 10px;
  }
  
  /* Inputs bien distribuidos */
  #modal-header-content .photo-album-item input,
  .photo-album-item textarea,
  .photo-album-item .bootstrap-select {
    margin-bottom: 8px;
  }
  
  /* Ajuste para textarea */
  #modal-header-content .photo-album-item textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 100px;
  }
  
  /* Estilo opcional del selectpicker */
  #modal-header-content .photo-album-item .bootstrap-select {
    width: 100% !important;
  }
  

  #choose-photo-for-album {
    width: 770px;
    max-width: calc(100% - 40px);

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;


    padding-right: 19px;
    background-color: white; /* Asegura que tenga fondo visible */
    border-radius: 8px; /* Opcional */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Opcional para estética */
  }
  

  /* Contenedor general */
/* Contenedor general de la galería de álbumes */
#album-page .photo-album-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px;
  }
  
  /* Cada tarjeta de álbum */
  #album-page .photo-album-item-wrap {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
  }
  
  #album-page .photo-album-item-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  /* Fondo de cada ítem */
  #album-page .photo-album-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
  }
  
  /* Imagen principal */
  #album-page .photo-item img {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
  }
  
  #album-page .photo-item:hover img {
    transform: scale(1.03);
  }
  
  /* Contenido de cada tarjeta */
  #album-page .photo-album-item .content {
    padding: 20px;
    text-align: center;
  }
  
  #album-page .photo-album-item .title.h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    display: block;
    text-transform: capitalize;
  }
  
  #album-page .photo-album-item .sub-title {
    font-size: 0.85rem;
    color: #888;
  }
  
  /* Íconos como like, etc */
  #album-page .photo-item .post-add-icon {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: #e74c3c;
    transition: background 0.3s ease;
  }
  
  #album-page .photo-item .post-add-icon:hover {
    background: rgba(255, 255, 255, 1);
  }
  

  .fixed-sidebar .logo img {
    max-width: 100%;
    height:75px;
    display: inline-block;
    margin-right: 6px;

  }


  .sidebar--small .logo img {
    max-width: auto;
    height: 60px;
    display: inline-block;
    margin-right: 6px;

  }

  
  #photos-container .post-additional-info a:nth-child(1) {
    margin-right:130px; /* ❤️ Me gusta */
  }
  
  #photos-container .post-additional-info a:nth-child(2) {
    margin-right: 70px; /* 💬 Comentarios */
  }
  
  #photos-container .post-additional-info a:nth-child(3) {
    margin-right: 10px; /* 👁 Vistas */
  }
  

  .bonchart-logout-container {
  background: radial-gradient(circle, #f5f6fa 0%, #3f98eb71 50%, #e1dcc0 100%);
  color: #08107b;
  padding: 80px 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-in-out;
  margin: 0 150px;
}

.bonchart-logout-content {
  max-width: 700px;
  margin: 0 auto;
}

.bonchart-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
}

.bonchart-title span {
  color: #dfb226;
}

.bonchart-subtitle {
  font-size: 18px;
  color: #757575;
  margin-bottom: 40px;
}

#bonchartLogo img{
        height: 70px;

}

.friend-header-thumb img {
    width: 100%;
    height: 120px; /* o el valor que tenia la plantilla */
    object-fit: cover;
    object-position: center;
    border-radius: 8px; /* si quieres bordes suaves */
}

.friend-avatar .author-thumb img {
    width: 92px; /* o el tamaño que usaba la plantilla */
    height: 92px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%; /* para que se vea circular */
    border: 3px solid #fff; /* para separarlo visualmente del header */
}


.bg-blue {
    background-color: #36a3f7 !important;
    color: white;
  }
  .bg-success {
    background-color: #28a745 !important;
    color: white;
  }
  .bg-warning {
    background-color: #ffc107 !important;
    color: black;
  }
  







.btn.btn-control:hover {
    transform: scale(1.1);
}

.btn.btn-control.btn-amistad-galeria svg {
    fill: #ffffff;
}


.bonchart-flash {
    animation: flashScale 0.6s ease;
}

@keyframes flashScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.chat-overlay-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #6c5ce7;
    border-radius: 50%;
    padding: 6px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.friend-avatar:hover .chat-overlay-icon {
    opacity: 1;
}


.friend-avatar {
    position: relative;
}



/* animacion de enviar mensaje */


.envio-wrapper {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
  }
  
  .mensaje-sobre, .mensaje-avion {
    font-size: 32px;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  /* Fase 1: aparecer el sobre y subir */
  .sobre-aparece {
    animation: salirSobre 0.8s ease-out forwards;
  }
  
  @keyframes salirSobre {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    100% { transform: translate(-20px, -60px) scale(1.1); opacity: 1; }
  }
  
  /* Fase 2: avión aparece y vuela */
  .avion-vuela {
    animation: vueloAvion 0.5s ease-in forwards;
  }
  
  @keyframes vueloAvion {
    0% { transform: translate(-20px, -60px) scale(1); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(250px, -250px) scale(0.3); opacity: 0; }
  }
  
  
  .mensaje-derecha {
    text-align: right;
    background-color: #e1f5fe;
    border-radius: 12px;
    margin: 10px 0;
    padding: 10px;
}

.mensaje-izquierda {
    text-align: left;
    background-color: #f0f0f0;
    border-radius: 12px;
    margin: 10px 0;
    padding: 10px;
}

/*
.mCustomScrollbar {
    height: 400px; 
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px; 
}
*/

#chat-contenido .mCustomScrollbar {
    max-height: 400px; /* o lo que desees */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    
}

#chat-contenido {
    max-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#contenedor-bienvenida-venue {
    width: 100%;
    min-height: 100vh; /* Para asegurar altura completa de pantalla */
    padding: 20px; /* o lo que necesites */
    box-sizing: border-box; /* Confirmar que tome bien el padding */
  }
  

/* 🔵 Adaptar el contenedor principal */
#contenedor-bienvenida-venue {
    width: 100%;
    min-height: 100vh; /* Ocupa toda la pantalla */
    padding: 20px 15px; /* Más pequeño en móviles */
    box-sizing: border-box;
    background: #f7f9fc; /* Fondo claro para separarlo */
}

/* 🔵 Adaptar los botones */
#contenedor-bienvenida-venue .btn {
    width: 100%; /* Botones ocupan todo el ancho */
    margin-bottom: 15px; /* Espacio entre botones */
    font-size: 1.1rem;
}

/* 🔵 Imágenes al 100% y automáticas */
#contenedor-bienvenida-venue img {
    max-width: 100%;
    height: auto;
}

/* 🔵 Texto */
#contenedor-bienvenida-venue h1, 
#contenedor-bienvenida-venue p {
    word-break: break-word;
}



.registration-login-form {
    margin-top: 10px; /* según la altura del header */
    z-index: 10;
    position: relative;
}

.subsection-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
    color: #2f2f2f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.education-employment-section .col {
    border-right: 1px solid #e6e6e6;
    padding-right: 15px;
}

.education-employment-section .col:last-child {
    border-right: none;
    padding-left: 15px;
}


/* 🔵 estilos para los iconos de redes sociales */

.social-icons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  border-radius: 3px;
  background-color: #f0f0f0;
  color: white;
  font-size: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon.facebook { background-color: #3b5998; }
.social-icon.x { background-color: #000; }
.social-icon.instagram { background-color: #e4405f; }
.social-icon.tiktok { background-color: #000; }
.social-icon.youtube { background-color: #FF0000; }
.social-icon.spotify { background-color: #1DB954; }
.social-icon.whatsapp { background-color: #25D366; }
.social-icon.bonchart { background-color: #ffcc00; color: #333; }

.social-icon:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.social-icon.x {
  background-color: #000; /* negro para X */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  width: 52px;
  height: 52px;
}
.social-icon.x svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.social-icon.tiktok svg {
  width: 52px;
  height: 52px;
}


.fixed-sidebar-left.sidebar--large {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.fixed-sidebar-left.sidebar--large.active {
  transform: translateX(0);
}


.fixed-sidebar-left.sidebar--large {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  z-index: 9999;
  background: #fff;
  overflow-y: auto;
}

.control-block-button .btn i,
.control-block-button .btn svg {
  font-size: clamp(16px, 5vw, 20px);
}






@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}





.profile-menu li {
  margin-right: 10px;
 line-height: 1.6;
  padding-left: 2.5rem;
  
  list-style: none;
}

.profile-menu li a {
    padding: 0.5rem 1rem; /* Base mobile */
}




.profile-menu li a:hover {
  color: #3f51b5;
  text-decoration: none;
}


.author-content {
    margin-left: 8px;
}

.circle-icon {
  width: clamp(40px, 15vw, 60px);
  height: clamp(40px, 15vw, 60px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}


.ui-block.responsive-flex1200 {
  max-width: 1200px;
  margin: 0 auto;         /* Centra el contenido */
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;            /* Asegura que se adapte en móviles */
  box-sizing: border-box;
}



.olymp-three-dots-icon {
    width: 24px;
    height: 24px;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    fill: currentColor;
    color: #333;
}




  /* Para el slider bmagazine */

/* Estilo base (desktop) */
.featured-slider {
  display: flex;
  width: auto;
  height: 400px;
  left: auto;
  position: relative;
  overflow: hidden;
  top: 80px;
}



.event-info-container {
    width: 30%;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centrar los elementos horizontalmente */
    text-align: center; /* Centrar el texto */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    font-family: 'Lora', serif;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 100%, rgba(33, 37, 41, 0.9) 80%, rgba(0, 0, 0, 0.95) 0%);
    
    position: relative;
    overflow: hidden;
    z-index: 19;
}
/* Hover sobre el contenedor */
.event-info-container:hover {
    background: linear-gradient(715deg, rgba(3, 12, 138, 0.95), rgba(0, 0, 0, 0.9));
    transition: background 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: scale(1.02);
}

/* Efecto de luz sutil */
.event-info-container::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 40%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(5, 76, 227, 0.436), transparent);
    animation: subtleGlow 10s infinite alternate ease-in-out;
    z-index:5;
}

/* Animación para efecto de luz */
@keyframes subtleGlow {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(-20px, -20px) rotate(360deg);
    }
}

/* Título del evento (artista principal) */
.event-info h1.event-artists {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffeb3b;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
       z-index:6;
    
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.6), 0 0 5px rgba(255, 165, 0, 0.9);
}

/* Detalles del evento */
.event-info h4.venue-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: #ffffff;
    margin: 10px 0;
    font-weight: bold;
    text-transform: uppercase;
        z-index:6;
    
}

.event-info h5 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    color: #b0bec5;
    margin: 5px 0;
    font-weight: 500;
        z-index:6;
}


/* carrusel */

.flyer-carousel {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 100%, rgba(33, 37, 41, 0.9) 80%, rgba(0, 0, 0, 0.95) 0%);
    flex: 1;
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}


/* Hover sobre el contenedor */
.flyer-carousel:hover {
    background: linear-gradient(75deg, rgba(3, 12, 138, 0.95), rgba(0, 0, 0, 0.9));
    transition: background 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: scale(1.02);
}

/* Efecto sutil de textura animada */
.flyer-carousel::before {
    content: "";
    position: absolute;
    top: 250%;
    left: 550%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(33, 37, 41, 0.4), transparent);
    animation: asyncGlowderecho 12s infinite alternate ease-in-out;
    transform: translate(20%, 20%);
    pointer-events: none;
    z-index: 55;
}

/* Animación asíncrona de resplandor */
@keyframes asyncGlowderecho {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-60%, -60%) scale(1.1);
    }
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Efecto de humo en la parte inferior */
.flyer-carousel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    animation: smokeEffect 10s infinite ease-in-out;
    z-index: 2;
    pointer-events: none;
}





/* Slides */
.flyer-slide {
    width: 70%;
    height: 70%;
    position: absolute;
    top: 5%;
    right: 5%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
    opacity: 0;
    transition: all 0.5s ease;
}

.flyer-slide.center-slide {
    opacity: 1;
    z-index: 3;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Thumbnails */
.thumbnail-carousel {
    position: absolute;
    bottom: 10%;
    right: 0;
    width: 70%;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    padding: 0 10px;
    z-index: 3;
}

.thumbnail-slide {
    width: 10%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 5px;
    box-sizing: border-box; /* Asegura que el borde esté dentro del tamaño */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail-slide.active-thumbnail {
    transform: scale(1.1); /* Ajustar el scale si lo necesitas */
    border: 6px solid rgb(31, 202, 9);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
    box-sizing: border-box; /* Mantiene el borde incluido */
}

.thumbnail-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.thumbnail-slide:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Botones de navegación */
.carousel-button {
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.carousel-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

.carousel-button.left {
    left: 15px;
}

.carousel-button.right {
    right: 25px;
}

.author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}



#event-details-container .avatarFVflyer img {
    border-radius: 50%;
     width: 40px;
    height: 40px;
   object-fit: cover;
   margin-bottom: 10px;
  
}



#event-details-container .avatarFVflyer img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-bottom: 10px;
}

#event-details-container .avatarcommFlyer {

    margin-right: 10px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;

}


/* Top bar solo para móvil */
.floating-top-bar {
   position: relative; /* ✅ Esto permite usar top */
  top: -40px; /* 🔼 Ajusta según lo que necesites subir ✅ Cambia esto: ajústalo a la altura de tu header superior si es fijo */
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 0.5rem 1rem;
      margin-bottom: -30px;
}


.toggle-button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  font-size: 12px;
}

.toggle-button i {
   font-size: 14px;
  margin-right: 5px;
}

.user-profile-info {
  flex: 1;
  text-align: center;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Estilo base de cada opción */
.form-check-input:checked + .form-check-label {
  background-color: #ff5e3a1a;
  border: 1px solid #ff5e3a;
  border-radius: 8px;
  padding: 4px 8px;
  transition: all 0.2s ease;
  font-weight: bold;
  color: #ff5e3a;
}

.form-check-label {
  cursor: pointer;
  transition: all 0.2s ease;
}


.menu-section {
  margin-bottom: 2rem;
}

.menu-section-title {
  font-weight: bold;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  font-size: 1.1rem;
}

.menu-section-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.menu-item {
  background: #fff;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

.menu-item:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.menu-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.menu-item-name {
  font-size: 1rem;
  font-weight: 600;
}

.menu-item-description {
  font-size: 0.85rem;
  line-height: 1.3;
}

.menu-item-tags .badge {
  margin-right: 5px;
  font-size: 0.7rem;
}

#create-menu-item-modal .bg-danger {
    
    background-color: #1a4296ed !important;
  
}

select.form-control:valid {
  border: 2px solid #ff5e3a;
  background-color: #fffaf6;
  color: #333;
  font-weight: bold;
}


#createMenuItemLabel {
    
  
    color: #e8e8e8 !important;
}




.oculto {
  display: none !important;
}



html, body {
  height: 100%;               /* Hace que el body tenga el alto de la ventana */
  margin: 0;                  /* Elimina márgenes por defecto */
  display: flex;              /* Aplica Flexbox en vertical */
  flex-direction: column;     /* Distribuye hijos de arriba a abajo */
}

.main-content-wrapper {
  flex: 1;                    /* Ocupa todo el espacio disponible */
}


footer.footer {
  margin-top: auto;          /* Empuja el footer hacia abajo */
}


 #abrirLoginModal {
      visibility: hidden;
    background: #ff5e3a;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

#abrirLoginModal:hover {
    box-shadow: 0 0 30px 10px rgb(25 255 0 / 40%);
    transform: translateY(-2px);
}



.menu-card {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 12px;
  min-height: 250px;
  background-color: #fff;
  overflow: hidden;
}
.menu-card-image {
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.menu-section-items.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.menu-card {
  border: 1px solid #ddd;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.menu-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.menu-card-image {
  background-size: cover;
  background-position: center;
  height: 180px;
}

.bg-gradient-danger {
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background-color: #fff; /* asegura fondo blanco */
  z-index: 1050;
}


.modal-header .close {
  font-size: 1.5rem;
}

#preview-menu-image {
  height: auto !important;
  aspect-ratio: unset !important;
  padding-top: 56.25%; /* relación 16:9 */
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
}


#preview-menu-image-wrapper {
    max-height: 400px;
    overflow: hidden;
    
}


#menuItemPreviewModal .modal-footer .btn {
       background-color: #9a9fbf;
}



/* ESTILOS PARA EL LOGOUT */

.bonchart-logout-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 60vh;
  text-align: center;
}

.bonchart-logout-content {
  max-width: 600px;
  width: 100%;
  background: linear-gradient(to bottom, #ffffff, #f5f7fa);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.bonchart-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.bonchart-title span {
  color: #ff9800; /* dorado */
}

.bonchart-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.bonchart-logout-content .btn {
  font-size: 1rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
}

.bonchart-quote {
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  color: #333;
}

.bg-facebook {
  background-color: #3b5998 !important;
  color: white !important;
}

.participant-item.selected {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  font-weight: bold;
}

#contenedor-bienvenida-venue section {
    
       height: auto; 

}


#cancel-btn {
        background: #df7e1a;
    
}


#delete-btn {
    
    
}


.flatpickr-current-month {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Espacio entre mes y año */
}

.flatpickr-current-month .numInput.cur-year {
  display: inline-block;
  opacity: 1 !important;
  visibility: visible !important;
  width: 70px !important;
  height: auto !important;
  font-size: 16px;
  font-weight: 500;
  padding: 2px 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 0;
}

.checkbox input[type="checkbox"] {
  position: relative;
  z-index: 1;
}

/* ===== CHAT POPUP: forzar layout por lado y anular floats del theme ===== */
#popup-chat .chat-message-field .author-thumb,
#popup-chat .chat-message-field .chat-message-item { 
  float: none !important;
}

#popup-chat-list { 
  display: flex; 
  flex-direction: column; 
  gap: 10px;
}

/* Cada item es un row flex */
#popup-chat-list li.msg { 
  display: flex; 
  align-items: flex-end;
}

/* Lado del otro = izquierda */
#popup-chat-list li.msg.other { 
  justify-content: flex-start; 
}

/* Mi lado = derecha */
#popup-chat-list li.msg.self  { 
  justify-content: flex-end; 
}

/* Avatar/bubble ordenados por lado */
#popup-chat-list li.msg .author-thumb { 
  width: 32px; height: 32px; flex: 0 0 32px; 
}
#popup-chat-list li.msg.other .author-thumb { order: 0; margin-right: 8px; }
#popup-chat-list li.msg.self  .author-thumb { order: 1; margin-left: 8px; }

#popup-chat-list li.msg .notification-event { 
  max-width: 75%; 
}

#popup-chat-list li.msg.self  .notification-event { text-align: right;  }
#popup-chat-list li.msg.other .notification-event { text-align: left;   }

/* Burbujas */
#popup-chat-list .chat-message-item {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 16px;
  line-height: 1.25;
}
#popup-chat-list li.msg.self  .chat-message-item { background: #6f42c1; color: #fff; }
#popup-chat-list li.msg.other .chat-message-item { background: #f3f4f7; color: #333; }

#popup-chat-list .notification-date { 
  display:block; 
  margin-top:4px; 
  font-size: 11px; 
  opacity:.6; 
}

.unread-badge{
  display:inline-block;
  background:#7b5cd6;       /* morado acorde a tu UI */
  color:#fff;
  border-radius:10px;
  padding:0 6px;
  font-size:11px;
  line-height:16px;
  margin-left:6px;
  vertical-align:middle;
}



















.control-icon.more.opened .more-dropdown { 
  opacity: 1; visibility: visible; pointer-events: auto;
}





/* Separar el contador del nombre (+5~8px) */
#dropDownUsuarioLogueadoMensajes .notification-event .h6.notification-friend + .badge {

  vertical-align: middle;
}

/* Hacer el chip más legible (más grande y texto blanco) */
/* Chip base (una sola vez) */
.badge.bg-purple{
  background:#328467;
  color:#fff;
  font-weight:700;
  font-size:12px;
  line-height:1;
  height:22px;
  min-width:22px;
  padding:2px 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Margen junto al nombre (donde lo necesites) */
#dropDownUsuarioLogueadoMensajes .notification-event .h6.notification-friend + .badge,
#dropDownUsuarioLogueadoMensajesMobile .badge.bg-purple{
  margin-left:8px;
}



/* ========= Friend Requests (móvil) — tarjeta flotante bajo el header ========= */
/* Altura del header; ajústala si tu topbar es distinta */
:root { --hdr-h: 56px; }

@media (max-width: 991px) {

  /* Contenedor de panes: ocupa el viewport y NO empuja el layout */
  header .tab-content.tab-content-responsive{
    position: fixed;
       /* top, right, bottom, left */
    z-index: 4000;
    pointer-events: none;          /* solo el pane capta clics cuando esté abierto */
  }

  /* Backdrop (oscurece fondo y bloquea clics) */
  header .tab-content.tab-content-responsive::before{
    content: "";
    position: fixed;
    inset: var(--hdr-h) 0 0 0;
    background: rgba(0,0,0,.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
  }

  /* Tarjeta */
  header .tab-content.tab-content-responsive .tab-pane{
    display: none;
    width: 70vw;                   /* centrada y con margen lateral */
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    overflow: hidden;
    pointer-events: auto;          /* el pane sí recibe clics */
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease;
  }

  /* Visible (tu JS ya pone .show.active) */
  header .tab-content.tab-content-responsive .tab-pane.show.active{
          display: block;
        opacity: 1;
        transform: none;
        margin-top: 17px;
  }



  /* Ítems compactos y consistentes con desktop */
  #friendrequestslist-mobile.notification-list.friend-requests li{
    display: flex;
    align-items: center;
    padding: 10px 12px;
  }
  #friendrequestslist-mobile .author-thumb{
    width: 40px; height: 40px; flex: 0 0 40px;
    margin-right: 10px;
  }
  #friendrequestslist-mobile .notification-event{
    flex: 1 1 auto; min-width: 0;
  }
  #friendrequestslist-mobile .notification-event .h6.notification-friend{
    display: block; margin: 0 0 2px; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #friendrequestslist-mobile .chat-message-item{
    font-size: 12px; color: #8a8f9c;
  }
  #friendrequestslist-mobile .notification-icon{
    flex: 0 0 auto; display: inline-flex; gap: 8px; margin-left: -100px;
  }

  /* Botón inferior dentro de la tarjeta */
  #ver-todas-solicitudes-mobile.view-all{
    display: block;
    margin: 0;
    border-top: 1px solid rgba(0,0,0,.06);
    border-radius: 0;
    text-align: center;
  }


}



/* Friend Requests: asegurar fondo blanco dentro del panel móvil */
header .tab-content.tab-content-responsive .tab-pane #friendrequestslist-mobile{
  background: #fff;
  margin-bottom: 0;   /* evita un espacio blanco extra al final */
  padding: 0;         /* como en el dropdown de desktop */
}






/* ====== Friend Requests (móvil chico ≤576px) ====== */
@media (max-width: 576px) {
  /* tarjeta un poco más ancha */
  header .tab-content.tab-content-responsive .tab-pane{
    width: 94vw;               /* centrada; NO uses translateX(-80%) */
  }





}


/* Mensajes (móvil) — dropdown cómodo como tarjeta */
@media (max-width: 576px){
  header .control-icon.more .more-dropdown{
    position: fixed;                 /* antes era absolute */
    top: var(--hdr-h);               /* debajo del header */
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 94vw;
    max-height: 60vh;
    overflow: auto;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    z-index: 5000;
  }

  /* fondo blanco del listado */
  #dropDownUsuarioLogueadoMensajesMobile{ background:#fff; margin:0; padding:0; }
}




/* estilo cuando es 0 */
.label-avatar.is-zero { 
  opacity: .6;           /* o un color más suave */
  /* background: #e1e5ee; color: #555;  si quieres cambiar color */
}


.header-responsive .tab-content-responsive { overflow: visible; }
.selectize-dropdown { z-index: 3000; }


@media (max-width: 991.98px){
  .header-responsive .selectize-control{ width:100%; }
  /* si no usas place(), esto ayuda; con place() ya no es crítico */
  .header-responsive .selectize-dropdown{ left:0 !important; width:100% !important; }
}




/* Look del dropdown en mobile (cuando cuelga del body) */
/* Solo para el dropdown móvil */
.selectize-dropdown.w-search-dropdown {
  top: auto !important;
  left: auto !important;
  /* look */
  z-index: 3000;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  overflow: hidden;
}

.selectize-dropdown.w-search-dropdown .selectize-dropdown-content {
  max-height: 60vh;
  overflow-y: auto;
}

/* Mantén tu regla global, pero NO para el buscador del header */
.selectize-dropdown:not(.search-dd) {
  top: 0 !important;
}






.selectize-dropdown .olymp-happy-face-icon{
  height:22px;width:22px;display:inline-block;
}




/* Desktop: flotante */
@media (min-width: 992px){
  #popup-chat {
    position: fixed; right: 16px; bottom: 16px; z-index: 9999;
    max-width: 380px; width: 92%;
  }
  #popup-chat.open-chat { display:block !important; }
  #popup-chat .mCustomScrollbar { max-height: 48vh; overflow: auto; }
}

/* Mobile: ancho del viewport con márgenes */
@media (max-width: 991.98px){
  #popup-chat {
    position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 9999;
  }

}

/* Fallback (opcional) si el theme no alinea .self por defecto */
.notification-list.chat-message li.self .author-thumb { order: 2; margin-left: 8px; }
.notification-list.chat-message li.self .notification-event { text-align: right; }
.notification-list.chat-message .chat-message-item {
  display:inline-block; padding:10px 14px; border-radius:12px; background:#f0f2f5; color:#515365;
}
.notification-list.chat-message li.self .chat-message-item { background:#7c5ac2; color:#fff; }

.icon-status.busy {
  background: #e53935; /* rojo */
  box-shadow: 0 0 0 2px #fff;
}


/* cursor de “clickable” */
#sidebar-right .chat-users li.inline-items { cursor: pointer; }


/* fallback si el theme no lo hace ya */
.notification-list.chat-message li.your-message .author-thumb { float: right; }
.notification-list.chat-message li.your-message .notification-event { text-align: right; }
.notification-list.chat-message li.your-message { background: rgba(0,0,0,0.03); border-radius: 8px; }

/* Modal XL real (más ancho que el .modal-lg de Bootstrap 4) */
.modal-xxl {
  max-width: min(1200px, 96vw);
}

/* ===== Modales anchos (solo Careers y FAQs) ===== */

/* XS y móviles: 90% del viewport */
#careersModal .modal-dialog,
#faqModal .modal-dialog {
  width: 90vw;
  max-width: 90vw;
  margin: 5vh auto;              /* centra y deja aire vertical */
}

#careersModal .modal-content,
#faqModal .modal-content {
  height: 90vh;                  /* 90% de alto visible */
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
}

#careersModal .modal-body,
#faqModal .modal-body {
  overflow: auto;                /* scroll interno */
  -webkit-overflow-scrolling: touch;
}

/* >= 540px: Bootstrap fija 500px; lo anulamos a 90% también */
@media (min-width: 540px) {
  #careersModal .modal-dialog,
  #faqModal .modal-dialog {
    width: 90vw;
    max-width: 90vw;
    margin: 1.75rem auto;
  }
}

/* Ajustes visuales opcionales para headers “stunning” dentro del modal */
#careersModal .stunning-header,
#faqModal .stunning-header {
  position: relative;
  min-height: 180px;
}
#careersModal .stunning-header .stunning-header-content,
#faqModal .stunning-header .stunning-header-content {
  text-align: center;
}
#careersModal .stunning-header-title,
#faqModal .stunning-header-title {
  font-size: 2rem;
}

/* Si tienes un contenedor interno que quieras limitar un poco */
#careersModal .container-careers,
#faqModal .container-careers {
  max-width: 1000px; /* opcional */
}




/* ================= CONTACT MODAL ================= */

/* Estética general */
#contactModal .modal-content{
  border-radius:14px;
  overflow:hidden;
}

/* Altura sin doble scroll */
#contactModal .modal-body{
  max-height:calc(100vh - 72px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

/* Ajustes de espaciado dentro del modal */
#contactModal .medium-padding120{
  padding-top:48px;
  padding-bottom:48px;
}
#contactModal .contact-form-wrap .title{ margin-bottom:.25rem; }

/* Aseguramos el botón de cerrar visible */
#contactModal .icon-close{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
}

/* Desktop / tablets ≥540px: ocupar 90% del viewport */
@media (min-width:540px){
  #contactModal .modal-dialog{
    max-width:90vw;
    width:90vw;
    margin:1.75rem auto;
  }
}

/* Mobile: pantalla completa */
@media (max-width:576px){
  #contactModal .modal-dialog{
    margin:0;
    max-width:100vw;
    width:100vw;
    height:100vh;
  }
  #contactModal .modal-content{
    height:100vh;
    border-radius:0;
  }
  #contactModal .modal-body{
    max-height:calc(100vh - 56px);
  }
}

}
@media (min-width: 540px) {
 #contactModal   .modal-dialog
Specificity: (0,1,0)
{
  max-width: 90%;
  margin: 1.75rem auto;
}}




/* =========================
   Friend Requests + Buscador
   ========================= */







/* ——————————————————————————————————
   Header (tal como ya tenías)
—————————————————————————————————— */
@media (min-width: 1024px) and (max-width: 1092px){
  #logged-in-avatar .author-name,
  #logged-in-avatar .author-subtitle { display: none !important; }
  #logged-in-avatar .author-title { display: none !important; }
  #logged-in-avatar .author-thumb { margin-right: 0 !important; }
}
@media (min-width:800px) and (max-width:1023.98px){
  #logged-in-avatar.inline-items > *{ display:inline-flex !important; }
  #logged-in-avatar .author-thumb{ display:inline-flex !important; width:40px; height:40px; margin-right:8px !important; }
  #logged-in-avatar .author-thumb .avatar{ width:100%; height:100%; object-fit:cover; }
}

/* ——————————————————————————————————
   BONRESP — BASE (solo 1 vez)
—————————————————————————————————— */
/* Bucket para 900–1023 (ejemplo avatar) */
html[data-bp="md-900-1023"]{
  --bp-name: "md-900-1023";
}
html[data-bp="md-900-1023"] #logged-in-avatar{ display:inline-flex !important; align-items:center; }
html[data-bp="md-900-1023"] #logged-in-avatar .author-thumb{
  display:inline-block !important; visibility:visible !important; opacity:1 !important; margin-right:6px !important;
}
html[data-bp="md-900-1023"] #logged-in-avatar.inline-items > *{ display:inline-block !important; }

/* Sidebars grandes — estado base + transición común */
.fixed-sidebar-left.sidebar--large,
.fixed-sidebar-right.sidebar--large{
  position:fixed;
  top:var(--hdr-h,0);
  bottom:0;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  z-index:10040;
  transition:transform .2s ease, opacity .2s ease, visibility .2s ease;
}
.fixed-sidebar-left.sidebar--large{ left:0;  transform:translateX(-100%); }
.fixed-sidebar-right.sidebar--large{ right:0; transform:translateX(100%); }

/* Abiertos por clase o ARIA */
.fixed-sidebar-left.sidebar--large.open,
.fixed-sidebar-left.sidebar--large.is-open,
.fixed-sidebar-left.sidebar--large.active,
.fixed-sidebar-left.sidebar--large.show,
.fixed-sidebar-left.sidebar--large[aria-hidden="false"],
.fixed-sidebar-right.sidebar--large.open,
.fixed-sidebar-right.sidebar--large.is-open,
.fixed-sidebar-right.sidebar--large.active,
.fixed-sidebar-right.sidebar--large.show,
.fixed-sidebar-right.sidebar--large[aria-hidden="false"]{
  visibility:visible; opacity:1; transform:translateX(0); pointer-events:auto;
}

/* Ocultos por ARIA */
#sidebar-left-1[aria-hidden="true"],
#sidebar-right-1[aria-hidden="true"]{ visibility:hidden; pointer-events:none; }

/* Ajustes específicos que pediste */
#sidebar-left-1 { top:0 !important; }       /* el izquierdo pegado arriba */
#sidebar-right-1{ top:0 !important; }    /* el derecho bajo header (si así lo quieres) */

/* ——————————————————————————————————
   LOCK 900–1023: deja ese look tal cual
—————————————————————————————————— */
html[data-bp="md-900-1023"] #custom-header-top-inject .featured-slider{
  display:flex;
  width:91.2%;
  height:400px;
  position:relative;
  overflow:hidden;
  top:80px;
  left:70px;     /* tal como lo dejaste */
  right:70px;
}
html[data-bp="md-900-1023"] #custom-header-top-inject .event-info-container{ width:30%; height:100%; }
html[data-bp="md-900-1023"] #custom-header-top-inject .flyer-carousel{ width:60%; height:100%; }
html[data-bp="md-900-1023"] #custom-header-top-inject .flyer-carousel .flyer-slide{
  width:100%; height:100%; background-size:cover; background-position:center;
}

/* ——————————————————————————————————
   Backdrop sidebars (desktop)
—————————————————————————————————— */
#sidebars-backdrop{
  position:fixed;
  left:0; right:0; top:0; bottom:0;
  background:rgba(0,0,0,0) !important ;
  z-index:10030;
}
#sidebars-backdrop[hidden]{ display:none; }

.featured-slider{
  display:flex;
  width:91.2%;
  height:400px;
  position:relative;
  overflow:hidden;
  top:80px;
  left:70px;     /* tal como lo dejaste */
  right:70px;
}


/* ===== Slider anclado entre sidebars (todas las resoluciones) ===== */



/* Featured slider anclado: riel izquierdo + 70px fijos a la derecha */
#custom-header-top-inject .featured-slider{
  position: relative;
  display: flex;

  /* gap fijo a la derecha */
  --right-gap: 70px;

  /* ancho exacto entre el riel izquierdo y el gap derecho */
  width: calc(100vw - var(--rail-left) - var(--right-gap));
  margin-left: var(--rail-left);
  margin-right: var(--right-gap);

  /* altura a tu gusto (sin margin-top) */
  height: clamp(320px, 42vh, 420px);
  overflow: hidden;
  max-width: none;

  /* por si quedaron reglas viejas con posicionamiento */
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin-top: 0 !important;
}

/* Layout interno: dos columnas que siempre suman el 100% */
#custom-header-top-inject .event-info-container{
  flex: 0 0 30%;     /* fija al 30% del ancho disponible */
  height: 100%;
}
#custom-header-top-inject .flyer-carousel{
  flex: 1 1 auto;    /* ocupa el resto */
  min-width: 0;      /* clave para que no “empuje” el borde derecho */
  height: 100%;
  overflow: hidden;
}

/* por si usas .featured-slider en 900–1023, usa las MISMAS reglas arriba;
   evita duplicar otro bloque que ponga width:% o left/right */
   
   
   #custom-header-top-inject .featured-slider{
  left: auto !important;
  right: auto !important;
  top: auto !important;   /* si hace falta */
}




/* Iniciales ocultas por defecto (fuera del rango) */
#logged-in-avatar .avatar-initials{ display:none; }

/* ===== SOLO 800–1092 px ===== */
@media (min-width:800px) and (max-width:1092.98px){

  /* Contenedor avatar compacto */
  #logged-in-avatar{
    display:inline-flex !important;
    align-items:center;
    gap:8px;
  }
  #logged-in-avatar .author-thumb{
    display:inline-flex !important;
    width:40px; height:40px;
    margin:0 !important;
    position:relative;
  }

  /* Ocultar nombre y ocupación en este rango */
  #logged-in-avatar > a.author-name,
  #logged-in-avatar .author-title,
  #logged-in-avatar .author-subtitle{
    display:none !important;
  }

  /* Mostrar el badge de iniciales solo en este rango */
  #logged-in-avatar.has-initials .avatar-initials{
    display:inline-flex;
    align-items:center; justify-content:center;
    min-width:26px; height:26px; padding:0 8px;
    border-radius:999px;
    font-weight:700; font-size:11px;
    background:#2b2e4a; color:#fff;
    line-height:1;
  }
}

/* 800–1092: avatar sin margen y responsive */
@media (min-width:800px) and (max-width:1092.98px){
  /* Solo la foto principal del avatar (no afecta imágenes del dropdown) */
  #logged-in-avatar .author-thumb > img.avatar{
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin-right: 0 !important; /* quita el margen */
  }

  /* Por si el contenedor tenía margen */
  #logged-in-avatar .author-thumb{
    margin-right: 0 !important;
  }
}

/* Iniciales ocultas fuera del rango */
#logged-in-avatar .avatar-initials{ display:none; }
/* ========= AVATAR SOLO (800–1092): sin nombre/ocupación ========== */
@media (min-width:800px) and (max-width:1092.98px){
  #logged-in-avatar{
    display:inline-flex !important;
    align-items:center;
    gap:8px;
  }
  #logged-in-avatar .author-thumb{
    display:inline-flex !important;
    width:40px; height:40px;
    margin:0 !important; position:relative;
  }
  #logged-in-avatar .author-thumb > img.avatar{
    display:block; width:40px; height:40px;
    object-fit:cover; margin:0 !important;
  }

  /* Oculta textos (nombre y ocupación) */
  #logged-in-avatar > a.author-name,
  #logged-in-avatar .author-title,
  #logged-in-avatar .author-subtitle{
    display:none !important;
  }

  /* Muestra iniciales si existen */
  #logged-in-avatar.has-initials .avatar-initials{
    display:inline-flex; align-items:center; justify-content:center;
    min-width:26px; height:26px; padding:0 8px; border-radius:999px;
    font:700 11px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background:#2b2e4a; color:#fff;
  }
}

/* ========= Ocultar "Find Friends" hasta 1092 ========= */
@media (max-width:1092.98px){
  .link-find-friend{ display:none !important; }
}

/* ========= Ocultar el título (B_MAGAZINE) por debajo de 840 ========= */
@media (max-width:840.98px){
  .header .page-title > *{ display:none !important; }
}

/* ========= HEADER: breakpoint ÚNICO en 768 ========= */
/* >=768: header desktop ON, header responsive OFF */
@media (min-width:768px){
  #site-header-wrap{               /* wrapper desktop */
    display:block !important;
  }
  #site-header-responsive-wrap{    /* wrapper mobile */
    display:none !important;
  }
}

/* <768: header desktop OFF, header responsive ON */
@media (max-width:767.98px){
  #site-header-wrap{ display:none !important; }
  #site-header-responsive-wrap{ display:block !important; }
}

/* ========= Separador para que el contenido no “salte” bajo el header ========= */
.header-spacer{ height:72px; }
@media (max-width:767.98px){
  .header-spacer{ height:56px; }
}

/* Drawer right (responsive) */
#sidebar-right-1-responsive{
  position: fixed; top:0; right:0; bottom:0;
  width: 320px; max-width: 90vw;
  background:#fff; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateX(100%); transition: transform .25s ease;
  z-index: 1205; overflow:auto; -webkit-overflow-scrolling: touch;
}
#sidebar-right-1-responsive.is-open{ transform: translateX(0); }

/* Backdrop */
.rsb-backdrop{
  position: fixed; inset:0; background: rgba(0,0,0,.35);
  z-index: 1200; opacity:0; pointer-events:none; transition: opacity .2s ease;
}
.rsb-backdrop:not([hidden]){ opacity:1; pointer-events:auto; }

/* Bloqueo de scroll */
.no-scroll{ overflow:hidden !important; touch-action:none; }





/* === Breakpoint único: <768 móvil / ≥768 desktop === */

/* Desktop (≥768): sidebars desktop visibles */
@media (min-width:768px){
  #sidebar-right-desktop,
  .fixed-sidebar-left,
  .fixed-sidebar-right,
  aside.sidebar-right-desktop{
    display:block !important;
  }
  /* oculta versiones móviles */
  #sidebar-left-responsive,
  #sidebar-right-responsive,
  .fixed-sidebar-responsive,
  .drawer-backdrop{
    display:none !important;
  }
}

/* Móvil (<768): ocultar sidebars desktop */
@media (max-width:767.98px){
  #sidebar-right-desktop,
  .fixed-sidebar-left,
  .fixed-sidebar-right,
  aside.sidebar-right-desktop{
    display:none !important;
  }
}


:root{ --header-h:56px; --z-fab:1400; --z-rs:1300; --z-backdrop:1295; --dock-w:72px; }

/* FAB (solo <768) */
#chat-fab-mobile{
  position: fixed;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    border: 0;
    border-radius: 0;
    background: #6f42c1;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    display: none;
    z-index: var(--z-fab);
}
#chat-fab-mobile svg{ width:32px; height:32px; fill:white; }
@media (max-width:768px){ #chat-fab-mobile{ display:inline-flex; align-items:center; justify-content:center; } }
@media (min-width:768.01px){ #chat-fab-mobile, #rs-right-small, #rs-right-large, #rs-backdrop{ display:none !important; } }

/* SMALL (dock) – oculto por defecto, sin fondo */
#rs-right-small{
  position:fixed; top:var(--header-h); right:0; bottom:8px;
  width:var(--dock-w);
  display:none;                               /* <- no visible hasta open */
  background:transparent !important;          /* <- sin franja blanca */
  box-shadow:none !important;
  transform:translateX(100%); transition:transform .24s ease;
  z-index:var(--z-rs); overflow:auto; -webkit-overflow-scrolling:touch;
}
#rs-right-small.open{ display:block; transform:translateX(0); top:70px;     width: 70px;     bottom: -10px; }

/* Oculta el título y el botón "cerrar" del head; deja solo el switch (⤢) */
#rs-right-small .rs-head{ position:absolute; inset:auto 4px auto auto; border:0; background:transparent; }
#rs-right-small .rs-head strong{ display:none; }
#rs-right-small #rs-close-small{ display:none; }
#rs-right-small #rs-expand-large{
  background:none; border:0; padding:4px; border-radius:8px; cursor:pointer;
}

/* espacio para la lista (si usas scrollbar interno) */
#rs-right-small .mCustomScrollbar{ height:100%;     background: white;}

/* LARGE (drawer) y backdrop: ocultos por defecto */
#rs-right-large{
  position:fixed; top:0; right:0; bottom:0; width:320px; max-width:92vw; background:#fff;
  display:none; transform:translateX(100%); transition:transform .25s ease;
  z-index:var(--z-rs); overflow:auto; -webkit-overflow-scrolling:touch;
}
#rs-right-large.open{ display:block; transform:translateX(0); }

#rs-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:var(--z-backdrop);
  display:none; opacity:0; pointer-events:none; transition:opacity .2s ease;
}
#rs-backdrop.show{ display:block; opacity:1; pointer-events:auto; }

/* (por si acaso) oculta el legacy si reaparece en móvil */
@media (max-width:1199.98px){
  #sidebar-right-1-responsive, #right-sidebar-backdrop, #chat-toggle-btn { display:none !important; }
}



/* ---- Dock: ajustes finos para el UL que llega de cargarAmigosSidebar ---- */
#rs-right-small .chat-users{           /* anula estilos heredados */
  display:flex; flex-direction:column; align-items:center;
  gap:10px; padding:var(--dock-pad) 6px !important; margin:12px !important;
}
#rs-right-small .chat-users li{        /* quita padding del tema */
  padding:6px 0 !important; list-style:none !important;
}

/* Thumb redondo con fondo (gradient) y sombra sutil */
#rs-right-small .author-thumb{
  width:var(--dock-avatar); height:var(--dock-avatar);
  border-radius:50%; overflow:hidden; position:relative;
  display:grid; place-items:center;
  background:var(--dock-bg, #7c3aed); /* la JS setea esta var o inline bg */
  box-shadow:0 6px 16px rgba(0,0,0,.22);
  transition:transform .12s ease, box-shadow .12s ease;
}

/* Iniciales bien grandes y claras */
#rs-right-small .author-thumb .avatar-fallback{
  width:100%; height:100%;
  display:grid; place-items:center;
  border-radius:50%;
  background:transparent !important;    /* deja ver el gradient del thumb */
  color:#fff; font-weight:700;
  font-size:calc(var(--dock-avatar) * .44);
  letter-spacing:.02em; text-transform:uppercase;
}

/* Hover/focus accesible */
#rs-right-small .inline-items.js-open-chat:focus .author-thumb,
#rs-right-small .inline-items.js-open-chat:hover  .author-thumb{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,.28);
  outline:2px solid rgba(124,58,237,.25);
  outline-offset:2px;
}

/* Dot de estado (cubre 'connected' y 'disconected') */
#rs-right-small .author-thumb .icon-status{
  position:absolute; right:-2px; bottom:-2px;
  width:12px; height:12px; border-radius:50%;
  box-shadow:0 0 0 2px #fff;
  background:#c4c7d4;                   /* off por defecto */
}
#rs-right-small .author-thumb .icon-status.connected{ background:#2ecc71; }
#rs-right-small .author-thumb .icon-status.disconected,
#rs-right-small .author-thumb [data-status="off"]{ background:#c4c7d4; }

/* Si más adelante agregas badge de no-leídos */
#rs-right-small .dock-badge{
  position:absolute; right:-4px; top:-4px;
  min-width:18px; height:18px; padding:0 5px; border-radius:10px;
  font:10px/18px system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#ff5630; color:#fff; box-shadow:0 0 0 2px #fff;
}

:root{ --dock-avatar: 46px; } /* 56→64 o el tamaño que prefieras */

/* ====== Dock (right small) – círculos consistentes ====== */

/* 1) el UL controla el espacio, no los <li> */
#rs-right-small .chat-users{
  display:flex; flex-direction:column; align-items:center;
  gap:12px; padding: var(--dock-pad,10px) 8px; margin:0;
}

/* 2) <li> sin padding/margen que deforme */
#rs-right-small .chat-users li{ padding:0 !important; margin-left:8px !important; outline:none; }

/* 3) contenedor del avatar: SIEMPRE 1:1, tamaño fijo */
#rs-right-small .author-thumb{
  position:relative;
  inline-size: var(--dock-avatar, 56px);
  block-size: var(--dock-avatar, 56px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  background: #e9edf3;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  flex: 0 0 auto;
}

/* 4) imágenes reales llenan el círculo sin deformarse */
#rs-right-small .author-thumb img,
#rs-right-small .author-thumb .avatar{
  width:100%; height:100%;
  object-fit: cover; display:block; border-radius:50%;
}

/* 5) fallback de iniciales: ocupa TODO y pisa tamaños inline del loader */
#rs-right-small .avatar-fallback{
  inline-size:100% !important;
  block-size:100% !important;
  display:grid; place-items:center;
  border-radius:50%;
  font-weight:700;
  line-height:1;
  /* tamaño de letra proporcional, con límites razonables */
  font-size: clamp(14px, calc(var(--dock-avatar,56px) * .42), 24px);
  color:#fff;
  background:
    radial-gradient(120% 120% at 30% 18%, rgba(255,255,255,.20) 0 28%, rgba(255,255,255,0) 29%),
    linear-gradient(135deg, #6f42c1, #4f7cff);
}

/* 6) puntico de estado (opcional) */
#rs-right-small .icon-status{
  position:absolute; right:2px; bottom:2px;
  width:10px; height:10px; border:2px solid #fff; border-radius:50%;
  background:#9aa0a6;
}
#rs-right-small .icon-status.online{ background:#08ddc1; }
#rs-right-small .icon-status.away{   background:#ffb020; }

/* 7) si aparece algún label debajo (HN/ID/etc), lo ocultamos en el dock */
#rs-right-small .dock-label{ display:none !important; }

#rs-right-small .avatar-fallback{
  display:grid; place-items:center;
  inline-size:100% !important; block-size:100% !important;
  border-radius:50%;
  text-transform:uppercase;
  white-space:nowrap;          /* evita dos líneas */
  line-height:1;               /* consistente */
  font-weight:700;
  font-size: clamp(14px, calc(var(--dock-avatar,56px)*.42), 24px);
}

#rs-right-small .author-thumb .avatar-fallback[aria-hidden]{
  display:none !important;
}



/* Contenedor scroll del dock; deja espacio abajo para el botón */
#rs-right-small .dock-scroll{
  height: 100%;
  background: #fff;
  padding: var(--dock-pad,10px) 8px calc(var(--dock-pad,10px) + 56px); /* espacio para el botón */
}

/* Botón flotante dentro del SMALL (abajo-derecha) */
#rs-right-small .dock-expand{
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #6f42c1;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  cursor: pointer;
  z-index: calc(var(--z-rs) + 1); /* por encima de la lista */
}

#rs-right-small .dock-expand .olymp-menu-icon{
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Si aún existe por CSS algún head antiguo, lo ocultamos por si acaso */
#rs-right-small .rs-head{ display:none !important; }



#rs-right-small .dock-scroll { height: 100%; padding-bottom: 72px; }
#rs-expand-fab.dock-expand{
position: absolute;
    right: 0;
    bottom: 10px;
    width: 70px;
    height: 70px;
    border-radius: 0;
    display: inline-grid
;
    place-items: center;
    border: 0;
    background: #ff5e3a;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    z-index: 2;
}
#rs-expand-fab .olymp-menu-icon{ width:22px; height:22px; fill:currentColor; }


/* Drawer large responsive */
#rs-right-large{
  position: fixed; top:0; right:0; bottom:0;
  width: 320px; max-width: 92vw; background: #fff;
  transform: translateX(100%); transition: transform .25s ease;
  z-index: var(--z-rs); box-shadow: -12px 0 28px rgba(0,0,0,.22);
  display: none;
}
#rs-right-large.open{ display:block; transform: translateX(0); top:70px; }

/* área scrollable (deja hueco para la barra inferior) */
#rs-right-large .rs-large-scroll{
  position: absolute; inset: 0 0 64px 0;  /* bottom = alto de la barra */
  overflow: auto; -webkit-overflow-scrolling: touch;
}

/* barra inferior fija */
#rs-right-large .rs-large-bar{
  position: absolute; left:0; right:0; bottom:0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
}

/* buscador */
#rs-right-large .search-friend .form-group{ flex:1; margin:0; }
#rs-right-large .search-friend .form-control{
  width:100%; border:0; background:#f5f6fa; border-radius:10px;
  padding:10px 12px; outline:0;
}

/* iconos */
#rs-right-large .search-friend a{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:10px;
}


/* Avatar base (small + large) */
#rs-chat-dock .author-thumb,
#rs-right-large .author-thumb {
  --av-bg: #6b7280;           /* fallback */
  --av-ring: color-mix(in srgb, var(--av-bg) 70%, #fff 30%);
  --av-shadow: rgba(8, 8, 12, .15);

  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--av-bg);
  box-shadow:
    inset 0 0 0 2px var(--av-ring),
    0 2px 8px var(--av-shadow);
  display: grid;
  place-items: center;
  position: relative;
  color: #fff;
}

/* Iniciales */
#rs-chat-dock .author-thumb .avatar-fallback,
#rs-right-large .author-thumb .avatar-fallback {
  font: 700 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  letter-spacing: .3px;
  user-select: none;
}

/* Punto de estado: pequeño y con borde */
#rs-chat-dock .author-thumb .icon-status,
#rs-right-large .author-thumb .icon-status {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px; height: 12px;
  border: 2px solid #fff;
  border-radius: 9999px;
}

/* Colores de estado (ajusta a tu theme si quieres) */
.icon-status.online      { background: #22c55e; }
.icon-status.away        { background: #f59e0b; }
.icon-status.away.busy   { background: #ef4444; }
.icon-status.status-invisible { background: #94a3b8; }
.icon-status.disconected { background: #cbd5e1; }

/* Hover/focus en los LI para vida */
#rs-chat-dock li.inline-items:focus,
#rs-chat-dock li.inline-items:hover {
  outline: none;
  transform: translateY(-1px);
}


/* Asegura que el avatar no recorte el dot */
#rs-chat-dock .author-thumb,
#rs-right-large .author-thumb {
  position: relative;
  overflow: visible;           /* <- evita que el círculo se corte */
}

#rs-chat-dock .author-thumb,
#rs-right-large .author-thumb {
  position: relative;
  overflow: visible;            /* importante para que no se recorte */
}

#rs-chat-dock .author-thumb .icon-status,
#rs-right-large .author-thumb .icon-status {
  position: absolute;
  top: -3px;                    /* muévelo si quieres más “pegado” */
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  border: 2px solid #fff;       /* aro blanco por encima */
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  z-index: 2;
}

/* Colores por clase (ajústalos a tu theme) */
.icon-status.online            { background:#22c55e; }
.icon-status.away              { background:#f59e0b; }
.icon-status.away.busy         { background:#ef4444; }
.icon-status.status-invisible  { background:#94a3b8; }
.icon-status.disconected       { background:#cbd5e1; } /* “offline” */

#rs-chat-dock .author-thumb,
#rs-right-large .author-thumb { position: relative; overflow: visible; }

#rs-chat-dock .author-thumb .icon-status,
#rs-right-large .author-thumb .icon-status{
  position: absolute;
  top: -3px; left: -3px;         /* ajusta a gusto */
  width: 14px; height: 14px;
  border-radius: 9999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  z-index: 2;
}



/* Tamaños base para “burbujas” y dot */
:root {
  --dock-size: 56px;
  --dock-inner: 48px;
  --dot-size: 16px;
  --dot-ring: 3px;
}

/* Avatar circular con sombra (desktop + responsive) */
#rs-right-small .author-thumb,
.fixed-sidebar-right .chat-users .inline-items .author-thumb {
  position: relative;
  width: var(--dock-size);
  height: var(--dock-size);
  border-radius: 9999px;
  background: var(--av-bg, #8b5cf6);
  display: grid;
  place-items: center;
  box-shadow:
    0 6px 14px rgba(0,0,0,.18),
    inset 0 0 0 2px rgba(255,255,255,.20);
  outline: 2px solid rgba(255,255,255,.65);
  outline-offset: 0; /* crea ese borde blanco “dulce” como en responsive */
}

/* Imagen o fallback centrados y redondos */
#rs-right-small .author-thumb .avatar,
#rs-right-small .author-thumb .avatar-fallback,
.fixed-sidebar-right .chat-users .author-thumb .avatar,
.fixed-sidebar-right .chat-users .author-thumb .avatar-fallback {
  width: var(--dock-inner);
  height: var(--dock-inner);
  border-radius: 9999px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff; /* el JS ya lo fuerza para fallback */
}

/* Dot de presencia, encima del avatar (esquina superior izquierda) */
#rs-right-small .author-thumb .icon-status,
.fixed-sidebar-right .chat-users .author-thumb .icon-status {
  position: absolute;
  top: -4px;
  left: -4px;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 9999px;
  border: var(--dot-ring) solid #fff;   /* anillo blanco */
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  background: #9ca3af; /* default gris */
}

/* Colores de presencia (mantén clases del theme) */
.icon-status.online           { background: #22c55e; }           /* verde */
.icon-status.away             { background: #f59e0b; }           /* ámbar */
.icon-status.away.busy        { background: #ef4444; }           /* rojo */
.icon-status.disconected      { background: #9ca3af; }           /* gris */
.icon-status.status-invisible { background: transparent; box-shadow: inset 0 0 0 2px #9ca3af; }

/* Ajuste de spacing del UL en el panel pequeño de desktop */
.fixed-sidebar-right.sidebar--small .chat-users > li.inline-items {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}


/* ===== Desktop Right Sidebar: look & feel como responsive ===== */
.fixed-sidebar-right .chat-users .inline-items .author-thumb,
.fixed-sidebar-right.sidebar--large .author-thumb {
  /* mismo “molde” que responsive */
  --av-bg: #8b5cf6; /* fallback si no cae ninguna regla de abajo */
  --av-ring: color-mix(in srgb, var(--av-bg) 70%, #fff 30%);
  --av-shadow: rgba(8, 8, 12, .15);

  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--av-bg) !important;             /* << color */
  display: grid;
  place-items: center;
  position: relative;
  color: #fff;
  box-shadow:
    inset 0 0 0 2px var(--av-ring),
    0 2px 8px var(--av-shadow);
  overflow: visible; /* para que no se corte el dot */
}

/* Iniciales legibles y centradas */
.fixed-sidebar-right .author-thumb .avatar-fallback {
  width: 38px; height: 38px; border-radius: 9999px;
  display: grid; place-items: center;
  font: 700 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #fff !important;
}

/* Dot de estado igual al responsive (esquina sup-izq con aro blanco) */
.fixed-sidebar-right .author-thumb .icon-status {
  position: absolute; top: -3px; left: -3px;
  width: 14px; height: 14px; border-radius: 9999px;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  z-index: 2;
}
.icon-status.online      { background: #22c55e; }
.icon-status.away        { background: #f59e0b; }
.icon-status.away.busy   { background: #ef4444; }
.icon-status.disconected { background: #cbd5e1; }

/* ===== Paleta bonita (ciclo por posición) ===== */
.fixed-sidebar-right .chat-users > li:nth-child(6n+1) .author-thumb { --av-bg: #0ea5e9; } /* cyan */
.fixed-sidebar-right .chat-users > li:nth-child(6n+2) .author-thumb { --av-bg: #ec4899; } /* rosa */
.fixed-sidebar-right .chat-users > li:nth-child(6n+3) .author-thumb { --av-bg: #10b981; } /* verde */
.fixed-sidebar-right .chat-users > li:nth-child(6n+4) .author-thumb { --av-bg: #a855f7; } /* púrpura */
.fixed-sidebar-right .chat-users > li:nth-child(6n+5) .author-thumb { --av-bg: #f59e0b; } /* ámbar */
.fixed-sidebar-right .chat-users > li:nth-child(6n+6) .author-thumb { --av-bg: #3b82f6; } /* azul */

/* Hover con un pelín de movimiento */
.fixed-sidebar-right .chat-users > li.inline-items:hover .author-thumb,
.fixed-sidebar-right .chat-users > li.inline-items:focus .author-thumb {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.28), inset 0 0 0 2px var(--av-ring);
  outline: 2px solid color-mix(in srgb, var(--av-bg) 25%, transparent);
  outline-offset: 2px;
}

/* Quita cualquier morado “hardcoded” del theme */
.fixed-sidebar-right .author-thumb[class*="bg-"],
.fixed-sidebar-right .author-thumb { background-image: none !important; }

/* Cuando el panel grande está abierto, el botón no estorba */
.right-panel-open .carousel-button {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}


/* sin JS, usando :has() */
body:has(.fixed-sidebar-right.sidebar--large.open) .carousel-button {
  opacity:0; pointer-events:none; visibility:hidden;
}


/* === Alias: trata .online como .connected en todos los sidebars === */

/* Dock (responsive small) */
#rs-right-small .author-thumb .icon-status.online,
#rs-right-small .author-thumb .icon-status.connected { background: #22c55e; }

/* Desktop small/large */
.fixed-sidebar-right .author-thumb .icon-status.online,
.fixed-sidebar-right .author-thumb .icon-status.connected { background: #22c55e; }

/* Colores por si el theme no los tiene ya */
.icon-status.away { background:#f59e0b; }
.icon-status.disconected { background:#9ca3af; }
.icon-status.status-invisible { background: transparent; box-shadow: inset 0 0 0 2px #9ca3af; }

.icon-status.away{ background:#f59e0b !important; }       /* amarillo */
.icon-status.online{ background:#10b981 !important; }     /* verde */
.icon-status.disconected{ background:#9ca3af !important; }/* gris (sic: clase del theme) */
.icon-status.status-invisible{ background:#6b7280 !important; }

.icon-status.away{ background:#f59e0b !important; }       /* amarillo */
.icon-status.online{ background:#10b981 !important; }     /* verde */
.icon-status.disconected{ background:#9ca3af !important; }/* gris (sic del theme) */
.icon-status.status-invisible{ background:#6b7280 !important; }




/* =========================
   Chat moderno (popup)
   ========================= */
#popup-chat-scroll{ background:#fff; }

#popup-chat-list{
  padding:12px 14px 88px;
  display:flex; flex-direction:column; gap:6px;
}

#popup-chat-list li{
  display:flex; align-items:flex-end; gap:8px;
  /* separación vertical por si hay grupos */
  margin-top:2px;
}

/* Mensajes míos a la derecha */
#popup-chat-list li.self{ flex-direction:row-reverse; }

/* Avatar */
#popup-chat-list .author-thumb{
  width:36px; height:36px; border-radius:999px;
  overflow:hidden; flex:0 0 36px;
}
#popup-chat-list .author-thumb img{ width:100%; height:100%; object-fit:cover; }

/* Contenedor del bubble + hora */
#popup-chat-list .notification-event{
  max-width:min(600px, 78%);
  display:flex; flex-direction:column; align-items:flex-start;
}
#popup-chat-list li.self .notification-event{ align-items:flex-end; }

/* Bubble */
#popup-chat-list .chat-message-item{
  display:inline-block;
  padding:10px 13px; line-height:1.25;
  border-radius:18px; background:#f1f5f9; color:#0f172a;
  box-shadow:0 1px 0 rgba(0,0,0,.05);
  word-break:break-word; white-space:pre-wrap;
}
#popup-chat-list li.self .chat-message-item{
  background:#6d28d9; color:#fff;  /* tu morado, cámbialo si quieres */
}

/* Hora */
#popup-chat-list .notification-date{
  font-size:12px; color:#94a3b8; margin-top:4px; user-select:none;
}

/* Agrupación visual (1er/medio/último de bloque) */
#popup-chat-list li.group-start .chat-message-item{
  border-bottom-left-radius:8px;
}
#popup-chat-list li.group-middle .chat-message-item{
  border-radius:14px;
}
#popup-chat-list li.group-end .chat-message-item{
  border-top-left-radius:8px;
}

/* Equivalentes para mis mensajes (lado derecho) */
#popup-chat-list li.self.group-start .chat-message-item{
  border-bottom-right-radius:8px;
}
#popup-chat-list li.self.group-end .chat-message-item{
  border-top-right-radius:8px;
}

/* Oculta avatar/hora dentro del mismo bloque para compactar */
#popup-chat-list li.group-middle .author-thumb,
#popup-chat-list li.group-end   .author-thumb{ visibility:hidden; }
#popup-chat-list li.group-middle .notification-date{ display:none; }

/* ===== Popup chat: layout moderno y estable ===== */
#popup-chat #popup-chat-list > li{
  display:flex !important;
  align-items:flex-end !important;
  gap:8px !important;
  padding:9px 25px;                 /* respeta el padding del tema */
}

/* Mis mensajes a la derecha (avatar a la derecha, burbujas a la derecha) */
#popup-chat #popup-chat-list > li.self{
  flex-direction:row-reverse !important;
}

/* Avatar: bloque fijo, sin floats */
#popup-chat #popup-chat-list > li .author-thumb{
  flex:0 0 36px !important;
  width:36px !important; height:36px !important;
  border-radius:50% !important; overflow:hidden !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  margin:0 6px !important;
  float:none !important;                 /* anula tema viejo */
}

/* Contenedor de burbujas */
#popup-chat #popup-chat-list > li .notification-event{
  max-width:min(600px,78%) !important;
  display:flex !important; flex-direction:column !important;
  align-items:flex-start !important;
  float:none !important;                 /* anula tema viejo */
  padding-left:10px !important;
}
#popup-chat #popup-chat-list > li.self .notification-event{
  align-items:flex-end !important;
  padding-left:0 !important; padding-right:10px !important;
}

/* Mata reglas problemáticas del tema (nth-child alterno) */
#popup-chat .chat-message-field li:nth-child(2n) .author-thumb,
#popup-chat .chat-message-field li:nth-child(2n) .chat-message-item,
#popup-chat .chat-message-field li:nth-child(2n) .notification-event{
  float:none !important;
}

/* Agrupación: oculta avatar intermedio como en la plantilla */
#popup-chat #popup-chat-list > li.group-middle .author-thumb,
#popup-chat #popup-chat-list > li.group-end   .author-thumb{
  visibility:hidden !important;
}
#popup-chat #popup-chat-list > li.group-middle .notification-date{
  display:none !important;
}






/* Contenedor relativo para posicionar el botón */
#popup-chat-form .chat-input-wrap {
  position: relative;
}

/* Asegura espacio para el botón dentro del textarea */
#popup-chat-form textarea#popup-chat-textarea {
  padding-right: 48px;      /* espacio a la derecha para el botón */
  min-height: 44px;         /* cómodo en móvil */
  resize: none;
}

/* Estilos del botón enviar */
#popup-chat-form .chat-send-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;      /* azul bonito */
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37,99,235,.35);
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
}

#popup-chat-form .chat-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37,99,235,.4);
}

#popup-chat-form .chat-send-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(37,99,235,.25);
}

#popup-chat-form .chat-send-btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Animación de envío: cambia el ícono por un spinner si añades .is-sending al form */
#popup-chat-form.is-sending .chat-send-btn svg { display: none; }
#popup-chat-form.is-sending .chat-send-btn::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-right-color: transparent;
  animation: chat-send-spin .7s linear infinite;
}
@keyframes chat-send-spin { to { transform: rotate(360deg); } }

/* Input wrapper places the send button inside the field area */
.chat-input-wrap {
  position: relative;
  padding-right: 44px; /* space for the button */
}

/* Pretty paper-plane send button */
.chat-send-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #6d28d9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(109, 40, 217, .28);
  cursor: pointer;
  transition: transform .08s ease, opacity .2s ease;
  z-index: 2; /* stay above textarea */
}

.chat-send-btn:hover { transform: translateY(-1px) scale(1.03); }
.chat-send-btn:active { transform: translateY(0) scale(0.98); }
.chat-send-btn:disabled { opacity: .5; cursor: default; }

/* Optional: when sending, dim the button slightly */
#popup-chat-form.is-sending .chat-send-btn { opacity: .75; pointer-events: none; }

.chat-input-wrap { position: relative; padding-right: 44px; }
.chat-send-btn {
  position: absolute; right: 8px; bottom: 8px;
  width: 36px; height: 36px;
  border: 0; border-radius: 999px;
  background: #6d28d9; color:#fff;
  display: inline-flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 14px rgba(109,40,217,.28);
  cursor: pointer; transition: transform .08s ease, opacity .2s ease;
  z-index: 1001;               /* <- más alto por si acaso */
  pointer-events: auto;         /* <- por si algún contenedor lo anuló */
}


 #popup-chat .author-thumb .avatar-fallback{
      width:100%; height:100%;
      border-radius:50%;
      display:flex; align-items:center; justify-content:center;
      font-weight:700; font-size:12px; letter-spacing:.5px;
      color:#fff; background:var(--av-bg,#9ca3af);
    }
    
    
    /* ===== Popup Chat: layout de lista y burbujas ===== */
#popup-chat-scroll { background:#fff !important; }

#popup-chat #popup-chat-list{
  padding:12px 14px 88px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:6px !important;
}

/* Fila */
#popup-chat #popup-chat-list > li{
  display:flex !important;
  align-items:flex-end !important;
  gap:8px !important;
  margin-top:2px;
}
#popup-chat #popup-chat-list > li.self{
  flex-direction:row-reverse !important; /* avatar a la derecha */
}

/* Avatar */
#popup-chat #popup-chat-list > li .author-thumb{
  flex:0 0 36px !important;
  width:36px !important;
  height:36px !important;
  border-radius:50% !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 6px !important;
  float:none !important;   /* mata estilos viejos */
  order:initial !important;
}
#popup-chat #popup-chat-list > li .author-thumb img{
  width:100%; height:100%; object-fit:cover;
}

/* Contenedor de mensaje */
#popup-chat #popup-chat-list > li .notification-event{
  max-width:min(600px,78%) !important;
  display:flex !important; flex-direction:column !important;
  align-items:flex-start !important;
  float:none !important;
  padding-left:10px !important;
}
#popup-chat #popup-chat-list > li.self .notification-event{
  align-items:flex-end !important;
  padding-left:0 !important; padding-right:10px !important;
}

/* El theme hacía alternos con nth-child: desactívalos aquí */
#popup-chat .chat-message-field li:nth-child(2n) .author-thumb,
#popup-chat .chat-message-field li:nth-child(2n) .chat-message-item,
#popup-chat .chat-message-field li:nth-child(2n) .notification-event{
  float:none !important;
}

/* Burbujas */
#popup-chat #popup-chat-list .chat-message-item{
  display:inline-block;
  padding:10px 13px; line-height:1.25;
  border-radius:18px; background:#f1f5f9; color:#0f172a;
  box-shadow:0 1px 0 rgba(0,0,0,.05);
  word-break:break-word; white-space:pre-wrap;
}
#popup-chat #popup-chat-list > li.self .chat-message-item{
  background:#6d28d9; color:#fff; /* morado (tú) */
}

/* Hora */
#popup-chat #popup-chat-list .notification-date{
  font-size:12px; color:#94a3b8; margin-top:4px; user-select:none;
}

/* Agrupación (clases que tu JS añade) */
#popup-chat #popup-chat-list > li.group-start .chat-message-item{ border-bottom-left-radius:8px; }
#popup-chat #popup-chat-list > li.group-middle .chat-message-item{ border-radius:14px; }
#popup-chat #popup-chat-list > li.group-end   .chat-message-item{ border-top-left-radius:8px; }
#popup-chat #popup-chat-list > li.self.group-start .chat-message-item{ border-bottom-right-radius:8px; }
#popup-chat #popup-chat-list > li.self.group-end   .chat-message-item{ border-top-right-radius:8px; }
#popup-chat #popup-chat-list > li.group-middle .author-thumb,
#popup-chat #popup-chat-list > li.group-end   .author-thumb{ visibility:hidden !important; }
#popup-chat #popup-chat-list > li.group-middle .notification-date{ display:none !important; }

/* ===== Avatar fallback con iniciales (para self y peer) ===== */
#popup-chat .author-thumb .avatar-fallback{
  width:100%; height:100%;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:12px; letter-spacing:.5px;
  color:#fff; background:var(--av-bg,#9ca3af);
}

/* ===== Barra de entrada con botón de enviar ===== */
#popup-chat .chat-input-wrap{
  position:relative;
  display:flex; align-items:center;
  padding-right:48px; /* deja espacio al botón */
}
#popup-chat #popup-chat-textarea{
  resize:none; min-height:44px; max-height:120px;
}
#popup-chat .chat-send-btn{
  position:absolute; right:8px; bottom:10px;
  width:40px; height:40px; border-radius:50%;
  border:0; outline:0; cursor:pointer;
  background:#1976d2; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 14px rgba(25,118,210,.3);
  transition:transform .08s ease, box-shadow .12s ease, background .12s ease;
  z-index:1001;
}
#popup-chat .chat-send-btn:hover{ transform:translateY(-1px); }
#popup-chat .chat-send-btn:active{ transform:translateY(0); box-shadow:0 3px 8px rgba(25,118,210,.35); }
#popup-chat .chat-send-btn[disabled]{ opacity:.5; cursor:not-allowed; box-shadow:none; }

/* Estado “enviando” (opcional) */
#popup-chat .is-sending .chat-send-btn{ pointer-events:none; opacity:.7; }

/* Burbuja “pending/failed” (opcional, si marcas .pending/.failed desde JS) */
#popup-chat #popup-chat-list > li.pending .chat-message-item{ opacity:.7; }
#popup-chat #popup-chat-list > li.failed  .chat-message-item{
  opacity:.8; background:#fee2e2; color:#7f1d1d;
  border:1px solid #fecaca;
}



/* Badge de no leídos en avatar */
.sidebar .author-thumb,
#right-sidebar .author-thumb,
#popup-chat-list .author-thumb { position: relative; }

.author-thumb .msg-badge{
  position:absolute; right:-2px; bottom:-2px; transform:translate(15%,15%);
  min-width:18px; height:18px; padding:0 6px; border-radius:999px;
  background:#ef4444; color:#fff; font-size:11px; line-height:18px;
  font-weight:700; text-align:center; box-shadow:0 2px 6px rgba(0,0,0,.25);
  z-index:3; display:none;
}
.author-thumb .msg-badge.is-dot{
  width:10px; height:10px; min-width:10px; padding:0; line-height:10px; border-radius:50%;
}
.author-thumb .icon-status{ z-index:2; }


.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  overflow: hidden;
}

.top-header-author .avatar-initials {
  width: 80px;
  height: 80px;
  font-size: 28px;
}

#logged-in-avatar .avatar-initials {
  width: 40px;
  height: 40px;
  font-size: 16px;
}


.top-header-thumb.fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #74b9ff, #0984e3);

  color: white;
  font-size: 48px;
  font-weight: bold;
}


/* Tamaño del círculo grande del header */
.top-header-author .author-thumb {
  width: 132px;
  height: 132px;
  border-radius: 100%;
  border: 6px solid #fff;
  margin: 0 auto;
  overflow: hidden;
  background-color: #FDFBEE; /* fallback del contenedor */
}

/* El span de iniciales dentro del header grande debe ocupar todo */
.top-header-author .author-thumb .avatar-initials {
  width: 100% !important;
  height: 100% !important;
  font-size: 42px; /* ~ 32% de 132; el JS además lo recalcula por si cambia el tamaño */
  font-weight: bold;
}

/* Tamaño del span de iniciales en la topbar (usuario logueado) */
#logged-in-avatar .author-thumb .avatar-initials {
  width: 40px !important;
  height: 40px !important;
  font-size: 16px !important;
  font-weight: bold;
}


.friend-header-thumb { position: relative; }
.friend-header-thumb img { width: 100%; display: block; }


/* Desktop */
@media (min-width: 992px){
  /* margen base para respirar */
  :root { --chat-right-offset: 16px; }

  #popup-chat{
    position: fixed;
    right: var(--chat-right-offset, 16px);
    bottom: 16px;
    z-index: 9999;

    /* que nunca se salga de la pantalla aunque el sidebar sea ancho */
    max-width: min(380px, calc(100vw - var(--chat-right-offset, 16px) - 16px));
    width: 100%;
  }
  #popup-chat.open-chat { display: block !important; }
  #popup-chat .mCustomScrollbar { max-height: 48vh; overflow: auto; }
}

/* Mobile tal como lo tenías */
@media (max-width: 991.98px){
  #popup-chat{
    position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 9999;
  }
}


@media (min-width: 768px) {
    .fixed-sidebar-right {
      position: absolute !important; /* en lugar de 'relative' del theme */
    bottom: 70px !important;       /* en lugar de 'auto' del theme */
        box-shadow: none;
        padding-bottom: 70px;
        border-left: none;
    }
       .fixed-sidebar.right {
        display: block !important ;
    }
    
        #site-header-wrap {
        display: block !important;
    }
    
    .d-none {
    display: block !important;
}
    
    
    
    
}


@media (max-width: 767.98px) {
 .d-block {
    display: block !important;
}
        .fixed-sidebar.fixed-sidebar-responsive, .header-responsive {
        display: block !important;
    }
    
        #sidebar-right-desktop, .fixed-sidebar-left, .fixed-sidebar-right, aside.sidebar-right-desktop {
        display: block !important;
    }
    
        .header-responsive .mobile-app-tabs .nav-link {
        padding: 0 5px;
        
    }
    
    
    
}


/* Left responsive: mobile-only */
@media (max-width: 991.98px){
  /* Drawer grande cerrado por defecto */
  #sidebar-left-1-responsive{
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px; max-width: 90vw;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transform: translateX(-100%) !important;
    transition: transform .25s ease;
    pointer-events: none;
    z-index: 1300;
  }
  /* Abierto cuando el <body> lleva la bandera */
  body.sidebar-left-open #sidebar-left-1-responsive{
    transform: translateX(0) !important;
    pointer-events: auto;
  }
}


@media (max-width: 768px) {
    #fr-mobile-item {
        width: auto;
        left: 40px !important;
    }
    #msg-mobile-item ,#notification-mobile-item, #search-mobile-item{
                left: 20px !important;
        
        
    }
}








/* El slider ocupará siempre todo lo que quede libre entre rail-left y rail-right 
#custom-header-top-inject .featured-slider{

  --right-gap: var(--rail-right, 0px);
  width: calc(100vw - var(--rail-left, 0px) - var(--right-gap));
  margin-left: var(--rail-left, 0px);
  margin-right: var(--right-gap); 
}

*/

@media (max-width: 767.98px){
  #custom-header-top-inject .featured-slider{
    --right-gap: 0px !important;
    margin-right: 0 !important;
    width: calc(100vw - var(--rail-left, 0px)); /* sin gap derecho */
  }
  
  /* Botones de navegación */
.carousel-button {
    position: absolute;
    top: 33%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
}























/* Piso mínimo de ancho de la app */
:root{ --min-app-width: 414px; } /* cámbialo a 420px si quieres */

html, body{
  min-width: var(--min-app-width) !important;  /* evita que “colapse” por debajo */
}

/* Cuando la ventana sea más angosta que el piso, se activa el scroll horizontal */
@media (max-width: 413.98px){
  html, body{ overflow-x: auto; }

  /* Opcional: asegura que drawers/headers fijos no “se corten” */
  #site-header-wrap,
  #site-header-responsive-wrap,
  .fixed-sidebar-left.sidebar--large,
  .fixed-sidebar-right.sidebar--large{
    min-width: var(--min-app-width);
  }
}


#custom-header-top-inject {
    margin-top: 70px !important;

}


/* ====== BMagazine slider layout ====== */
.featured-slider{
  display: flex;
  padding

  align-items: stretch;
}
.event-info-container{
  flex: 1 1 40%;
  min-width: 280px;
  
}
.flyer-carousel{
  flex: 1 1 60%;
}








/* =========================
   VARIABLES BASE (desktop)
   ========================= */
:root{
  /* tamaño de cada miniatura */
  --thumb-w: 116px;
  --thumb-h: 72px;
  --thumb-gap: 12px;

  /* sesgo horizontal del carrusel pequeño en DESKTOP
     (positivo = a la derecha, negativo = a la izquierda) */
  --thumb-center-bias: 0px;

  /* fade en los bordes del viewport del carrusel pequeño (desktop) */
  --thumb-fade-w: 64px;

  /* ancho visual del marco de foco (solo overlay) */
  --focus-w: var(--thumb-w);
}

/* =========================
   LAYOUT DEL SLIDER
   ========================= */
#custom-header-top-inject .featured-slider{
  position: relative;
  display: flex;
  width: calc(100vw - var(--rail-left));
  height: clamp(320px, 42vh, 420px);
  overflow: hidden;
}

#custom-header-top-inject .event-info-container{
  flex: 0 0 30%;
  min-width: 180px;
  container-type: inline-size;
  container-name: info;
}

#custom-header-top-inject .flyer-carousel{
  flex: 1 1 60%;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* necesario para posicionar el carrusel pequeño */
  overflow: hidden;
  /* tu fondo/sombras si los necesitas… */
}

/* =========================
   CARRUSEL PEQUEÑO (desktop)
   ========================= */
#thumbnail-carousel{
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(calc(-50% + var(--thumb-center-bias)));
  width: calc(3 * var(--thumb-w) + 2 * var(--thumb-gap));
  height: var(--thumb-h);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 18;

  /* zona central nítida + desvanecido en bordes */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    transparent var(--thumb-fade-w),
    black var(--thumb-fade-w),
    black calc(100% - var(--thumb-fade-w)),
    transparent calc(100% - var(--thumb-fade-w)),
    transparent 100%
  );
          mask-image: linear-gradient(
    to right,
    transparent 0,
    transparent var(--thumb-fade-w),
    black var(--thumb-fade-w),
    black calc(100% - var(--thumb-fade-w)),
    transparent calc(100% - var(--thumb-fade-w)),
    transparent 100%
  );
}

#thumbnail-carousel .thumb-viewport{
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#thumbnail-carousel .thumb-track{
  display: flex;
  gap: var(--thumb-gap);
  align-items: center;
  height: 100%;
  transition: transform .35s ease;
  will-change: transform;
}

#thumbnail-carousel .thumbnail-slide{
  flex: 0 0 auto;
  width: var(--thumb-w);
  height: 100%;
  background: center / cover no-repeat;
  border-radius: 8px;
  transform: scale(.88);
  opacity: .65;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  transition: transform .3s, opacity .3s, box-shadow .3s;
  cursor: pointer;
}
#thumbnail-carousel .thumbnail-slide.is-center{
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 0 0 3px #2bdcff inset, 0 8px 24px rgba(0,0,0,.45);
}

/* marco de foco (opcional, solo overlay visual) */
#thumbnail-carousel .focus-frame{
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--focus-w);
  height: calc(100% - 6px);
  border-radius: 10px;
  pointer-events: none;
  /* ejemplo: borde suave
  box-shadow: 0 0 0 2px rgba(43,220,255,.5) inset;
  */
}

/* =========================
   TIPOGRAFÍA POR CONTENEDOR
   ========================= */
/* Host del contenedor para .event-info */
#event-info-container { container: info / inline-size; }

/* Consultas por contenedor */
@container info (min-width: 160px){
  .event-info .event-artists{ font-size: clamp(14px, 7cqi, 24px); line-height: 1.15; }
  .event-info .venue-name{    font-size: clamp(13px, 6cqi, 20px); }
  .event-info .event-date,
  .event-info .event-location{ font-size: clamp(11px, 5cqi, 16px); }
}

/* Extras de tipografía */
.event-info *{
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}


/* =========================
   MÓVIL (<= 600px)
   Centrado exacto respecto a #flyer-carousel
   --thumb-width y --thumb-mobile-bias las define JS
   ========================= */
@media (max-width: 600px){
  :root{
    --info-w-mobile: 180px;

    /* alto de miniaturas y fade más sutil en móvil */
    --thumb-h: 64px;
    --thumb-fade-w: 16px;

    /* valores por defecto que JS sobrescribe */
    --thumb-width: 0px;        /* ancho del carrusel pequeño = ancho del flyer */
    --thumb-mobile-bias: 0px;  /* desplazamiento para alinear con centro del flyer */
  }

  #custom-header-top-inject .event-info-container{
    flex: 0 0 var(--info-w-mobile);
    width: var(--info-w-mobile);
    min-width: var(--info-w-mobile);
    padding: 12px 10px;
  }
  #custom-header-top-inject .flyer-carousel{
    flex: 1 1 auto;
    width: auto;
  }

  /* el carrusel pequeño usa el ancho del flyer y sesgo calculado por JS */
  #thumbnail-carousel{
    bottom: 8px;
    left: 50%;
    transform: translateX(calc(-50% + var(--thumb-mobile-bias)));
    width: var(--thumb-width);
    height: var(--thumb-h);
    z-index: 19;

    -webkit-mask-image: linear-gradient(
      to right,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0.85) var(--thumb-fade-w),
      #000 calc(var(--thumb-fade-w) + 2px),
      #000 calc(100% - var(--thumb-fade-w) - 2px),
      rgba(0,0,0,0.85) calc(100% - var(--thumb-fade-w)),
      rgba(0,0,0,0) 100%
    );
            mask-image: linear-gradient(
      to right,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0.85) var(--thumb-fade-w),
      #000 calc(var(--thumb-fade-w) + 2px),
      #000 calc(100% - var(--thumb-fade-w) - 2px),
      rgba(0,0,0,0.85) calc(100% - var(--thumb-fade-w)),
      rgba(0,0,0,0) 100%
    );
  }

  /* viewport y pista en móvil */
  #thumbnail-carousel .thumb-viewport{ width:100%; height:100%; overflow:hidden; }
  #thumbnail-carousel .thumb-track{ gap: var(--thumb-gap); height:100%; }
}


#thumbnail-carousel { pointer-events: auto; }
#thumbnail-carousel .focus-frame { pointer-events: none; }







/* ===== THUMB RIBBON DESKTOP/TABLET (≥601px) ===== */
@media (min-width: 601px){
  :root{
    /* un poco más grandes en desktop */
    --thumb-w: 140px;
    --thumb-h: 84px;
    --thumb-gap: 12px;
    --thumb-fade-w: clamp(48px, 6vw, 120px);
  }

  /* el carrusel pequeño llena el ancho visible del flyer */
  #custom-header-top-inject .flyer-carousel{
    position: relative; /* asegura posicionamiento del hijo absoluto */
    overflow: hidden;
            right: 70px;
  }

  #thumbnail-carousel{
    position: absolute;
    bottom: 8%;
    left: 0;                 /* ocupar todo el ancho del flyer */
    right: 0;
    transform: none;         /* quitamos el translateX(-50%) de mobile */
    width: 100%;
    max-width: 100%;
    height: var(--thumb-h);
    padding-inline: clamp(8px, 2vw, 24px); /* pequeño “margen” interno */
    z-index: 18;

    /* fade en bordes para desktop */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      black var(--thumb-fade-w),
      black calc(100% - var(--thumb-fade-w)),
      transparent 100%
    );
            mask-image: linear-gradient(
      to right,
      transparent 0,
      black var(--thumb-fade-w),
      black calc(100% - var(--thumb-fade-w)),
      transparent 100%
    );
  }

  #thumbnail-carousel .thumb-viewport{
    width: 100%;
    height: 100%;
    overflow: hidden;        /* la ventana “recorta” */
  }

  #thumbnail-carousel .thumb-track{
    display: flex;
    align-items: center;
    gap: var(--thumb-gap);
    height: 100%;
    transition: transform .35s ease;
    will-change: transform;
  }

  #thumbnail-carousel .thumbnail-slide{
    flex: 0 0 auto;
    width: var(--thumb-w);
    height: 100%;
    border-radius: 8px;
    background: center/cover no-repeat;
    transform: scale(.9);
    opacity: .7;
    box-shadow: 0 3px 10px rgba(0,0,0,.35);
    transition: transform .3s, opacity .3s, box-shadow .3s;
    cursor: pointer;
  }
  #thumbnail-carousel .thumbnail-slide.is-center{
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 3px #2bdcff inset, 0 8px 24px rgba(0,0,0,.45);
  }
  
  .carousel-button.right {
    right: 95px;
}
}






/* LEFT DRAWER responsive */
#sidebar-left-1-responsive.fixed-sidebar-left.sidebar--large{
  position: fixed; top: 0; left: 0;
  height: 100vh;
  width: min(88vw, 320px);
  max-width: 92vw;
  transform: translateX(-100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s;
  z-index: 1500;
}

/* Abierto cuando el body tiene la clase */
body.sidebar-left-open #sidebar-left-1-responsive{
  transform: translateX(0);
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: transform .28s ease, opacity .2s ease;
}

/* Bloquear scroll y backdrop */
body.sidebar-left-open{ overflow: hidden; }
.sidebar-left-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1490;
}
body.sidebar-left-open .sidebar-left-backdrop{
  opacity: 1; visibility: visible; pointer-events: auto;
}







/* LEFT responsive: cerrado por defecto */
#sidebar-left-1-responsive{
  position: fixed;           /* se saca del flujo */
  top: 0; left: 0;
  height: 100vh;
  width: min(340px, 92vw);
  max-width: 92vw;
  z-index: 20000;
  transform: translateX(-100%) !important; /* fuera de pantalla */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s;
}

/* Abierto cuando el body tiene la clase */
body.sidebar-left-open #sidebar-left-1-responsive{
  transform: translateX(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: transform .28s ease, opacity .2s ease;
}

/* Backdrop del panel (lo crea el JS con id #leftbackdrop) */
#leftbackdrop{
  position: fixed; inset: 0;
  background: rgba(17,24,39,.45);
  z-index: 1999;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
body.sidebar-left-open #leftbackdrop{
  opacity: 1; visibility: visible; pointer-events: auto;
}
/* ===== FIX: Left sidebar responsive ===== */
@media (max-width: 991.98px){
  /* base = cerrado */
  #sidebar-left-1-responsive{
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    height: 100vh !important;
    width: min(340px, 92vw) !important;
    max-width: 92vw !important;
    z-index: 20000 !important;
    transform: translateX(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .28s ease, opacity .2s ease !important;
  }
  /* abierto por clase/aria/data */
  body.sidebar-left-open #sidebar-left-1-responsive,
  #sidebar-left-1-responsive[aria-hidden="false"],
  #sidebar-left-1-responsive[data-open="1"]{
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* overlay */
  #sidebar-left-overlay{
    position: fixed !important; inset: 0 !important;
    background: rgba(0,0,0,.35) !important;
    z-index: 19999 !important;
    opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
    transition: opacity .25s ease !important;
  }
  body.sidebar-left-open #sidebar-left-overlay{
    opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
  }
}





/* ===== Left responsive: avatar + status dot (solo mobile) ===== */
/* ===== Puntito de estado SOLO en responsive (<=1199.98px) ===== */
@media (max-width:1199.98px){

  /* El panel ya lo tienes; nos centramos en el avatar + dot */
  #sidebar-left-1-responsive .author-thumb{
    position: relative;
    overflow: visible !important;   /* que no recorte el dot */
    isolation: isolate;             /* crea su propio stacking context */
    width: 44px; height: 44px;
  }

  #sidebar-left-1-responsive .author-thumb .avatar{
    position: relative; z-index: 1; /* la foto debajo del dot */
    display: block !important;
    width: 44px; height: 44px;
    border-radius: 9999px; object-fit: cover;
    margin-right: 0 !important;
  }

  /* Anula reglas del tema (que lo ponen en top/left y tamaño 6–8px) */
  #sidebar-left-1-responsive .author-thumb .icon-status{
    top: auto !important;
    left: auto !important;
  }

  /* Estilo final: bottom-right + aro blanco + tamaño visible */
  #sidebar-left-1-responsive .author-thumb .icon-status{
    position: absolute !important;
    
    left: -10px !important; 
    top: -10px !important;
    transform: translate(35%, 35%); /* lo sacamos un pelín hacia afuera */
    width: 14px !important;
    height: 14px !important;
    border-radius: 9999px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15) !important;
    z-index: 5 !important;          /* y ahora sí, por encima de la foto */
    display: block !important;
    opacity: 1 !important;
    pointer-events: none;
  }

  /* Colores como el dock/chat (ojo 'disconected' del tema) */
  #sidebar-left-1-responsive .author-thumb .icon-status.online           { background: #10b981 !important; }
  #sidebar-left-1-responsive .author-thumb .icon-status.away             { background: #f59e0b !important; }
  #sidebar-left-1-responsive .author-thumb .icon-status.disconected      { background: #9ca3af !important; }
  #sidebar-left-1-responsive .author-thumb .icon-status.status-invisible { background: #e5e1e3 !important; }

  /* Si usas la clase 'connected', lo hacemos un pelín mayor */
  #sidebar-left-1-responsive .author-thumb .icon-status.connected{
    width: 18px !important;
    height: 18px !important;
    box-shadow: 0 0 0 2px #fff !important;
  }
}



/* Solo uno visible, según data-avatar-mode */
#sidebar-left-1-responsive .author-thumb[data-avatar-mode="initials"] img.avatar{ display:none !important; }
#sidebar-left-1-responsive .author-thumb[data-avatar-mode="photo"]    .avatar-initials{ display:none !important; }










/* Chat Status (solo en el left responsive) */
@media (max-width:1199.98px){
  #sidebar-left-1-responsive .chat-settings--mobile{
    margin-top: 6px;
  }
  #sidebar-left-1-responsive .chat-settings--mobile li{
    list-style: none;
  }
  #sidebar-left-1-responsive .chat-settings--mobile a{
    display: flex;
    align-items: center;
    gap: 12px;                     /* espacio entre punto y texto */
    min-height: 48px;              /* área táctil ≥ 44px */
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
  }
  #sidebar-left-1-responsive .chat-settings--mobile a:hover,
  #sidebar-left-1-responsive .chat-settings--mobile a:focus-visible{
    background: #f1f5f9;           /* feedback visual */
    outline: none;
  }
  #sidebar-left-1-responsive .chat-settings--mobile a:active{
    transform: translateY(.5px);
  }

  /* el puntito un poco más grande */
  #sidebar-left-1-responsive .chat-settings--mobile .icon-status{
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 9999px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.10);
  }
}

@media (max-width:1199.98px){
  #sidebar-left-1-responsive .chat-settings--mobile a.is-current{
    background: #eef2ff;
    font-weight: 600;
  }
}

@media (max-width:800px){
#custom-header-top-inject {
  
    margin-bottom: -50px;
}
}

@media (min-width:800.77px){
#custom-header-top-inject {
  
    margin-bottom: -90px;
}
}



.date-time-picker,
.date-time-picker .input-group-addon,
.date-time-picker label { cursor: pointer; }


.plain-label {
  font-size: 12px;
  line-height: 1.2;
  color: #9e9e9e;
}
/* ====== Bloque Hora (24h) + Equivalente (12h) ====== */

/* layout del grupo */
#flyer-time-row.time-row { margin-bottom: 1rem; }
#flyer-time-row .form-group.label-floating { margin-bottom: 0; }

/* --- Tarjeta input 24h (azul) --- */
.time-card {
  border: 1px solid rgba(16, 163, 245, 0.25);
  border-left: 4px solid #10a3f5;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16,163,245,0.06), rgba(16,163,245,0.03));
  padding: 14px 16px;
}
.time-card .control-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.time-card .form-control[type="time"]{
  height: 42px;
  line-height: 42px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 6px 10px;
  color: #0f172a;
  background-color: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.time-card .form-control[type="time"]:focus {
  outline: none;
  border-color: #10a3f5;
  box-shadow: 0 0 0 3px rgba(16,163,245,.15);
}
.time-card .help-block {
  display: block;
  margin-top: 6px;
  color: #667085;
}

/* --- Tarjeta equivalente 12h (morado) --- */
.hora12-card {
  border: 1px solid rgba(93, 82, 228, 0.25);
  border-left: 4px solid #5d52e4;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(93,82,228,0.06), rgba(93,82,228,0.03));
  padding: 14px 16px;
  color: #2d2d2d;
}
.hora12-title {
  font-weight: 800;
  font-size: 1.125rem;  /* ~18px */
  line-height: 1.2;
  color: #5d52e4;
  margin-bottom: 4px;
}
.hora12-note { color: #667085; }

/* Responsive: separa verticalmente cuando apilan */
@media (max-width: 767.98px) {
  #flyer-time-row > [class*="col-"] + [class*="col-"] { margin-top: 12px; }
}

/* pulso sutil al actualizar */
.hora12-title.pulse { animation: horaPulse .4s ease; }
@keyframes horaPulse {
  0% { transform: scale(1); }
  50%{ transform: scale(1.02); }
  100%{transform: scale(1); }
}


.avatar-initials {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #0a3d62; background: #e0f2ff;
  text-transform: uppercase; letter-spacing: .5px;
}
.avatarcommFlyer { display:none; } /* ocultamos el img placeholder si usas el de iniciales */


@media (max-width: 767.98px) {
   #event-modal .modal-content {
    margin: 0% auto;
    padding: 1px;
    border: 1px solid #888;
    width: 95%;
    max-width: 92%;
    background-color: white;
    z-index: 1060;
}



#event-details-container article {
    border-radius: 30px;
    box-shadow: 0 0 20px 2px rgb(16 183 237 / 30%);
    margin-bottom: 60px;
    margin-top: 40px;
    width: 130%;
    left: -15%;
}


.sorting-item {
    flex: 1 1 calc(50% - 8px);
    box-sizing: border-box;
    margin-bottom: 6px;
}



}
    

@media (max-width: 600.98px) {
    
    .sorting-item {
       flex: 1 1 calc(90% - 16px);
    box-sizing: border-box;
    margin-bottom: -5px;
       margin-top: 4px;
}





}


/* ====== MOBILE: fila con espacio entre items (<=480px) ====== */
@media (max-width: 480px) {

  /* Sobrescribe el flex-direction: column */
  .blog-post-v1 .post-additional-info {
    display: flex;                      /* ya lo tienes, lo reafirmamos */
    flex-direction: row !important;     /* <-- forzamos fila */
    align-items: center;
    justify-content: space-between;     /* reparte espacio entre los 3 */
    gap: 12px;                          /* separación entre items */
    padding: 10px 12px;                 /* un poco más compacto en mobile */
    border-top: 1px solid #e6ecf5;      /* por si el tema lo quita */
    flex-wrap: nowrap;                  /* una sola línea */
  }

  /* Normaliza hijos (mezcla de <li> y <div>) para que alineen bonitos */
  .blog-post-v1 .post-additional-info > * {
    display: inline-flex;               /* icono + número en línea */
    align-items: center;
    gap: 6px;                           /* espacio icono-número */
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;                     /* que no se estiren raro */
    min-width: 0;                       /* evita overflow por textos largos */
  }

  /* Reparte el ancho de manera pareja entre los 3 bloques */
  .blog-post-v1 .post-additional-info li,
  .blog-post-v1 .post-additional-info .comments-shared,
  .blog-post-v1 .post-additional-info .views-shared {
    flex: 1 1 0;                        /* cada uno ocupa ~1/3 */
    justify-content: center;            /* centra icono+conteo en su tercio */
  }

  /* Ajustes visuales menores */
  .blog-post-v1 .post-additional-info img,
  .blog-post-v1 .post-additional-info i {
    vertical-align: middle;
  }
}
  
  
 /* esto es para los eventos en favorite page */
 /* ====== Base (≥1200px aprox.) ====== */
.event-item{
  display:grid;
  grid-template-columns: 100px 1.3fr 1fr 1fr auto auto; /* fecha | meta | detalles | ubicación | assist | acciones */
  align-items:center;
  gap:24px;
  padding:30px;
  border-bottom:1px solid #e6ecf5;
  box-sizing:border-box;
  width:100%;         /* <-- NO usar calc(100vw - 30px) */
  max-width:100%;
}

/* Asegura que el texto pueda encoger y no desborde */
.event-item > *{ min-width:0; }
.event-item .title, 
.event-item .details, 
.event-item .location{ overflow:hidden; text-overflow:ellipsis; }

/* Botonera */
.event-item .actions{
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
  justify-content:flex-end;
}

/* Avatar + nombre en meta */
.event-item .meta{
  display:flex;
  align-items:center;
  gap:12px;
}

/* “Will Assist” bloque estrecho */
.event-item .assist{ white-space:nowrap; }

/* Fecha compacta */
.event-item .date-event{ text-align:center; }

/* ====== ≤1199px ====== */
@media (max-width: 1199.98px){
  .event-item{
    grid-template-columns: 90px 1.1fr 1fr 0.9fr auto auto;
    gap:20px;
  }
}

/* ====== ≤1024px ====== */
@media (max-width: 1024px){
  .event-item{
    grid-template-columns: 80px 1.2fr 1fr auto; /* reducimos columnas visibles */
    grid-template-areas:
      "date meta meta actions"
      "date details location actions"
      "date assist  location actions";
  }
  .event-item .date-event{ grid-area: date; }
  .event-item .meta{ grid-area: meta; }
  .event-item .details{ grid-area: details; }
  .event-item .location{ grid-area: location; }
  .event-item .assist{ grid-area: assist; }
  .event-item .actions{ grid-area: actions; align-self:start; }
}

/* ====== ≤800px ====== */
@media (max-width: 800px){
  .event-item{
    grid-template-columns: 80px 1fr; 
    grid-template-areas:
      "date meta"
      "date details"
      "date location"
      "date assist"
      ".    actions";
    gap:16px 18px;
  }
  .event-item .actions{ justify-content:flex-start; flex-wrap:wrap; }
}

/* ====== ≤640px (móvil) ====== */
@media (max-width: 640px){
  .event-item{
    display:grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "date"
      "meta"
      "details"
      "location"
      "assist"
      "actions";
    gap:14px;
    padding:20px;
    text-align:left; /* evita centrarlo todo; es más legible */
    width:100%;      /* ¡nada de calc(100vw - 30px)! */
    max-width:100%;
  }

  .event-item .date-event,
  .event-item .meta,
  .event-item .details,
  .event-item .location,
  .event-item .assist{ text-align:left; }

  .event-item .actions{
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-start;
  }

  /* Botones responsivos */
  .event-item .actions .btn{
    flex:1 1 auto;                /* se reparten el ancho */
    min-width: 140px;             /* para que no queden demasiado chicos */
  }
}

 
  
