.hacienda-btn {
    font-family: 'Cinzel-Regular' !important;
    background-color: #672100 !important;
    color: #FFFFFF !important;
    padding: 15px 20px !important;
    border: 1px solid #672100 !important;
    transition: 0.2s !important;
}

.hacienda-btn:hover {
    background-color: #FFFFFF !important;
    color: #672100 !important;
    transition: 0.2s !important;
}

.hacienda-img {
    background-position: center center !important;
    background-size: cover;
    width: auto;
    height: 300px;
    margin: 0% 5%;
}

.home-widget {
    scroll-margin-top: 110px;
}

.more-btn {
    display: flex;
    flex-wrap: wrap;
    /* Permite que los botones se muevan a la siguiente línea si es necesario */
    gap: 10px;
    /* Espacio entre los botones */
}

.section-rc {
    padding-bottom: 5%;
    scroll-margin-top: 120px;
}

.section-rc2 {
    scroll-margin-top: 120px;
}

.homes-img {
    width: 100%;
    height: 350px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.adjust-text-hacienda {
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Ajustar el tamaño de lkos textos de cabecera segun el ancho de la pantalla en la que se visualiza */
}

.happ-image {
    object-fit: contain;
    max-height: 550px;
    width: auto;
    margin: 0 auto;
    cursor: zoom-in;
}

.modal-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.rc-site-name {
    color: #672100;
    font-size: 25px;
}

.rc-site-schedule {
    font-style: italic;
}

.rc-site-description {
    color: #672100;
    text-align: justify;
}

/* En móviles, ocupa toda la pantalla en horizontal */
@media (max-width: 600px) {
    .more-btn {
        display: flex;
        flex-wrap: wrap;
        /* Permite que los botones se muevan a la siguiente línea si es necesario */
        gap: 10px;
        /* Espacio entre los botones */
        margin-left: 15px;
    }

    .description_rc {
        font-size: 14px;
    }

    .titlerevenuecenter {
        font-size: 35px;
    }

    .section-rc {
        padding-bottom: 15%;
        scroll-margin-top: 75px;
    }

    .section-rc2 {
        margin-left: 1%;
        margin-right: 1%;
        border-bottom: 1px solid #111111;
        padding-bottom: 15%;
    }

    .homes-img {
        height: 250px;
    }
}




/* ADMINISTRACION HAPPENING */
.modal-dialog.modal-full {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 0;
    max-width: none;
}

.modal-content.modal-full {
    width: 100%;
    height: 100%;
    border: none;
    background-color: rgba(0, 0, 0, 0.85);
}

/* Asegura que la imagen este centralizada */
.modal-body.modal-full {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 100%;
}

/* Asegura que el botón quede fuera del flex centering */
.modal-body.modal-full>button {
    position: absolute !important;
    /* para forzar */
    top: 1rem;
    right: 1rem;
    margin: 0 !important;
    z-index: 1055;
    /* superior al modal */
    align-self: flex-start;
    /* no necesario si es absolute */
}


#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* En móviles, la imagen completa ocupa toda la pantalla en horizontal */
@media (max-width: 768px) {
    #modalImage {
        width: 100vw;
        height: 100dvh;
        object-fit: contain;
    }
}




/* Carrusel sin fondo blanco */
#happeningsCarousel {
    background-color: transparent;
}

.carousel-inner {
    background-color: transparent;
    overflow: hidden;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    background-color: transparent;
}

/* Para asegurar que las imágenes ocupen todo el espacio */
.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Control de flechas */
.carousel-control-prev,
.carousel-control-next {
    z-index: 10;
    width: 5%;
}

/* Botones de navegacion de imagenes mas grandes en dispositivos */
@media (max-width: 768px) {

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
        height: 100%;
        background-color: transparent;
        position: absolute;
        top: 0;
        z-index: 10;
    }

    .carousel-control-prev {
        left: 0;
    }

    .carousel-control-next {
        right: 0;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
        background-color: rgba(0, 0, 0, 0.6);
    }
}


/* Transición suave */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgb(160, 105, 34);
    mask-size: 60%;
    mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-size: 60%;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
}

.carousel-control-prev-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a1 1 0 0 1 0 1.415L6.414 8l4.94 4.939a1 1 0 0 1-1.415 1.415l-6-6a1 1 0 0 1 0-1.415l6-6a1 1 0 0 1 1.415 0z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a1 1 0 0 1 0 1.415L6.414 8l4.94 4.939a1 1 0 0 1-1.415 1.415l-6-6a1 1 0 0 1 0-1.415l6-6a1 1 0 0 1 1.415 0z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a1 1 0 0 1 1.415 0l6 6a1 1 0 0 1 0 1.415l-6 6a1 1 0 1 1-1.415-1.415L9.586 8 4.646 3.061a1 1 0 0 1 0-1.415z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a1 1 0 0 1 1.415 0l6 6a1 1 0 0 1 0 1.415l-6 6a1 1 0 1 1-1.415-1.415L9.586 8 4.646 3.061a1 1 0 0 1 0-1.415z'/%3E%3C/svg%3E");
}


/* ADMINISTRACION REVENUECENTERS */

/* Habilita cursor */
.sortable-handle {
    cursor: move;
}

/* Cambia el color del acordon sitio */
.accordion-button {
    color: #f8f9fa !important;
    background-color: #53708a !important;
}

/* Estilos de visualizacion de imagen parallax */
#parallaxPreview {
    transition: all 0.3s ease;
    background-color: #f0f0f0;
    background-repeat: no-repeat;
}

#parallaxTitlePreview {
    transition: all 0.3s ease;
    font-size: 2rem;
    text-align: center;
    padding: 0 20px;
}

/* Para ocultar/mostrar la sección parallax según necesidad */
.hide-parallax-section {
    display: none !important;
}

/* Estilos de visualizacion de imagen principal */
/* Estilos para la previsualización de imagen */
.preview-container {
    position: relative;
    background-color: #f8f9fa;
    min-height: 200px;
}

.preview-container::before {
    content: "Vista previa (ancho máximo: 650px)";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    z-index: 0;
    text-align: center;
}

.preview-container img {
    position: relative;
    z-index: 1;
    background-color: white;
    display: block;
    margin: 0 auto;
}

/* Estilos para los botones de eliminar sitio */
.accordion-button .remove-site-btn {
    pointer-events: auto;
    margin-left: auto;
    z-index: 1;
}

.accordion-button::after {
    margin-left: 0.5rem;
}

.remove-site-btn {
    display: none;
}

.accordion-item:not(:only-child) .remove-site-btn {
    display: inline-block;
}

/* Estilos para el área de arrastrar */
.sortable-handle {
    cursor: move;
}





/* Estilos personalizados para Quill */
.ql-editor {
    min-height: 150px;
    font-family: 'Muli-Regular', sans-serif;
}

.ql-toolbar {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.ql-container {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    height: 200px;
}

.quill-editor-container {
    margin-bottom: 15px;
}

.quill-editor-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}