/********** Template CSS **********/
:root {
    --primario: #3ba01d;
    --secundario: #F65005;
    --light: #F7F8FC;
    --dark: #111111;
    --bs-primary-light: #f1faff;
    --bs-secondary-light: #F9F9F9;
    --bs-success-light: #e8fff3;
    --bs-info-light: #f8f5ff;
    --bs-warning-light: #fff8dd;
    --bs-danger-light: #fff5f8;
    --bs-dark-light: #F4F4F4;
    --bs-primary: #009ef7;
    --bs-secondary: #E1E3EA;
    --bs-success: #50cd89;
    --bs-info: #7239ea;
    --bs-warning: #ffc700;
    --bs-danger: #f1416c;
    --bs-dark: #181C32;
    --bs-primary-active: #0095e8;
    --bs-secondary-active: #B5B5C3;
    --bs-light-active: #F4F4F4;
    --bs-success-active: #47be7d;
    --bs-info-active: #5014d0;
    --bs-warning-active: #f1bc00;
    --bs-danger-active: #d9214e;
    --bs-dark-active: #131628;
}


.opacity-60 {
  opacity: .6;
  filter: grayscale(1);
}
.layout-navbar-fixed .wrapper .main-header {
  background: #fff;
  color: #404E67;
}
.select2 {
  width: 100% !important;
}
.layout-navbar-fixed .wrapper .main-header a{
  color: #404E67;
}
.dt-group {
  background-color: #f7f7f7;
  font-weight: bold;
  padding: 10px;
  text-align: left;
}

.dropdown-toggle::after {
  display: none;
}
.xx-small{
  font-size: x-small;
}

.required:after {
    content: "*";
    position: relative;
    font-size: inherit;
    color: var(--bs-danger);
    padding-left: 0.25rem;
    font-weight: 600;
  }
  
.chatNotificacion {
  border-radius: 100px;
    right: 1px;
    position: absolute;
    top: 5px;
    padding: 4px;
    width: 19px;
    background: linear-gradient(to right, #0ac282, #0df3a3);
    color: #000;
    font-weight: 700;
}
.alertaNotificacion {
  border-radius: 100px;
    right: 1px;
    position: absolute;
    top: 5px;
    padding: 4px;
    width: 19px;
    background: linear-gradient(to right, #ffc107, #fcd86f);
    color:#000;
    font-weight: 700;

}
.img_user{
  margin-top: -8px;
}
.navbar-search-block .input-group {
  width: 50%;
}
.navbar-search-block .input-group input {
  border: 1px solid #fff;

}
.navbar-search-block .input-group input:focus {
  border: 1px solid #80bdff;
  box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
}
.main-sidebar-color {
  background: linear-gradient(to right, #fff, #f0f0f0);
}
.main-sidebar-color .nav-header {
  background-color: inherit;
  color: #000;
  text-transform: uppercase;
  font-weight: bold;
}
.main-sidebar-color .sidebar a {
  color: #343a40;
}
.brand-link {

  color: #000000;
}


.navbar-expand .navbar-nav .dropdown-menu{
  background: #fff;
    -webkit-box-shadow: 0 2px 30px 6px rgb(0 0 0 / 10%);
    box-shadow: 0 2px 30px 6px rgb(0 0 0 / 10%);
    position: absolute;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    width: 14rem;
    right: 5px;
    top: 55px;
    left: auto;
    overflow: visible;
    border: none;

}
.navbar-expand .navbar-nav .dropdown-menu li{

    padding: 0.7em;
}
.navbar-expand .navbar-nav .dropdown-menu li:hover{

  background-color: #f1f1f1;
}    

.dropdown-item:focus, .dropdown-item:hover {
  color: #16181b;
  text-decoration: none;
  background-color: #f1f1f1;
}
.navbar-expand .navbar-nav .dropdown-menu a{

    color: #666;
}
.nav-pills .nav-link:not(.active):hover {
  background: rgb(0 0 0 / 16%);
  color: #1f2d3d;
 -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;

}


.main-sidebar  .sidebar  .nav-item  .nav-link.active, .main-sidebar .sidebar  .nav-item .show>.nav-link {
  color: #212529;
  background-color: rgba(0,0,0,.4)!important;
}
.nav-sidebar>.nav-item>.nav-link.active {
  color: #1f2d3d;
  background-color: #ffc107!important;
}
.navbar-expand .navbar-nav .dropdown-menu::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 1180px;
  -webkit-transform: rotate(
45deg);
  transform: rotate(
45deg);
  border: 10px solid #fff;
  border-right-color: transparent;
  border-bottom-color: transparent;
  -webkit-box-shadow: -10px -9px 23px 1px rgb(0 0 0 / 10%);
  box-shadow: -10px -9px 23px 1px rgb(0 0 0 / 10%);
}
@media(max-width: 539px){
  #dropdownMenuLink span{
    display: none;
  }

  .main-header .fullscreen{
    display: none;

  }
}

#password-addon{
  bottom: 0px;
  right: -8px;

}


