:root {
  /* =========================
     TYPOGRAPHY SCALE
     Escala base responsiva
     Tamaños escalables
  ========================== */

  font-size: clamp(12px, 1.5vw, 16px);

  --dunamis-font-size-xs: 0.625rem; /* 10px */
  --dunamis-font-size-sm: 0.75rem;/* 12px */
  --dunamis-font-size-base: 1rem; /* 16px */
  --dunamis-font-size-lg: 1.25rem;  /* 20px */
  --dunamis-font-size-xl: 1.5rem;  /* 24px */
  --dunamis-font-size-xxl: 2rem;  /* 32px */

  --fd-text-muted: #555;
  --fd-text-dark: #212529;

  --fd-surface: #f8f9fa;
  --fd-hover-bg: rgba(0, 0, 0, 0.04);

  --fd-on-primary: #fff;

    /* =========================
     THEME COLORS (DYNAMIC)
     mapped from FD system
  ========================== */

  --dunamis-primary-color: var(--fd-primary-bg);
  --dunamis-primary-color2: var(--fd-top-color);

  --dunamis-secondary-color: var(--fd-navbar-active);

  --dunamis-color-bg: var(--fd-body-bg);
  --dunamis-color-text: var(--fd-body-color);

  /* hover/focus derivations */
  --dunamis-color-hover: var(--fd-navbar-bg);
  --dunamis-color-focus: var(--fd-primary-bg);

    /* =========================
     UI ICON SYSTEM
  ========================== */

  --ui-icon-color: var(--fd-navbar-color);
  --ui-icon-accent: var(--fd-primary-bg);

  --ui-action-color: var(--fd-primary-bg);

  --ui-text-muted: var(--fd-top-color);


}
/* .rd-navbar-fixed .rd-nav-link:hover {
  background: rgba(var(--fd-navbar-active-rgb, 217, 108, 140), 0.08);
} */

.ds-form-label {
  position: static !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  transform: none !important;
  float: none !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  pointer-events: auto !important;
  z-index: auto !important;
  text-align: left !important;
  line-height: 1.3 !important;
}

.templateColor,
.templateColor:hover,
a.templateColor {
  background: var(--dunamis-primary-color) !important;
  color: #fff !important;
  padding: 0%, 5%, 0%, 5%;
}

/*MODIFICAR COLOR PARA EL SPINER DE CARGA */
.cssload-circle .cssload-inner {
  border: 5px solid var(--dunamis-color-bg); /*rgba(193, 70, 121, 0.7);*/
  box-shadow: inset 0 0 10px var(--dunamis-color-bg); /*rgba(193, 70, 121, 0.15);*/
}

/* PARA CATEGORIAS */
.bootstrap-tagsinput {
  width: 100%;
  min-height: 38px;
  padding: 4px 6px;
  border-radius: 4px;
}

.bootstrap-tagsinput .tag {
  background: #0d6efd;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 110px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.20);
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
    font-weight: 600;
  }
  
  .whatsapp-float i {
    font-size: 24px;
    line-height: 1;
  }

  .button i.fa-whatsapp {
    margin-right: 6px;
  }
  
  .whatsapp-float-text {
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
  }
  
  .whatsapp-float:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    color: #ffffff !important;
  }
  
  .whatsapp-float:focus {
    outline: none;
    color: #ffffff !important;
  }
  
  .whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.25);
    outline-offset: 3px;
  }
  
  @media (max-width: 575.98px) {
    .whatsapp-float {
      right: 14px;
      bottom: 14px;
      min-height: 54px;
      padding: 0 16px;
    }
  
    .whatsapp-float-text {
      display: none;
    }
  
    .whatsapp-float i {
      font-size: 26px;
    }
  }


/* BOTONES */
.rd-navbar-main-element {
  display: flex;
  align-items: center;
  gap: 18px;
}

.toggle-original-elements {
  display: flex;
  align-items: center;
  margin: 0;
}

/* BOTÓN LOGIN / LOGOUT */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: none !important;
  background: transparent;
  box-shadow: none !important;
  color: var(--fd-navbar-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.25s ease;
  margin: 0;
}

