.row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0px;
    margin-left: 0px;
}

/* Estilos para el avatar de usuario por defecto */
.user-avatar-default {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.user-avatar-default:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.error {
    color: red;
    border-color: red !important;
}

.page-breadcrumb .breadcrumb-link {
    color: black;
    font-size: 1rem;
}

.page-breadcrumb .breadcrumb-item.active {
    font-size: 1rem;
    color: #2b4160;
}

.page-breadcrumb .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: white;
}

.formulario .col-md-4, .formulario .col-md-5, .formulario .col-md-3, .formulario .col-md-6 {
    text-align: left;
}

.formulario .col-md-4, .formulario .col-md-12, .formulario .col-md-5, .formulario .col-md-3, .formulario .col-md-6 {
    margin: .5rem 0px;
}

.btn-primary:hover {
    background: #014db9;
    border-color: #000000b3;
}

.card {
    box-shadow: 0px 0px 0px 3px #2b4160;
}

.form-control, select.form-control, textarea.form-control {
    border: 1px solid #cf9400;
}

.form-control:focus {
    border-color: #cf9400;
    outline: 0;
    box-shadow: 0 0 0 0.25rem #cf940033;
}

input[type=file]  {
    border-color: #cf9400;
    outline: 0;
    box-shadow: 0 0 0 0.1rem #cf940033;
}

#carga {
    background: #ffffffbd;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 99999999999;
    top: 0px;
}

#carga .spinner {
    position: fixed;
    top:40%;
    left: 53%;
}

.carga_modal{
    position: absolute;
    width: 100%;
    background: #ffffffbd;
    height: 100%;
    z-index: 999;
    border-radius: 2rem;
    display: none;
}

.carga_modal .spinner {
    position: fixed;
    top: 40%;
    left: 39%;
}

@media (max-width: 768px) and (min-width: 361px) {
    #carga .spinner {
        left: 38%;
    }
    .carga_modal .spinner {
        left: 35%;
    }

    .opciones-filtros a {
        margin: .5rem !important;
        font-size: 1rem !important;
    }


}

@media (max-width: 360px) {
    #carga .spinner {
        left: 26%;
    }
    .carga_modal .spinner {
        left: 23%;
    }

    .opciones-filtros a {
        margin: .5rem !important;
        font-size: 1rem !important;
    }

    .fechas-evento {
        margin-top: 0px !important;
    }

}

.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
    margin: 20px;
    margin-bottom: 10px;
}

.opcion {
    cursor: pointer;
    margin: 1px;
    font-size: 1rem;
}

.opcion:hover {
    color: #c68e00;
}

.icon:hover {
    color: #c68e00;
    cursor: pointer;
}

a:hover {
    color: #c68e00;
}

.dataTables_info, .dataTables_paginate {
    white-space: normal !important;
}

.labels {
    margin-left: 2px;
    font-size: 1.1rem;
}

.operaciones {
    width: 100% !important;
}

/* modal */

.modal-content {
    border: 3px solid #c68e00;
    border-radius: 1rem;
}

.modal-title {
    font-size: 1.5rem;
}

.close {
    font-size: 2rem;
}

.btn-danger {
    color: #fff;
    background-color: #bb1424;
}

.btn-danger:hover {
    background-color: #db2c3d;
}

.btn-success {
    background-color: #008000;
}

.eliminacion .row {
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.eliminacion textarea{
    margin-left: 5px;
    margin-right: 5px;
}

.eliminacion i{
    font-size: 1.5rem;
    padding: .5rem;
    cursor: pointer;
}

.eliminacion i:hover{
    color: #c68e00;
}

/* consulta de precios clientes */
.consulta {
    margin-bottom: 1rem;
}

.fechas {
    font-size: 1.5rem;
    padding: .2rem;
    cursor: pointer;
    margin-bottom: 6px;
}

.consulta .form-control {
    border: 2px solid #2b4160;
    margin-bottom: 6px;
}

.btn-group-toggle label {
    margin: 5px !important;
}

.formulario hr, .separator {
    border-top: 5px solid rgb(207, 148, 0);
}

.opcion_key i{
    font-size: 30px;
    margin-top: 30px;
    margin-right: 10px;
    cursor: pointer;
}

.tags {
    height: 12rem;
    overflow: scroll;
}

.tags div{
    background: white;
    display: inline-block;
    box-shadow: 1px 1px 1px 0px #0e0c28;
    margin: 4px;
    padding: 2px;
    cursor: pointer;
}


.item-img {
    font-size: 3rem;
    cursor: pointer;
    color: green;
    margin-top: 5px;
}

.foto {
    background: white;
    padding: 12px;
    box-shadow: 0px 0px 1px 0px #0e0c285e;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.foto img{
    width: 100%;
    border: 1px solid #6c757da6;
    height: 240px;
}

.foto i {
    cursor: pointer;
    background: #ffffffa3;
    font-size: 20px;
    padding: 2px;
    border-radius: 5px;
}

.foto i:hover {
    color: #cf9400;
}

.item-img {
    color: #ef172c;
}

.ver {
    position: absolute;
    padding: 2px;
    left: 12px;
    background: #ffffffa3;
    top: 10px;
    border-radius: 8px;
}

.pos {
    position: absolute;
    padding: 2px;
    left: 12px;
    background: #ffffffa3;
    top: 211px;
    border-radius: 8px;
    cursor: pointer;
}

.pos:hover {
    color: #cf9400;
}


.foto .fa-save {
    bottom: 10px;
    top: initial;
    background: none;
}

.foto .form-control {
    padding-right: 2rem;
}

.dinamic {
    text-align: left;
    width: 100%;
}

.dinamic i {
    font-size: 1.5rem;
    padding: 5px;
    cursor: pointer;
}

.dinamic .fa-minus-circle:hover {
    color: red;
}

.dinamic .fa-plus-circle:hover {
    color: green;
}

.dinamic .buttons {
    justify-content: initial;
    padding: 0px;
}


.opciones-filtros a{
    font-size: 3rem;
    margin: 1rem;
    background: white;
    padding: .5rem;
    border: 2px solid #007bff;;
}

.opciones-filtros a i {
    color: #007bff;
}

.copy {
    padding: 4px 10px;
    border-radius: 2rem;
    background: #007bff;
    border: 1px solid #ffffff;
}

#registrar_agenda small{
    position: absolute;
}