.cursor-pointer{
  cursor: pointer;
 
}
.cursor-pointer:hover{
   opacity: 0.9;
}

.noty{
  border-radius: 100%;
  width: 19px;
  padding: 4px;
  font-weight: 700;
}

.text-capital {
  color: #012169;
}

.bg-capital {
  background: #012169;
}
.btn-capital {
  background: #012169;
  color: #fff;
  border-radius: 0.375rem;
}
/*
input[type=number] { 
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0; 
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}*/
   /* Loader */

   #pre-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backdrop-filter: brightness(.4);
    display: flex;
    align-items: center;
    justify-content: center;
	z-index: 1099;
}

.lds-hourglass {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-hourglass:before  {
	content: "";
	box-sizing: border-box;
	position: absolute;
	width: 60px;
	height: 60px;
	border-radius: 50%;
    border-top: 4px solid #ffc107;
    border-right: 4px solid #181c3200;
	animation: lds-hourglass 0.8s linear infinite;
}

@keyframes lds-hourglass {
    to {
		transform: rotate(360deg);
	   }
}


.nuevaFoto, .imagensubir {
  height: 120px;
  width: 120px;
}
.imagensubir {
  border: 2px dotted  #87a4b5;
  position: absolute;
  top: 0px;
  border-radius: 5px;
}
.nuevaFoto:hover{
  cursor: pointer;
 
}
.nuevaFoto:hover .imagensubir{
    color: #000000;
    border: dotted 2px;

}
.nuevaFoto {
  opacity: 0;
  position: relative;
  z-index: 1;
}


.editarFoto, .imagensubir {
  height: 120px;
  width: 120px;
}
.imagensubir {
  border: 2px dotted  #87a4b5;
  position: absolute;
  top: 0px;
  border-radius: 5px;
}
.editarFoto:hover{
  cursor: pointer;
 
}
.editarFoto:hover .imagensubir{
    color: #000000;
    border: dotted 2px;

}
.editarFoto {
  opacity: 0;
  position: relative;
  z-index: 1;
}


:root {
  --animate-duration: 2s;
}

.form-control {
  border-radius: 0.75rem;
  border: 1px solid #e7e7e7;
  background: #fbfbfb;
  color: #66696b;
}

.form-group label {
  color: #161623;
    font-size: 14px;
}
   
/*table stryle*/
.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #fafafa;
}
.table td, .table th {
  padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #eff0f18f;

}
.table th {
 
    color: rgb(187, 187, 187);
    font-size: 14px;
    font-weight: 600;
}

.card-header{
  border-bottom: 1px solid #f1f1f1ab;
}

.select2-container .select2-selection--single {

  height: 38px!important;
  border-radius: 0.75rem!important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px!important;

}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #ebeaea!important;
}

.select2-container--default .select2-dropdown {
  border: 1px solid #d4d6d8!important;
}

#stock_producto input[type=number]::-webkit-inner-spin-button, 
#stock_producto input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance:button!important; 
  margin: 2px; 
  background-color: red;
}
/*end table stryle*/
.img_producto{
  cursor: pointer;
  opacity: 0;
  top: 0;
  height: 100%;
  width: 100%;
}