.nav-btn i {
  font-size: 15px;
  line-height: 1;
}

.nav-btn span {
  line-height: 1;
}

.nav-btn:hover {
  color: var(--fd-primary-bg, #d96c8c);
  background: var(--fd-hover-bg, rgba(0, 0, 0, 0.04));
}

/* AJUSTE SOLO PARA PUBLIC */
.nav-btn-public {
  min-width: auto;
  padding-right: 6px;
}

/* AJUSTE SOLO PARA ADMIN */
.nav-btn-admin {
  min-width: auto;
}

/* CARRITO */
.rd-navbar-basket-wrap {
  display: flex;
  align-items: center;
  margin: 0;
}

.rd-navbar-basket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 28px;
  text-decoration: none;
  color: var(--fd-navbar-color);
}

.rd-navbar-basket span {
  position: absolute;
  top: -6px;
  right: -10px;
  font-size: 12px;
  font-weight: 700;
  /* color: #d14b7f; */
}

/* MOBILE */
.rd-navbar-basket-mobile {
  display: none;
}

@media (max-width: 991.98px) {
  .nav-btn span {
    display: none;
  }

  .nav-btn {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .rd-navbar-user-account {
    display: none !important;
  }

  .rd-navbar-basket-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.ocultar {
  display: none !important;
}

.mostrar {
  display: block !important;
}

.notas {
  background-color: rgb(255, 255, 192);
}


/*
  ESTILO GENERAL TABLA JQUERY
*/

/*paginacion*/
div.dt-container div.dt-paging {
  margin: 0;
}

div.dt-container div.dt-paging ul.pagination {
  margin: 2px 0;
  flex-wrap: wrap;
  font-size: var(--dunamis-font-size-sm);
  font-family: var(--dunamis-font-family);
}

.page-item.active .page-link {
  z-index: 1;
  color: var(--dunamis-color-text-bg);
  background-color: var(--dunamis-color-focus);
  border-color: var(--dunamis-color-focus);
}

.pagination {
  --bs-pagination-padding-x: 0.75rem;
  --bs-pagination-padding-y: 0.375rem;
  --bs-pagination-font-size: 1rem;
  --bs-pagination-color: var(--dunamis-primary-color);
  --bs-pagination-bg: var(--bs-body-bg);
  --bs-pagination-border-width: var(--bs-border-width);
  --bs-pagination-border-color: var(--bs-border-color);
  --bs-pagination-border-radius: var(--bs-border-radius);
  --bs-pagination-hover-color: var(--dunamis-color-hover);
  --bs-pagination-hover-bg: var(--bs-tertiary-bg);
  --bs-pagination-hover-border-color: var(--bs-border-color);
  --bs-pagination-focus-color: var(--bs-link-hover-color);
  --bs-pagination-focus-bg: var(--bs-secondary-bg);
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: var(--dunamis-primary-color) !important;
  /* #0d6efd*/
  ;
  --bs-pagination-active-border-color: var(--dunamis-primary-color) !important;
  /* #0d6efd*/
  ;
  --bs-pagination-disabled-color: var(--bs-dunamis-secondary-color);
  --bs-pagination-disabled-bg: var(--bs-secondary-bg);
  --bs-pagination-disabled-border-color: var(--bs-border-color);
  display: flex;
  padding-left: 0;
  list-style: none;
}

/* ESTILO PARA EL FOOTER*/
.tabla-footer {
  font-size: var(--dunamis-font-size-sm) !important;
  font-family: var(--dunamis-font-family) !important;
  font-weight: bold !important;
  text-align: right !important;
  color: var(--dunamis-color-text) !important;
}

/* Contenedor moderno de footer */
.datatable-footer-wrapper {
  border-top: 1px solid #e5e5e5;
  padding-top: 10px !important;
  padding-bottom: 5px !important;
  background: #fafafa;
  /* suave, tipo Metronic */
}

/* Información (Mostrando X...) */
.datatable-info-wrapper .dataTables_info {
  font-size: 0.9rem;
  color: #555;
  padding-top: 4px !important;
}

/* Alinear paginación */
.datatable-pagination-wrapper .dataTables_paginate {
  margin: 0 !important;
}

/* Botones de paginación modernos */
.dataTables_paginate .pagination .page-item .page-link {
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-size: 0.85rem;
  color: #555;
}

/* Hover elegante */
.dataTables_paginate .pagination .page-item .page-link:hover {
  background: #f0f0f0 !important;
}

/* Activo estilo DunamisSoft */
.dataTables_paginate .pagination .page-item.active .page-link {
  background-color: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #000 !important;
  font-weight: bold;
}

/* Ajustes móviles */
@media (max-width: 768px) {
  .datatable-info-wrapper {
    justify-content: center !important;
    margin-bottom: 10px;
  }

  .datatable-pagination-wrapper {
    justify-content: center !important;
  }
}

/* Contenedor moderno de footer */
.datatable-footer-wrapper {
  border-top: 1px solid #e5e5e5;
  padding-top: 10px !important;
  padding-bottom: 5px !important;
  background: #fafafa;
  /* suave, tipo Metronic */
}

/* Información (Mostrando X...) */
.datatable-info-wrapper .dataTables_info {
  font-size: 0.9rem;
  color: #555;
  padding-top: 4px !important;
}

/* Alinear paginación */
.datatable-pagination-wrapper .dataTables_paginate {
  margin: 0 !important;
}

/* Botones de paginación modernos */
.dataTables_paginate .pagination .page-item .page-link {
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-size: 0.85rem;
  color: #555;
}

/* Hover elegante */
.dataTables_paginate .pagination .page-item .page-link:hover {
  background: #f0f0f0 !important;
}

/* Activo estilo DunamisSoft */
.dataTables_paginate .pagination .page-item.active .page-link {
  background-color: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #000 !important;
  font-weight: bold;
}

/* Ajustes móviles */
@media (max-width: 768px) {
  .datatable-info-wrapper {
    justify-content: center !important;
    margin-bottom: 10px;
  }

  .datatable-pagination-wrapper {
    justify-content: center !important;
  }
}





/*
 ESTILO PARA LOS BOTONES DE LA COLUMNA ACTIONS DE LA TABLA JQUERY
*/


.table {
  font-size: 14px;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 6px;
  padding: 5px 10px;
}


/* Contenedor de botones */
.actions {
  display: flex;
  gap: 5px;
  /* Espacio entre botones */
}

/* Estilos generales para los botones */
.actions .btn-action,
.btn-table {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  /* Tamaño XS */
  height: 25px;
  /* Tamaño XS */
  border: none;
  border-radius: 5px;
  /* Bordes redondeados */
  color: white;
  font-size: 13px;
  /* Tamaño de ícono */
  transition: 0.3s ease-in-out;
  font-family: "Font Awesome 5 Free";
  /* Usar FontAwesome */
  font-weight: 900;
  /* Importante para que muestre los íconos */
}

/* ICONOS PARA LOS BOTONES COLUMN ACCIONES DE LA TABLA*/
/*Boton Editar */
.actions .btn-edit::before {
  content: "\f303";
  /* Unicode de fa-pencil-alt */
}

/*Boton Eliminar */
.actions .btn-delete::before {
  content: "\f2ed";
  /* Unicode de fa-minus */
}

/*Boton Anular */
.actions .btn-cancel::before {
  content: "\f05e";
  /* Unicode de fa-ban */
}

/*Boton Ver */
.actions .btn-view::before {
  content: "\f06e";
  /* Unicode de fa-eye */
}

/*Boton Seleccionar */
.actions .btn-select::before {
  content: "\f058";
  /* Unicode de fa-eye */
}

/*Boton Imprimir */
.actions .btn-print::before {
  content: "\f02f";
  /* Unicode de fa-print */
}

/*Boton Copiar */
.actions .btn-copy-to::before {
  content: "\f0c5";
  /* Unicode de fa-copy */
}

/*Boton Aprobar */
.actions .btn-aprobar::before {
  content: "\f00c";
  /* Unicode de fa-check */
}

.actions .btn-aprobar {
  background-color: #28a745;
}

/* Colores específicos para cada botón */
.actions .btn-edit {
  background-color: #17a2b8;
  /* Azul */
}

.actions .btn-delete {
  background-color: #C0392B;
  /* Rojo */
}

.actions .btn-cancel {
  background-color: #ffc107;
  /* Amarillo */
  color: black;
}

.actions .btn-view {
  background-color: #28a745;
  /* Verde */
}

.actions .btn-select {
  background-color: #17a2b8;
  /* Verde */
}

.actions .btn-print {
  background-color: #6c757d;
  /* Gris */
}

.actions .btn-copy-to {
  background-color: #007bff;
  /* Azul fuerte */
}

/* Submenu Bootstrap 5 */
/* ===============================
   Dropdown acciones (ERP Style)
   =============================== */

   .dropdown-menu {
    border-radius: .5rem;
    padding: .35rem 0;
    font-size: .9rem;
}

.dropdown-item {
    padding: .45rem 1rem;
}

.dropdown-item i {
    width: 1.25rem;
    text-align: center;
}

/* ===============================
   Submenu Bootstrap 5
   =============================== */

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .25rem;
    display: none;
    min-width: 180px;
    z-index: 1055;
}

.dropdown-submenu.show > .dropdown-menu {
    display: block;
}

/* Hover suave */
.dropdown-submenu > a:hover,
.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Evita cortes en DataTables */
.table-responsive,
.dataTables_wrapper {
    overflow: visible !important;
}


/*
  ESTILO PARA LOS BOTONES DE LA TABLA
*/
.tabla.btn-excel {
  background-color: #1E8449 !important;
  border-color: #145A32 !important;
  color: white !important;
}

.tabla.btn-pdf {
  background-color: #C0392B !important;
  border-color: #922B21 !important;
  color: white !important;
}

.tabla.btn-csv {
  background-color: #3498DB !important;
  border-color: #2E86C1 !important;
  color: white !important;
}

.tabla.btn-print {
  background-color: #5D6D7E !important;
  border-color: #34495E !important;
  color: white !important;
}

/*
  ESTILO PARA AGRUPADO EN TABLA JQUERY
*/
tr.group,
tr.group:hover {
  background-color: var(--dunamis-primary-color2) !important;
  font-weight: bold;
}

:root.dark tr.group,
:root.dark tr.group:hover {
  background-color: var(--dunamis-primary-color) !important;
}

/*
  ESTILO PARA LINEA SUPERIOR DE CARD
*/
.card.card-outline {
  border-top: 3px solid var(--dunamis-secondary-color);
}

/*
  ESTILO PARA EL MENU DEL DROPDOWN DEL BTN IMPRIMIR en la barra
*/

.dropdown-menu-dark .dropdown-item {
  color: var(--dunamis-primary-color2)
    /*#dee2e6; */
}

/* Estilo para la línea de tiempo, tab */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 0px;
  padding: 0px 0;
  margin: 0 0 0px;
}