#registrar_agenda .col-md-4, #registrar_agenda .col-md-2  {
    margin-top: .5rem;
}

.fa-tty {
    cursor: pointer;
}

.note-editor.note-airframe, .note-editor.note-frame {
    border: 2px solid rgb(207, 148, 0);
    background: white;
}

.note-editor.note-airframe .note-statusbar, .note-editor.note-frame .note-statusbar {
    background-color: #2d4362;
    border-bottom-left-radius: 1px;
    height: 1rem;
    border-bottom-right-radius: 1px;
    border-top: 1px solid rgb(207, 148, 0);
}

.note-editor.note-airframe .note-statusbar .note-resizebar .note-icon-bar, .note-editor.note-frame .note-statusbar .note-resizebar .note-icon-bar {
    width: 10%;
    margin: 2px auto;
    border-top: 1px solid rgb(255, 255, 255);
}

.note-editor.note-airframe .note-statusbar .note-resizebar, .note-editor.note-frame .note-statusbar .note-resizebar {
    height: 1rem;
}

.consulta label {
    color: black;
}

.fechas-evento {
    margin-top: 21px;
    font-size: 1.7rem;
    margin-bottom: 0px;
}

.fa-birthday-cake {
    color: #49d469;
}

.grande{
    font-size: 70px;
    margin-left: 6rem;
}


.home {
    font-size: 17px;
}

#modal_status_oferta .fa-plus {
    font-size: 1.5rem;
    margin: 5px;
}

.contacto-boton {
    background: #2b4160;
    color: white;
    border: 2px solid white;
    border-radius: 2rem;
}

.contacto-boton:hover {
    background: #000000;
}

.rojo {
    color: rgb(182, 45, 45)
}

.rojo:hover{
    color: red;
}

.servicios .btn:not(:disabled) {
    cursor: pointer;
    background: #2b4160;
}

.propietario-obligado {
    color: red;
    font-size: .8rem;
    display: none;
}

.adicion {
    border: 3px solid;
    padding: 18px;
    border-radius: 1rem;
    margin-bottom: 1.5rem !important;
}

.adicion .fa {
    position: absolute;
    right: -12px;
    bottom: -12px;
    font-size: 2.5rem;
}

.custom-radio {
    cursor: pointer;
}

.foto_titular_modal img {
    width: 100%;
    border: 1px solid #cf9400;
    border-bottom: 0px;
}

.eliminar-actividad {
    cursor: pointer;
    margin: 5px;
    margin-right: 10px;
    color: #bb1424;
}

.img-table {
    width: 6rem;
}

.observation_details {
    white-space: break-spaces;
}

/* ========================================
   ESTILOS PARA LA GALERÍA DE IMÁGENES
   ======================================== */

.gallery-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.gallery-card:hover {
    /* transform: translateY(-3px); */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.gallery-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 8px 12px;
    position: relative;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.gallery-card .card-header .action-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gallery-card .card-header .action-icon {
    color: #6c757d;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #dee2e6;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card .card-header .action-icon:hover {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-card .card-header .view-icon {
    color: #007bff;
}

.gallery-card .card-header .view-icon:hover {
    color: #0056b3;
    border-color: #007bff;
}

.gallery-card .card-header .delete-icon {
    color: #dc3545;
}

.gallery-card .card-header .delete-icon:hover {
    color: #c82333;
    border-color: #dc3545;
}

.gallery-card .card-body {
    padding: 0;
}

.gallery-image-container {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
    transition: transform 0.3s ease;
}

/* Imágenes horizontales con cover */
.gallery-image-container.horizontal .gallery-image {
    object-fit: cover;
}

/* Imágenes verticales con contain */
.gallery-image-container.vertical .gallery-image {
    object-fit: contain;
}

/* .gallery-image:hover {
    transform: scale(1.05);
} */

.gallery-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    background: #fafbfc;
    border-top: 1px solid #e9ecef;
}