/*tabs style*/
.nav-tabs .nav-link.active{
  border-bottom: 2px solid rgb(4, 20, 65);
  color: rgb(4, 20, 65);
  font-weight: bold;
}

/*end tabs style*/

.subirFondo {
  position: absolute;
  top: 0;
  left: 0;
  background: red;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.banner_nosotros img {
  height: 200px;
  width: 100%;
}

.form-control[readonly] {
  background-color: #ffffff!important;
  opacity: 1;
  border: 1px solid #ffffff!important;
  color: #040f28;
  font-weight: bold;
}

#ruc_empresa::-webkit-inner-spin-button, 
#ruc_empresa::-webkit-outer-spin-button { 
  -webkit-appearance:none!important; 
}
#ruc_empresa { 
  -moz-appearance: textfield;
  appearance: textfield;
  margin: 0; 
}

.swal2-shown .login-box, .swal2-shown .Copyright-watsontic {
  display: none;
}

/* sweetaler2 color change*/

/* Estilo para el fondo */
.custom-toast-success {
  background-color: #1bd647 !important; /* Verde para éxito */
  color: white !important; /* Texto blanco */
}

/* Error: Fondo rojo */
.custom-toast-error {
  background-color: #f8263b !important; /* Rojo para error */
  color: white !important; /* Texto blanco */
}

/* Warning: Fondo amarillo */
.custom-toast-warning {
  background-color: #f3ef0c !important; /* Amarillo para advertencia */
  color: black !important; /* Texto negro */
}

/* Info: Fondo azul */
.custom-toast-info {
  background-color: #0bd1f0 !important; /* Azul para información */
  color: white !important; /* Texto blanco */
}

/* Question: Fondo gris */
.custom-toast-question {
  background-color: #7c8994 !important; /* Gris para pregunta */
  color: white !important; /* Texto blanco */
}


/* Estilo para el ícono */
.custom-icon {
  color: white !important; /* Cambia el color del ícono a blanco */
  border-color: #ffffff!important;
}
.swal2-icon.swal2-success [class^=swal2-success-line]{
  background-color: #ffffff!important;
}
.custom-icon .swal2-success-ring{
  border: .25em  solid rgb(236, 236, 236)!important;

}

.swal2-icon.swal2-error [class^=swal2-success-line]{
  background-color: #ffffff!important;
}
/* Estilo para el texto */
.custom-text {
  color: white !important; /* Cambia el color del texto a blanco */
  border-color: #ffffff!important;
}


/*end sweetalert*/

.buttonDeleteBanner{
  position: absolute;
  top: -10px;
  right: 0px;
  z-index: 10;
  border-radius: 50%;
}
.w-min-300px{
    min-width: 300px!important;
}
.w-min-350px{
    min-width: 350px!important;
}
.authentication-wrapper.authentication-basic
 {
    align-items: center;
    justify-content: center;
}

.authentication-wrapper.authentication-basic .authentication-inner {
    max-width: 450px;
}

.authentication-wrapper .authentication-inner {
    width: 100%;
}

.authentication-wrapper {
    display: flex;
    flex-basis: 100%;
    min-height: 100vh;
    width: 100%;
}

.authentication-wrapper {
    display: flex
;
    flex-basis: 100%;
    min-height: 100vh;
    width: 100%;
}

.card {
    border-radius: 0.625rem;
    background-clip: padding-box;
    box-shadow: 0 0.125rem 0.625rem 0 rgba(76, 78, 100, 0.22);
}
.input-icon {
  left: 15px;
  top: 48px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1.2rem;
}
#pdf-canvas {
    max-width: 500px;
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.dropzone-custom {
  border: 2px dashed #ccc;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.dropzone-custom.border-primary {
  border-color: #007bff !important; /* Color azul para el borde cuando se arrastra sobre la zona */
}

.dropzone-custom.bg-light {
  background-color: #f8f9fa !important; /* Fondo claro cuando se arrastra sobre la zona */
}


.info-box {
  min-height: 120px;
  border-radius: 1.2rem;
}