.timeline .step {
  flex: 1;
  text-align: center;
  position: relative;
  font-weight: bold;
  color: #6c757d;
}

.timeline .step.active {
  color: #007bff;
}

.timeline .progress {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #e9ecef;
  z-index: -1;
}

.timeline .progress-bar {
  height: 5px;
  background-color: var(--dunamis-primary-color2);
  width: 0%;
  transition: width 0.4s ease;
}

.timeline .circle {
  width: 25px;
  height: 25px;
  background-color: var(--dunamis-primary-color2);
  border-radius: 50%;
  display: inline-block;
  line-height: 25px;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.timeline::before {
  border-radius: 0.375rem;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 4px;
  margin: 0;
  content: "";
  background-color: transparent
    /* var(--bs-border-color);  */

}

.timeline .active .circle {
  background-color: var(--dunamis-secondary-color);
}

.timeline>div {
  position: relative;
  margin-right: 0px;
  margin-bottom: 0px;
}

/* 
    ESTILO PARA CAMPO VALIDADOS COMO CORRECTO
 */
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--bs-form-valid-border-color);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0rem;
}

.card-title {
  margin-bottom: 0rem;
  /* var(--bs-card-title-spacer-y); */
  color: var(--dunamis-color-text);
  font-family: var(--dunamis-font-family);
  font-size: var(--dunamis-font-size-base);
}