.gallery-action-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gallery-action-group .action-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    align-items: center;
}

.gallery-action-group .action-label i {
    color: #6c757d;
    font-size: 0.8rem;
}

.gallery-action-group .action-control {
    display: flex;
    gap: 6px;
    align-items: center;
}

.gallery-action-group .form-control {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    flex: 1;
    transition: all 0.2s ease;
}

.gallery-action-group .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.gallery-action-group .action-icon {
    color: #28a745;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 6px;
    border-radius: 4px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-action-group .action-icon:hover {
    background: #c3e6cb;
    color: #155724;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-action-group .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.gallery-action-group .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.gallery-action-group .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.gallery-action-group .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.gallery-action-group .btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.gallery-action-group .btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* Estadísticas de la galería */
.gallery-stats {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-item h3 {
    margin: 0 0 5px 0;
    font-weight: bold;
    font-size: 1.8rem;
}

.stat-item p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dropzone mejorado */
.gallery-dropzone {
    border: 2px dashed #007bff;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 150px;
    transition: all 0.3s ease;
    padding: 20px;
}

.gallery-dropzone:hover {
    border-color: #0056b3;
    background: linear-gradient(145deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-dropzone .dz-message {
    text-align: center;
    color: #495057;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: auto;
}

.gallery-dropzone .dz-message i {
    margin-bottom: 15px;
    color: #007bff;
    font-size: 3rem;
}

.gallery-dropzone .dz-message strong {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-dropzone .dz-message span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Preview del dropzone con fondo transparente */
.gallery-dropzone .dz-preview {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.gallery-dropzone .dz-preview .dz-image {
    background: transparent !important;
    /* border: 2px dashed #007bff !important; */
    border-radius: 8px !important;
    overflow: hidden !important;
}

.gallery-dropzone .dz-preview .dz-image img {
    border-radius: 6px !important;
    object-fit: cover !important;
}

.gallery-dropzone .dz-preview .dz-details {
    background: rgba(0, 123, 255, 0.1) !important;
    border-radius: 6px !important;
    color: #007bff !important;
    font-size: 0.85rem !important;
}

.gallery-dropzone .dz-preview .dz-success-mark,
.gallery-dropzone .dz-preview .dz-error-mark {
    background: transparent !important;
}

.gallery-dropzone .dz-preview .dz-success-mark svg,
.gallery-dropzone .dz-preview .dz-error-mark svg {
    fill: #28a745 !important;
}

.gallery-dropzone .dz-preview .dz-error-mark svg {
    fill: #dc3545 !important;
}

.gallery-dropzone .dz-preview .dz-progress {
    background: rgba(0, 123, 255, 0.2) !important;
    border-radius: 10px !important;
    height: 6px !important;
}

.gallery-dropzone .dz-preview .dz-progress .dz-upload {
    background: #007bff !important;
    border-radius: 10px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-action-group .action-control {
        flex-direction: column;
        gap: 6px;
    }
    
    .gallery-image-container {
        height: 180px;
    }
    
    .gallery-card .card-header .action-icons {
        gap: 6px;
    }
    
    .gallery-card .card-header .action-icon {
        font-size: 1rem;
        padding: 5px;
    }
    
    .gallery-actions {
        padding: 12px;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .gallery-image-container {
        height: 160px;
    }
    
    .gallery-card .card-header .action-icons {
        gap: 4px;
    }
    
    .gallery-card .card-header .action-icon {
        font-size: 0.9rem;
        padding: 4px;
    }
}

/* Layout del card-header con flexbox */
.gallery-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
}

/* Estilos para el selector de orden en el header */
.gallery-card .card-header .order-selector {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    flex: 1;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 60px;
}

.gallery-card .card-header .order-selector:focus {
    background-color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.gallery-card .card-header .order-selector:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Indicador visual de cambio de orden */
.gallery-card .card-header .order-selector:not([data-original-order]) {
    border-color: #cf9400;
    background-color: #cf940014;
    color: #000000;
}

.gallery-card .card-header .order-selector:not([data-original-order]):focus {
    border-color: #cf9400;
    box-shadow: 0 0 0 0.2rem rgb(207 148 0 / 12%);
}

/* Ajustar el layout de los action-icons */
.gallery-card .card-header .action-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Responsive para el selector de orden */
@media (max-width: 768px) {
    .gallery-card .card-header .order-selector {
        font-size: 0.8rem;
        padding: 5px 6px;
        min-width: 50px;
    }
    
    .gallery-card .card-header {
        gap: 8px;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    .gallery-card .card-header .order-selector {
        font-size: 0.75rem;
        padding: 4px 5px;
        min-width: 45px;
    }
    
    .gallery-card .card-header {
        gap: 6px;
        padding: 5px 8px;
    }
}

.btn-icon-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}