.bg-ventas{
  background: linear-gradient(135deg, #FF6A00, #FF5E62, #FF66C4);
  color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bg-visitas {
  background: linear-gradient(135deg, #f26ab8, #8e6bf4);
  color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bg-pedidos {
  background: linear-gradient(135deg, #6fb3ff, #4ce3d1);
  color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bg-clientes {
  background: linear-gradient(135deg, #00c972, #30e7e0);
  color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.bg-vendidos {
  background: linear-gradient(135deg, #0061ff, #60efff);
  color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.bg-ultimos-pedidos {
  background: linear-gradient(135deg, #30c67c, #82f4b1);
  color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bg-stock {
  background: linear-gradient(135deg, #f40752, #f9ab8f);
  color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* menu lateral izquierdo */
.main-sidebar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Brand logo área */
.brand-link {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.brand-link:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.brand-image {
  filter: brightness(1.1);
}

/* Sidebar contenedor */
.sidebar {
  background: transparent;
  padding: 0.5rem 0;
}

/* Headers de sección */
.nav-header {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
  padding: 0.5rem 0.5rem 0.5rem 1rem !important;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header:first-of-type {
  border-top: none;
  margin-top: 0;
}

/* Links del menú */
.nav-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  margin: 0.1rem 0.2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-sidebar .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.nav-sidebar .nav-link:hover::before {
  left: 100%;
}

.nav-sidebar .nav-link:hover {
  background: rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
  transform: translateX(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Estado activo */
.nav-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #ffffff;
}

.nav-sidebar .nav-link.active i {
  color: #ffffff !important;
}

/* Iconos */
.nav-sidebar .nav-link i {
  color: rgba(255, 255, 255, 0.8);
  width: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.nav-sidebar .nav-link:hover i {
  color: #ffffff;
  transform: scale(1.1);
}

/* Submenús */
.nav-treeview {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 0.2rem 0.5rem;
  padding: 0.5rem 0;
}
.sidebar-mini .main-sidebar .nav-child-indent .nav-treeview .nav-link, .sidebar-mini-md .main-sidebar .nav-child-indent .nav-treeview .nav-link, .sidebar-mini-xs .main-sidebar .nav-child-indent .nav-treeview .nav-link
 {
    width: calc(250px - .5rem * 2 - 2.5rem);
}
.nav-treeview .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 0.5rem ;
  font-size: 0.9rem;
  margin: 0.1rem 0.5rem;
}

.nav-treeview .nav-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  transform: translateX(3px);
}

.nav-treeview .nav-link.active {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-left: 3px solid rgba(255, 255, 255, 0.8);
}

.nav-treeview .nav-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* Flecha de expansión */
.nav-sidebar .nav-link .right {
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease;
}

.nav-item.menu-open > .nav-link .right {
  transform: rotate(-90deg);
}

/* Items de menú expandible */
.nav-item.has-treeview.menu-open > .nav-link {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Animaciones suaves */
.nav-sidebar .nav-item {
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .main-sidebar {
    width: 250px;
  }
  
  .nav-sidebar .nav-link {
    padding: 0.6rem 0.8rem;
    margin: 0.1rem 0.3rem;
  }
  
  .nav-header {
    padding: 1rem 0.8rem 0.3rem 0.8rem !important;
    font-size: 0.65rem;
  }
}

/* Scroll personalizado */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Efectos adicionales */
.nav-sidebar .nav-link p {
  margin: 0;
  font-weight: 500;
}

.nav-sidebar .nav-link.active p {
  font-weight: 600;
}

/* Badge o indicadores (si los necesitas) */
.nav-sidebar .badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
}
/*end menu lateral izquierdo*/
.sidebar-collapse .footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    color: #869099;
    padding: 1rem;
    margin-left: 0;
}
.footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    color: #869099;
    padding: 1rem;
    margin-left: 0;
}
@media(min-width: 768px){
  .sidebar-collapse .footer {
        margin-left: 4.1rem;
  }
  .footer {
        margin-left: 16rem;
  }
}

input[type=number] {
  -moz-appearance: textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Márgenes start (left en LTR) */
.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }

/* Márgenes end (right en LTR) */
.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }

/* Márgenes top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Márgenes bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }


/*=== CSS COMPLETO ===*/

.multi-drop-zone {
    width: 100%;
}

.mdz-drop-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    margin-bottom: 15px;
}

.mdz-drop-area:hover,
.mdz-drop-area.mdz-dragover {
    border-color: #007bff;
    background: #f8f9ff;
}

.mdz-drop-area.mdz-compact {
    padding: 20px;
}

.mdz-message {
    color: #666;
}

.mdz-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.mdz-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.mdz-preview {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s ease;
}

.mdz-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mdz-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.mdz-preview-info {
    padding: 10px;
    text-align: center;
}

.mdz-filename {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.mdz-filesize {
    font-size: 11px;
    color: #666;
}

.mdz-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mdz-preview:hover .mdz-remove {
    opacity: 1;
}

/* MODAL DE RECORTE AVANZADO */
.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.crop-modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    width: 700px;
}

.crop-modal-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crop-modal-header h4 {
    margin: 0;
    color: #333;
}

.crop-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-controls {
    padding: 5px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.crop-controls label {
    font-weight: 500;
    color: #555;
    margin: 0;
    white-space: nowrap;
}

.aspect-selector {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 160px;
    cursor: pointer;
}

.aspect-selector:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.crop-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crop-size-info {
    font-size: 12px;
    color: #666;
    background: white;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.crop-container {
    position: relative;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
    background: #f0f0f0;
}

.crop-canvas {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: crosshair;
}

.crop-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    pointer-events: none;
}

.crop-area {
    position: absolute;
    border: 2px solid #007bff;
    border-radius: 4px;
    background: rgba(0, 123, 255, 0.1);
    cursor: move;
    pointer-events: all;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

/* HANDLES DE REDIMENSIÓN */
.crop-handle {
    position: absolute;
    background: #007bff;
    border: 2px solid white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.crop-handle.nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.crop-handle.ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.crop-handle.sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.crop-handle.se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

.crop-handle.n {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: n-resize;
}

.crop-handle.s {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}

.crop-handle.w {
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    cursor: w-resize;
}

.crop-handle.e {
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    cursor: e-resize;
}

.crop-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.crop-instructions {
    color: #666;
    margin-bottom: 10px;
    font-size: 12px;
}

.crop-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.crop-cancel, .crop-confirm {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.crop-cancel {
    background: white;
    color: #666;
}

.crop-cancel:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.crop-confirm {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.crop-confirm:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .crop-modal-content {
        width: 95vw;
        height: 95vh;
        display: flex;
        flex-direction: column;
    }
    
    .crop-container {
        flex: 1;
        overflow: auto;
        padding: 10px;
    }
    
    .crop-canvas {
        max-width: 100%;
        max-height: 100%;
    }
    
    .crop-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .crop-info {
        margin-left: 0;
        text-align: center;
    }
    
    .crop-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .crop-instructions {
        text-align: center;
        order: 2;
    }
    
    .crop-buttons {
        order: 1;
        justify-content: center;
    }
    
    .mdz-previews {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .mdz-preview img {
        height: 100px;
    }
}

/* MEJORAS VISUALES */
.crop-area:hover {
    border-color: #0056b3;
}

.crop-handle:hover {
    background: #0056b3;
    transform: scale(1.2);
}

.crop-handle.n:hover,
.crop-handle.s:hover {
    transform: translateX(-50%) scale(1.2);
}

.crop-handle.w:hover,
.crop-handle.e:hover {
    transform: translateY(-50%) scale(1.2);
}

/* ANIMACIONES */
.crop-area {
    transition: border-color 0.2s ease;
}

.crop-handle {
    transition: all 0.2s ease;
}

.mdz-preview {
    transition: all 0.3s ease;
}

/* INDICADOR DE ZOOM */
.crop-container::after {
    content: 'Zoom: ' attr(data-zoom) '%';
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    pointer-events: none;
}