/* color de fondo para los readOnly */
input[readonly],
textarea[readonly],
select[readonly],
input:disabled,
textarea:disabled,
select:disabled {
  background-color: var(--dunamis-bg-readonly) !important;
}

input,
textarea,
select {
  transition: background-color 0.3s ease;
}

/* Estilo para el popup de edicion devextreme */
.dx-popup-wrapper .dx-overlay-content {
  font-size: var(--dunamis-font-size-base);
  font-family: var(--dunamis-font-family);
  overflow-y: auto;
}

/* estilos para las alertas */
/* Botones base */
.swal2-confirm.btn-confirm-custom,
.swal2-cancel.btn-cancel-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: bold;
  border-radius: 4px;
  padding: 0.5em 1em;
}

/* modificar colores  */
.swal2-confirm.success-btn {
  background-color: var(--dunamis-primary-color2);
  color: white;
}

.swal2-confirm.error-btn {
  background-color: #dc3545;
  color: white;
}

.swal2-confirm.info-btn {
  background-color: #17a2b8;
  color: white;
}

.swal2-confirm.confirm-btn {
  background-color: var(--dunamis-primary-color2);
  color: white;
}

.swal2-confirm.footer-btn {
  background-color: #6f42c1;
  color: white;
}

.swal2-cancel.btn-cancel-custom {
  background-color: #6c757d;
  color: white;
}

/*
  COLOR PARA SWICH CHECK COLUMNA ESTATUS EN TABLA
*/

.estado-activo {
  background-color: var(--dunamis-primary-color);
  /* #343a40; Color oscuro */
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.estado-inactivo {
  background-color: #dc3545;
  /* Rojo tipo "danger" */
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

span.bootstrap-switch-handle-on {
  background-color: var(--dunamis-color-bg) !important;
  color: var(--dunamis-color-text-bg) !important;
  font-size: var(--dunamis-font-size-sm) !important;
}

span.bootstrap-switch-handle-off {
  background-color: #d9534f !important;
  color: var(--dunamis-color-text-bg) !important;
  font-size: var(--dunamis-font-size-sm) !important;
}

/*
  PARA LAS COLUMNA ESTADO
*/
.col-estado {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  color: white;
  /* por defecto */
}

.col-estado {
  background-color: var(--estado-color, gray);
  color: var(--estado-text, white);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
}

/* Colores según estado */
.col-estado[color-estado="success"] {
  background-color: #28a745;
  color: white;
}

.col-estado[color-estado="warning"] {
  background-color: #ffc107;
  color: black;
}

.col-estado[color-estado="info"] {
  background-color: #17a2b8;
  color: black;
}

.col-estado[color-estado="danger"] {
  background-color: #dc3545;
  color: white;
}


/* 
    ESTILOS PARA EL invalid-feedback,
 */
 .invalid-feedback {
  display: none !important;
  font-family: var(--dunamis-font-family);
  font-size: var(--dunamis-font-size-xs);
}

input.is-invalid~.invalid-feedback,
select.is-invalid~.invalid-feedback,
textarea.is-invalid~.invalid-feedback {
  display: block !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* 
  Estilo para botones circulares (ejemplo: botón de acción rápida)
*/
.btn-circle {
  width: 38px;
  height: 38px;
  padding: 0;
}

.btn-circle:hover {
  transform: scale(1.08);
  transition: all 0.2s ease;
}

.card-header .btn-link {
  font-size: 1rem;
  font-weight: 600;
}

.card-header .text-muted.small {
  font-weight: 400;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-remove-variant,
.btn-remove-media {
  min-width: 110px;
}

.btn-toggle-variant.rounded-circle,
.btn-toggle-media.rounded-circle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (max-width: 768px) {
  .card-header .text-muted.small {
    max-width: 180px;
  }

  .btn-remove-variant,
  .btn-remove-media {
    min-width: auto;
    padding-inline: 0.75rem;
  }
}

/* 
  ESTILO PARA EL PICKER DE IMAGEN EN PERSONALIZACION DE PLANTILLA
 */
.template-image-picker {
  cursor: pointer;
}

.template-preview-box {
  min-height: 170px;
  border: 1px dashed #ddd;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-preview-brand-box {
  min-height: 110px;
  background:
    linear-gradient(45deg, #f8f8f8 25%, transparent 25%),
    linear-gradient(-45deg, #f8f8f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f8f8f8 75%),
    linear-gradient(-45deg, transparent 75%, #f8f8f8 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.footer-socials .footer-social-link {
  color: var(--fd-footer-color, #ffffff) !important;
  border-color: currentColor;
  transition: all 0.25s ease;
}

.footer-socials .footer-social-link:hover {
  color: var(--social-color) !important;
  border-color: var(--social-color) !important;
  transform: translateY(-2px);
}

.preview-brand {
  width: 231px;
  height: 49px;
  object-fit: contain;
}

/* =========================
   BADGE
========================= */
.badge-light {
  color: var(--fd-text-dark, #212529);
  background-color: var(--fd-surface, #f8f9fa);
}

/* =========================
   AUTH TABS
========================= */
.auth-tabs {
  background: var(--fd-surface, #f8f8f8);
  padding: 6px;
  border-radius: 999px;
}

.auth-tabs .nav-link {
  color: var(--fd-text-muted, #555);
  font-weight: 600;
  transition: all 0.2s ease;
}

.auth-tabs .nav-link.active {
  background: var(--fd-primary-bg, #d96c8c);
  color: var(--fd-on-primary, #fff);
}

.auth-brand-logo {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .18));
}

.auth-side-panel {
  min-height: 520px;
}

#modalLogin .form-control {
  min-height: 48px;
}

#modalLogin .btn {
  font-weight: 600;
}

#modalLogin .modal-content {
  border-radius: 24px;
}

/*=============================================
TOAST SIEMPRE POR ENCIMA DEL NAVBAR
=============================================*/
.swal2-container.toast-zindex-top {
  z-index: 2147483647 !important;
}

/* Select2 v4 en formularios admin */
#form-websection .select2-container {
  width: 100% !important;
}

#form-websection .select2-container--default .select2-selection--single {
  min-height: calc(1.5em + 0.75rem + 2px);
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
}

#form-websection .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
  padding-left: 0.75rem;
  color: #212529;
}

#form-websection .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
}

.select2-container--open {
  z-index: 10050 !important;
}

.select2-dropdown {
  z-index: 10050 !important;
}

/* Scroll en listas Select2 v4 (anula reglas legacy de style.css) */
.select2-dropdown .select2-results,
.select2-route-dropdown .select2-results {
  overflow: hidden !important;
  max-height: none !important;
}

.select2-dropdown .select2-results > .select2-results__options,
.select2-route-dropdown .select2-results > .select2-results__options {
  max-height: 260px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.35) transparent;
}

.select2-dropdown .select2-results > .select2-results__options::-webkit-scrollbar,
.select2-route-dropdown .select2-results > .select2-results__options::-webkit-scrollbar {
  width: 10px;
}

.select2-dropdown .select2-results > .select2-results__options::-webkit-scrollbar-thumb,
.select2-route-dropdown .select2-results > .select2-results__options::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 2px solid #fff;
}

.select2-results__group {
  font-weight: 600;
  color: #6c757d;
}

/* Sección News / Novedades */
.section-news .section-news-grid {
  align-items: stretch;
}

.section-news .section-news-main {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100%;
}

.section-news .section-news-main-figure {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 570 / 461;
  min-height: 280px;
  overflow: hidden;
  border-radius: 4px;
}

.section-news .section-news-main-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.section-news .section-news-main-body::before {
  background: linear-gradient(180deg, rgba(21, 21, 21, 0) 35%, rgba(21, 21, 21, 0.72) 100%);
}

.section-news .section-news-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.section-news .section-news-side-item {
  flex: 1 1 0;
  text-align: left;
}

.section-news .section-news-side-inner {
  display: flex;
  align-items: stretch;
  gap: 20px;
  height: 100%;
}

.section-news .section-news-side-figure {
  display: block;
  flex: 0 0 42%;
  max-width: 270px;
  aspect-ratio: 270 / 215;
  overflow: hidden;
  border-radius: 4px;
}

.section-news .section-news-side-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.section-news .section-news-side-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.section-news .section-news-side-content .post-nikki-title {
  font-size: 18px;
  line-height: 1.35;
}

@media (min-width: 992px) {
  .section-news .section-news-side {
    justify-content: space-between;
  }

  .section-news .section-news-main {
    min-height: 100%;
  }

  .section-news .section-news-main-figure {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .section-news .section-news-main-body {
    min-height: 100%;
  }
}

@media (max-width: 991.98px) {
  .section-news .section-news-side-inner {
    flex-direction: column;
  }

  .section-news .section-news-side-figure {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    aspect-ratio: 570 / 461;
  }
}

@media (max-width: 575.98px) {
  .section-news .section-news-main-figure,
  .section-news .section-news-side-figure {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
}

/* Por qué elegirnos: imagen en items */
.section-why-choose-us .box-icon-nancy-figure {
  position: relative;
  z-index: 3;
  width: 77px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--fd-navbar-active, #f47c6a);
  background: #fff;
}

.section-why-choose-us .box-icon-nancy-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* CTA promociones parallax (estilo template original) */
.section-cta-promo {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.section-cta-promo .cta-promo-parallax {
  position: relative;
  width: 100%;
  min-height: 420px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.section-cta-promo .cta-promo-parallax .parallax-content {
  min-height: inherit;
  display: flex;
  align-items: center;
}

.section-cta-promo .cta-promo-parallax .box-cta {
  width: 100%;
  max-width: 560px;
}

.section-cta-promo .cta-promo-parallax .bg-overlay-1::before {
  display: block;
  background-color: rgba(255, 255, 255, 0.78);
}

.section-cta-promo-carousel .owl-carousel,
.section-cta-promo-carousel .owl-stage-outer,
.section-cta-promo-carousel .owl-stage,
.section-cta-promo-carousel .owl-item,
.section-cta-promo-carousel .cta-promo-slide,
.section-cta-promo-carousel .cta-promo-parallax {
  width: 100%;
}

.section-cta-promo-carousel .owl-carousel {
  position: relative;
}

.section-cta-promo-carousel .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .section-cta-promo .cta-promo-parallax {
    min-height: 480px;
  }
}

@media (min-width: 1200px) {
  .section-cta-promo .cta-promo-parallax .bg-overlay-1::before {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.88) 34%,
      rgba(255, 255, 255, 0.35) 58%,
      rgba(255, 255, 255, 0) 78%
    );
  }

  .section-cta-promo .cta-promo-parallax .box-cta {
    max-width: 520px;
  }
}

/* Admin: previsualización de testimonios */
.testimonio-preview-wrap {
  background: var(--fd-surface, #f8f9fa);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.testimonio-preview-card {
  margin: 0;
}

.testimonio-preview-card .quote-carly-text .q {
  white-space: pre-wrap;
  word-break: break-word;
}

#modalPreviewTestimonio .modal-footer .btn {
  min-width: 140px;
}

/* Perfil cliente: avatar lateral */
.perfil-avatar-wrap {
  display: inline-block;
}

.perfil-avatar-btn {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
  line-height: 0;
}

.perfil-avatar-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}

.perfil-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.35rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.perfil-avatar-btn:hover .perfil-avatar-overlay,
.perfil-avatar-btn:focus-visible .perfil-avatar-overlay {
  opacity: 1;
}

/* Admin dashboard */
.admin-dashboard {
  --dash-radius: 1rem;
  --dash-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --dash-shadow-hover: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.admin-dashboard .dashboard-page-title {
  font-family: var(--fd-font-body, inherit);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1f2937;
}

.admin-dashboard .dashboard-page-subtitle {
  font-size: 0.95rem;
}

.admin-dashboard .dashboard-stat-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.25rem 0;
  border-radius: var(--dash-radius);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--dash-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  isolation: isolate;
}

.admin-dashboard .dashboard-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.admin-dashboard .dashboard-stat-card:hover,
.admin-dashboard .dashboard-stat-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--dash-shadow-hover);
  color: #fff;
}

.admin-dashboard .dashboard-stat-card__head,
.admin-dashboard .dashboard-stat-card__label,
.admin-dashboard .dashboard-stat-card__action {
  position: relative;
  z-index: 1;
}

.admin-dashboard .dashboard-stat-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-dashboard .dashboard-stat-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  font-size: 1.1rem;
}

.admin-dashboard .dashboard-stat-card__value {
  font-family: var(--fd-font-body, inherit);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.admin-dashboard .dashboard-stat-card__label {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 1rem;
}

.admin-dashboard .dashboard-stat-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.875rem;
  font-weight: 600;
}

.admin-dashboard .dashboard-stat-card__action i {
  transition: transform 0.25s ease;
}

.admin-dashboard .dashboard-stat-card:hover .dashboard-stat-card__action i,
.admin-dashboard .dashboard-stat-card:focus-visible .dashboard-stat-card__action i {
  transform: translateX(4px);
}

.admin-dashboard .dashboard-stat-card--primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 55%, #818cf8 100%);
}

.admin-dashboard .dashboard-stat-card--warning {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 55%, #fbbf24 100%);
}

.admin-dashboard .dashboard-stat-card--success {
  background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%);
}

.admin-dashboard .dashboard-stat-card--info {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 45%, #3b82f6 100%);
}

.admin-dashboard .dashboard-panel {
  border-radius: var(--dash-radius);
  overflow: hidden;
}

.admin-dashboard .dashboard-panel__header {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1rem 1.25rem;
}

.admin-dashboard .dashboard-panel__title {
  font-family: var(--fd-font-body, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}

.admin-dashboard .dashboard-panel__hint {
  font-size: 0.8125rem;
  color: #6b7280;
}

.admin-dashboard .dashboard-metric-tile {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.admin-dashboard .dashboard-metric-tile:hover,
.admin-dashboard .dashboard-metric-tile:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.admin-dashboard .dashboard-metric-tile__value {
  font-family: var(--fd-font-body, inherit);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
  margin-bottom: 0.25rem;
}

.admin-dashboard .dashboard-metric-tile__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
}

.admin-dashboard .dashboard-empty-state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-dashboard .dashboard-empty-state--success {
  background: #ecfdf5;
  color: #047857;
}

.admin-dashboard .dashboard-empty-state i {
  font-size: 1.1rem;
}

.admin-dashboard .dashboard-notifications {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-dashboard .dashboard-notification-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, 0.15);
  color: #9a3412;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-dashboard .dashboard-notification-item:hover,
.admin-dashboard .dashboard-notification-item:focus-visible {
  transform: translateX(2px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.12);
  color: #9a3412;
}

.admin-dashboard .dashboard-notification-item__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 88, 12, 0.12);
  flex-shrink: 0;
}

.admin-dashboard .dashboard-notification-item__text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.admin-dashboard .dashboard-notification-item__arrow {
  opacity: 0.55;
  font-size: 0.75rem;
}

.admin-dashboard .dashboard-panel .table thead th {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  border-bottom-width: 1px;
}

.admin-dashboard .dashboard-panel .table tbody td {
  vertical-align: middle;
}

.admin-dashboard .dashboard-panel__btn {
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .admin-dashboard .dashboard-stat-card {
    min-height: auto;
  }
}
