/**
 * ASTROQUIM — Capa de mejoras
 * Se carga DESPUÉS de style.css. No modifica la plantilla original:
 * la sobreescribe de forma quirúrgica.
 */

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  --aq-brand: #cc1616;
  --aq-brand-dark: #a51111;
  --aq-brand-light: #e82d2d;
  --aq-ink: #191919;
  --aq-wa: #25d366;
  --aq-wa-dark: #128c7e;

  --aq-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --aq-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --aq-ease-back: cubic-bezier(0.34, 1.4, 0.64, 1);

  --aq-t-fast: 0.18s;
  --aq-t-base: 0.32s;
  --aq-t-slow: 0.6s;

  --aq-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --aq-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --aq-shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.16);
  --aq-radius: 10px;
}

/* Accesibilidad: respetar preferencia del sistema */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Foco visible y consistente (accesibilidad de teclado) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--aq-brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   2. Transición entre páginas (View Transitions API)
   Degrada sin error en navegadores que no la soportan.
   ============================================================ */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: aq-fade-out 0.22s var(--aq-ease-soft) both;
}
::view-transition-new(root) {
  animation: aq-fade-in 0.34s var(--aq-ease-out) both;
}
@keyframes aq-fade-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes aq-fade-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* ============================================================
   3. Preloader con salida suave
   ============================================================ */
#preloader {
  transition: opacity 0.45s var(--aq-ease-soft), visibility 0.45s;
}
#preloader.aq-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#preloader:before {
  border-width: 4px;
  animation: animate-preloader 0.85s var(--aq-ease-soft) infinite;
}

/* ============================================================
   4. Header y navegación
   ============================================================ */
#header {
  transition: height var(--aq-t-base) var(--aq-ease-soft),
              background-color var(--aq-t-base) var(--aq-ease-soft),
              box-shadow var(--aq-t-base) var(--aq-ease-soft),
              backdrop-filter var(--aq-t-base);
  will-change: height;
}
#header.aq-scrolled {
  height: 58px;
  background: rgba(25, 25, 25, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}
#header.aq-scrolled .logo img {
  max-height: 32px;
  transition: max-height var(--aq-t-base) var(--aq-ease-soft);
}
#header .logo img {
  transition: max-height var(--aq-t-base) var(--aq-ease-soft),
              transform var(--aq-t-base) var(--aq-ease-back);
}
#header .logo:hover img {
  transform: scale(1.06) rotate(-2deg);
}
#header.aq-scrolled .navbar > ul > li > a {
  padding-top: 19px;
  padding-bottom: 18px;
}

/* Subrayado animado en el menú, en vez del bloque rojo seco */
@media (min-width: 992px) {
  .navbar > ul > li > a {
    position: relative;
    transition: color var(--aq-t-fast) var(--aq-ease-soft),
                padding var(--aq-t-base) var(--aq-ease-soft);
  }
  .navbar > ul > li > a::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 14px;
    height: 2px;
    background: var(--aq-brand-light);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--aq-t-base) var(--aq-ease-out);
  }
  .navbar > ul > li > a:hover::after,
  .navbar > ul > li > a.active::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
  /* Quitamos el fondo rojo duro del hover */
  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
    background: transparent;
    color: #fff;
  }
  .navbar .dropdown ul {
    border-radius: var(--aq-radius);
    overflow: hidden;
    transform: translateY(8px);
    transition: opacity var(--aq-t-base) var(--aq-ease-out),
                transform var(--aq-t-base) var(--aq-ease-out),
                visibility var(--aq-t-base);
  }
  .navbar .dropdown:hover > ul {
    transform: translateY(0);
  }
  .navbar .dropdown ul a {
    transition: background-color var(--aq-t-fast), color var(--aq-t-fast),
                padding-left var(--aq-t-fast) var(--aq-ease-out);
  }
  .navbar .dropdown ul a:hover,
  .navbar .dropdown ul li:hover > a {
    background: var(--aq-brand);
    padding-left: 26px;
  }
}

/* Menú móvil con entrada animada */
.navbar-mobile {
  animation: aq-fade-in 0.28s var(--aq-ease-out) both;
}
.navbar-mobile ul {
  border-radius: var(--aq-radius);
  animation: aq-slide-down 0.34s var(--aq-ease-out) both;
}
@keyframes aq-slide-down {
  from { opacity: 0; transform: translateY(-14px); }
}
.mobile-nav-toggle {
  transition: transform var(--aq-t-base) var(--aq-ease-back), color var(--aq-t-fast);
}
.mobile-nav-toggle.bi-x {
  transform: rotate(90deg);
}

/* ============================================================
   5. Hero
   ============================================================ */
#hero h1,
#hero h2,
#hero .btn-get-started {
  animation: aq-hero-in 0.85s var(--aq-ease-out) both;
}
#hero h2 { animation-delay: 0.12s; }
#hero .btn-get-started { animation-delay: 0.24s; }
@keyframes aq-hero-in {
  from { opacity: 0; transform: translateY(26px); }
}

#hero .btn-get-started {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: color var(--aq-t-base) var(--aq-ease-soft),
              border-color var(--aq-t-base) var(--aq-ease-soft),
              transform var(--aq-t-base) var(--aq-ease-back),
              box-shadow var(--aq-t-base) var(--aq-ease-soft);
}
#hero .btn-get-started::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--aq-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--aq-t-base) var(--aq-ease-out);
  z-index: -1;
}
#hero .btn-get-started:hover {
  background: transparent;
  border-color: var(--aq-brand);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(204, 22, 22, 0.4);
}
#hero .btn-get-started:hover::before {
  transform: scaleX(1);
}
#hero .btn-get-started:active {
  transform: translateY(-1px);
}

/* ============================================================
   6. Tarjetas: hover SIN layout shift
   El original animaba `padding` (provoca reflow/jank).
   Ahora animamos transform + shadow, que corren en GPU.
   ============================================================ */
.services .icon-box {
  border-radius: var(--aq-radius);
  transition: transform var(--aq-t-base) var(--aq-ease-out),
              box-shadow var(--aq-t-base) var(--aq-ease-out),
              background-color var(--aq-t-base) var(--aq-ease-soft);
  will-change: transform;
}
.services .icon-box:hover {
  padding: 80px 20px; /* neutraliza el cambio de padding original */
  transform: translateY(-10px);
  box-shadow: var(--aq-shadow-lg);
}
.services .icon-box .icon {
  border-radius: 8px;
  transition: background-color var(--aq-t-base) var(--aq-ease-soft),
              transform var(--aq-t-base) var(--aq-ease-back);
}
.services .icon-box:hover .icon {
  transform: rotate(-8deg) scale(1.1);
}
.services .icon-box .icon::before {
  border-radius: 8px;
  transition: transform var(--aq-t-base) var(--aq-ease-out),
              background-color var(--aq-t-base);
}
.services .icon-box:hover .icon::before {
  transform: translateZ(-1px) translate(4px, 4px);
}

.why-us .box {
  border-radius: var(--aq-radius);
  transition: transform var(--aq-t-base) var(--aq-ease-out),
              box-shadow var(--aq-t-base) var(--aq-ease-out),
              background-color var(--aq-t-base) var(--aq-ease-soft);
  will-change: transform;
}
.why-us .box:hover {
  padding: 50px 30px; /* neutraliza el salto original */
  transform: translateY(-10px);
  box-shadow: var(--aq-shadow-lg);
}
.why-us .box span {
  transition: transform var(--aq-t-base) var(--aq-ease-back), color var(--aq-t-base);
  display: inline-block;
}
.why-us .box:hover span {
  transform: scale(1.15);
}

/* Clientes */
.clients img {
  transition: filter var(--aq-t-slow) var(--aq-ease-soft),
              transform var(--aq-t-base) var(--aq-ease-back),
              opacity var(--aq-t-base);
  opacity: 0.75;
}
.clients img:hover {
  transform: scale(1.12);
  opacity: 1;
}

/* ============================================================
   7. Portafolio / catálogo (index)
   ============================================================ */
.portfolio .portfolio-item {
  border-radius: var(--aq-radius);
  overflow: hidden;
  position: relative;
  transition: transform var(--aq-t-base) var(--aq-ease-out),
              box-shadow var(--aq-t-base) var(--aq-ease-out);
}
.portfolio .portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--aq-shadow-md);
}
.portfolio .portfolio-item img {
  transition: transform var(--aq-t-slow) var(--aq-ease-out),
              filter var(--aq-t-base) var(--aq-ease-soft);
}
.portfolio .portfolio-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.82);
}
.portfolio .portfolio-item .portfolio-info {
  transform: translateY(14px);
  border-radius: 8px;
  transition: opacity var(--aq-t-base) var(--aq-ease-out),
              transform var(--aq-t-base) var(--aq-ease-out);
}
.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  transform: translateY(0);
}

/* Filtros del portafolio con pastilla animada */
.portfolio #portfolio-flters li {
  position: relative;
  border-radius: 999px;
  transition: color var(--aq-t-fast) var(--aq-ease-soft),
              background-color var(--aq-t-base) var(--aq-ease-soft);
}
.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  background: rgba(204, 22, 22, 0.09);
  color: var(--aq-brand);
}

/* ============================================================
   8. Botones de acción (WhatsApp / correo / teléfono)
   ============================================================ */
.aq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--aq-t-base) var(--aq-ease-back),
              box-shadow var(--aq-t-base) var(--aq-ease-out),
              background-color var(--aq-t-base) var(--aq-ease-soft),
              color var(--aq-t-base);
}
.aq-btn i { font-size: 17px; line-height: 1; }
.aq-btn:hover { transform: translateY(-2px); }
.aq-btn:active { transform: translateY(0) scale(0.98); }
.aq-btn:disabled,
.aq-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

/* Onda al hacer clic */
.aq-btn .aq-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: aq-ripple 0.6s var(--aq-ease-out);
  pointer-events: none;
}
@keyframes aq-ripple {
  to { transform: scale(2.6); opacity: 0; }
}

.aq-btn--wa { background: var(--aq-wa); color: #fff; }
.aq-btn--wa:hover { background: var(--aq-wa-dark); color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.42); }

.aq-btn--mail { background: var(--aq-brand); color: #fff; }
.aq-btn--mail:hover { background: var(--aq-brand-dark); color: #fff; box-shadow: 0 8px 22px rgba(204, 22, 22, 0.38); }

.aq-btn--ghost {
  background: transparent;
  color: var(--aq-ink);
  border: 1.5px solid #dcdcdc;
}
.aq-btn--ghost:hover {
  background: #f6f6f6;
  color: var(--aq-brand);
  border-color: var(--aq-brand);
}

.aq-btn--sm { padding: 6px 12px; font-size: 12.5px; }
.aq-btn--sm i { font-size: 15px; }
.aq-btn--block { width: 100%; }

/* ============================================================
   9. Botón flotante de WhatsApp
   ============================================================ */
.aq-wa-float {
  position: fixed;
  right: 18px;
  bottom: 76px; /* encima del back-to-top */
  z-index: 997;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--aq-wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.85);
  transition: opacity var(--aq-t-base) var(--aq-ease-out),
              transform var(--aq-t-base) var(--aq-ease-back),
              visibility var(--aq-t-base),
              background-color var(--aq-t-base);
}
.aq-wa-float.aq-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.aq-wa-float:hover {
  background: var(--aq-wa-dark);
  color: #fff;
  transform: translateY(-3px) scale(1.06);
}
.aq-wa-float i {
  font-size: 30px;
  line-height: 0;
}
/* Pulso sutil, se detiene al pasar el mouse */
.aq-wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--aq-wa);
  animation: aq-pulse 2.4s var(--aq-ease-out) infinite;
}
.aq-wa-float:hover::after { animation-play-state: paused; }
@keyframes aq-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* Etiqueta que aparece al hacer hover en escritorio */
.aq-wa-float .aq-wa-label {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: var(--aq-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 6px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity var(--aq-t-base) var(--aq-ease-out),
              transform var(--aq-t-base) var(--aq-ease-out);
}
.aq-wa-float:hover .aq-wa-label { opacity: 1; transform: translateX(0); }
@media (max-width: 575px) {
  .aq-wa-float .aq-wa-label { display: none; }
  .aq-wa-float { width: 52px; height: 52px; right: 14px; bottom: 70px; }
}

/* Back to top mejorado */
.back-to-top {
  border-radius: 50%;
  transform: translateY(16px) scale(0.85);
  transition: opacity var(--aq-t-base) var(--aq-ease-out),
              transform var(--aq-t-base) var(--aq-ease-back),
              visibility var(--aq-t-base),
              background-color var(--aq-t-base);
}
.back-to-top.active { transform: translateY(0) scale(1); }
.back-to-top:hover { transform: translateY(-3px) scale(1.06); }

/* ============================================================
   10. Tarjetas de ejecutivo
   ============================================================ */
.aq-ejecutivos { display: grid; gap: 14px; margin: 18px 0; }

.aq-exec-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--aq-radius);
  padding: 18px;
  box-shadow: var(--aq-shadow-sm);
  transition: transform var(--aq-t-base) var(--aq-ease-out),
              box-shadow var(--aq-t-base) var(--aq-ease-out),
              border-color var(--aq-t-base);
}
.aq-exec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--aq-shadow-md);
  border-color: rgba(204, 22, 22, 0.28);
}
.aq-exec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.aq-exec-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aq-brand), var(--aq-brand-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  font-family: "Raleway", sans-serif;
  letter-spacing: 0.5px;
}
.aq-exec-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--aq-ink);
  line-height: 1.25;
}
.aq-exec-role { font-size: 12.5px; color: #888; }
.aq-exec-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   11. Catálogo (DataTables)
   ============================================================ */
.aq-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.aq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aq-chip {
  border: 1.5px solid #e2e2e2;
  background: #fff;
  color: #555;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--aq-t-fast) var(--aq-ease-back),
              background-color var(--aq-t-base) var(--aq-ease-soft),
              border-color var(--aq-t-base),
              color var(--aq-t-base),
              box-shadow var(--aq-t-base);
}
.aq-chip:hover {
  transform: translateY(-2px);
  border-color: var(--aq-brand);
  color: var(--aq-brand);
}
.aq-chip.is-active {
  background: var(--aq-brand);
  border-color: var(--aq-brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(204, 22, 22, 0.3);
}
.aq-chip .aq-chip-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.7;
  font-weight: 500;
}

/* Entrada escalonada de filas */
table.dataTable tbody tr {
  transition: background-color var(--aq-t-fast) var(--aq-ease-soft);
}
table.dataTable tbody tr:hover { background-color: #fdf4f4 !important; }
table.dataTable tbody tr.aq-row-in {
  animation: aq-row-in 0.4s var(--aq-ease-out) both;
}
@keyframes aq-row-in {
  from { opacity: 0; transform: translateY(8px); }
}
table.dataTable tbody td { vertical-align: middle; }

/* Resaltado del término buscado */
.aq-hl {
  background: #ffe9a8;
  border-radius: 3px;
  padding: 0 2px;
  animation: aq-hl-in 0.3s var(--aq-ease-out) both;
}
@keyframes aq-hl-in { from { background: #ffd24d; } }

/* Controles de DataTables */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
div.dt-container .dt-search input,
div.dt-container .dt-length select {
  border: 1.5px solid #e2e2e2;
  border-radius: 8px;
  padding: 7px 12px;
  transition: border-color var(--aq-t-base) var(--aq-ease-soft),
              box-shadow var(--aq-t-base) var(--aq-ease-soft);
}
.dataTables_wrapper .dataTables_filter input:focus,
div.dt-container .dt-search input:focus {
  border-color: var(--aq-brand);
  box-shadow: 0 0 0 3px rgba(204, 22, 22, 0.14);
  outline: none;
}
/* --- Paginación ---
   La hoja de DataTables fuerza `color: inherit !important` sobre
   .dt-paging-button(.current) con especificidad (0,4,1): el número quedaba
   en gris #444 sobre el rojo y se perdía (1.71:1). Estas reglas la superan
   (0,4,2) y sustituyen el degradado negro del hover por uno de marca. */
div.dt-container div.dt-paging { margin-top: 14px; }

div.dt-container div.dt-paging .dt-paging-button {
  margin-left: 4px;
  font-weight: 600;
  border: 1px solid #e8e0e0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--aq-brand) !important;
  transition: background-color var(--aq-t-fast) var(--aq-ease-soft),
              color var(--aq-t-fast),
              border-color var(--aq-t-fast),
              transform var(--aq-t-fast) var(--aq-ease-back);
}
div.dt-container div.dt-paging .dt-paging-button:hover {
  background: #fdeeee !important;
  border-color: var(--aq-brand-light) !important;
  color: var(--aq-brand-dark) !important;
  transform: translateY(-1px);
}
div.dt-container div.dt-paging .dt-paging-button:active {
  background: #f9dede !important;
  box-shadow: none !important;
  transform: translateY(0);
}

/* Página actual: rojo sólido con texto blanco */
div.dt-container div.dt-paging .dt-paging-button.current,
div.dt-container div.dt-paging .dt-paging-button.current:hover,
div.dt-container div.dt-paging .dt-paging-button.current:active {
  background: var(--aq-brand) !important;
  border-color: var(--aq-brand) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(204, 22, 22, 0.28) !important;
  transform: none;
}

/* Deshabilitados (‹ « en la primera página): apagados y sin hover */
div.dt-container div.dt-paging .dt-paging-button.disabled,
div.dt-container div.dt-paging .dt-paging-button.disabled:hover,
div.dt-container div.dt-paging .dt-paging-button.disabled:active {
  background: #fff !important;
  border-color: #efefef !important;
  color: #b8b0b0 !important;
  box-shadow: none !important;
  transform: none;
  cursor: default;
}

/* Contador "_TOTAL_ productos" */
div.dt-container .dt-info {
  color: #7a6c6c; /* 5.01:1 sobre blanco */
  font-size: 13px;
  padding-top: 14px;
}

/* Checkbox de cotización */
.aq-check {
  width: 18px;
  height: 18px;
  accent-color: var(--aq-brand);
  cursor: pointer;
  transition: transform var(--aq-t-fast) var(--aq-ease-back);
}
.aq-check:hover { transform: scale(1.15); }

.aq-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.aq-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--aq-t-fast) var(--aq-ease-back),
              background-color var(--aq-t-base),
              color var(--aq-t-base),
              border-color var(--aq-t-base);
}
.aq-icon-btn:hover { transform: translateY(-2px); }
.aq-icon-btn--wa:hover { background: var(--aq-wa); border-color: var(--aq-wa); color: #fff; }
.aq-icon-btn--mail:hover { background: var(--aq-brand); border-color: var(--aq-brand); color: #fff; }
.aq-icon-btn--pdf:hover { background: var(--aq-ink); border-color: var(--aq-ink); color: #fff; }

/* Skeleton mientras carga el JSON */
.aq-skeleton { display: grid; gap: 10px; }
.aq-skeleton-row {
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: aq-shimmer 1.3s linear infinite;
}
@keyframes aq-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Estado vacío */
.aq-empty {
  text-align: center;
  padding: 46px 20px;
  color: #999;
  animation: aq-fade-in 0.4s var(--aq-ease-out) both;
}
.aq-empty i { font-size: 44px; color: #ddd; display: block; margin-bottom: 12px; }

/* ============================================================
   12. Barra de cotización flotante
   ============================================================ */
.aq-quote-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 998;
  transform: translateX(-50%) translateY(140%);
  background: var(--aq-ink);
  color: #fff;
  border-radius: 999px;
  padding: 11px 13px 11px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--aq-shadow-lg);
  transition: transform 0.45s var(--aq-ease-back), opacity var(--aq-t-base);
  max-width: calc(100vw - 28px);
}
.aq-quote-bar.aq-visible { transform: translateX(-50%) translateY(0); }
.aq-quote-count {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  font-family: "Raleway", sans-serif;
}
.aq-quote-count strong {
  display: inline-block;
  min-width: 22px;
  transition: transform var(--aq-t-base) var(--aq-ease-back);
}
.aq-quote-count.aq-bump strong { transform: scale(1.5); }
.aq-quote-actions { display: flex; gap: 8px; align-items: center; }
.aq-quote-clear {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 13px;
  padding: 6px;
  transition: color var(--aq-t-fast);
}
.aq-quote-clear:hover { color: #fff; }
@media (max-width: 575px) {
  .aq-quote-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: translateY(140%);
    border-radius: 14px;
    padding: 12px 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .aq-quote-bar.aq-visible { transform: translateY(0); }
}

/* ============================================================
   13. Toast
   ============================================================ */
.aq-toast-zone {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.aq-toast {
  background: var(--aq-ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--aq-shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: aq-toast-in 0.4s var(--aq-ease-back) both;
}
.aq-toast.aq-out { animation: aq-toast-out 0.3s var(--aq-ease-soft) both; }
.aq-toast--ok i { color: var(--aq-wa); }
.aq-toast--err i { color: #ff6b6b; }
@keyframes aq-toast-in {
  from { opacity: 0; transform: translateX(40px) scale(0.9); }
}
@keyframes aq-toast-out {
  to { opacity: 0; transform: translateX(40px) scale(0.94); }
}
@media (max-width: 575px) {
  .aq-toast-zone { left: 12px; right: 12px; top: 76px; }
}

/* ============================================================
   14. Reveal por IntersectionObserver (respaldo de AOS)
   ============================================================ */
.aq-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--aq-ease-out), transform 0.7s var(--aq-ease-out);
}
.aq-reveal.aq-in { opacity: 1; transform: none; }

/* ============================================================
   15. Formulario y varios
   ============================================================ */
.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 8px;
  transition: border-color var(--aq-t-base) var(--aq-ease-soft),
              box-shadow var(--aq-t-base) var(--aq-ease-soft);
}
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--aq-brand);
  box-shadow: 0 0 0 3px rgba(204, 22, 22, 0.13);
  outline: none;
}
.contact .php-email-form button[type="submit"] {
  border-radius: 999px;
  transition: transform var(--aq-t-base) var(--aq-ease-back),
              box-shadow var(--aq-t-base),
              background-color var(--aq-t-base);
}
.contact .php-email-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(204, 22, 22, 0.34);
}

.info-box {
  border-radius: var(--aq-radius);
  transition: transform var(--aq-t-base) var(--aq-ease-out),
              box-shadow var(--aq-t-base) var(--aq-ease-out);
}
.info-box:hover { transform: translateY(-4px); box-shadow: var(--aq-shadow-md); }

#footer .footer-links ul a {
  transition: transform var(--aq-t-base) var(--aq-ease-out), color var(--aq-t-fast);
  display: inline-block;
}
#footer .footer-links ul a:hover { transform: translateX(5px); color: var(--aq-brand-light); }

#footer .social-links a,
#topbar .social-links a {
  transition: transform var(--aq-t-base) var(--aq-ease-back), color var(--aq-t-fast);
  display: inline-block;
}
#footer .social-links a:hover,
#topbar .social-links a:hover { transform: translateY(-3px) scale(1.12); }

.breadcrumbs ol li a {
  transition: color var(--aq-t-fast), transform var(--aq-t-fast) var(--aq-ease-out);
  display: inline-block;
}
.breadcrumbs ol li a:hover { transform: translateX(-2px); }

/* Impresión */
@media print {
  .aq-wa-float, .aq-quote-bar, .aq-toast-zone,
  .back-to-top, #preloader, #topbar { display: none !important; }
}

/* ============================================================
   16. Tarjetas de línea + modal de catálogo (rediseño)
   ============================================================ */

/* --- Rejilla de tarjetas de línea --- */
.aq-lineas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.aq-linea-card {
  position: relative;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: var(--aq-ink);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  min-height: 250px;
  display: flex;
  box-shadow: var(--aq-shadow-md);
  transition: transform var(--aq-t-base) var(--aq-ease-out),
              box-shadow var(--aq-t-base) var(--aq-ease-out);
}
/* Capa de imagen: se escala en hover sin mover el texto */
.aq-linea-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform var(--aq-t-slow) var(--aq-ease-out),
              filter var(--aq-t-base) var(--aq-ease-soft);
  filter: saturate(1.05);
  z-index: 0;
}
/* Degradado oscuro para legibilidad del texto */
.aq-linea-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.92) 0%,
    rgba(20, 15, 15, 0.72) 42%,
    rgba(30, 20, 20, 0.32) 100%
  );
  transition: background var(--aq-t-base) var(--aq-ease-soft);
}
/* Acento de marca que aparece en hover */
.aq-linea-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  z-index: 2;
  background: linear-gradient(180deg, var(--aq-brand), var(--aq-brand-light));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--aq-t-base) var(--aq-ease-out);
}
.aq-linea-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--aq-shadow-lg);
}
.aq-linea-card:hover::before { transform: scaleY(1); }
.aq-linea-card:hover .aq-linea-bg {
  transform: scale(1.1);
  filter: saturate(1.15);
}
.aq-linea-card:hover .aq-linea-bg::after {
  background: linear-gradient(
    to top,
    rgba(120, 12, 12, 0.92) 0%,
    rgba(60, 12, 12, 0.7) 45%,
    rgba(30, 15, 15, 0.34) 100%
  );
}
/* Contenido sobre la imagen */
.aq-linea-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 24px;
  width: 100%;
}
.aq-linea-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.aq-linea-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 18px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.aq-linea-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aq-linea-count {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(204, 22, 22, 0.85);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.aq-linea-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: gap var(--aq-t-base) var(--aq-ease-out);
}
.aq-linea-card:hover .aq-linea-go { gap: 12px; }

/* --- Filtro ligero: select + búsqueda --- */
.aq-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.aq-filtros .aq-field {
  position: relative;
  flex: 1 1 220px;
}
.aq-filtros .aq-field i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 15px;
  pointer-events: none;
}
.aq-input, .aq-select {
  width: 100%;
  border: 1.5px solid #e2e2e2;
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  color: #444;
  background: #fff;
  transition: border-color var(--aq-t-base) var(--aq-ease-soft),
              box-shadow var(--aq-t-base) var(--aq-ease-soft);
}
.aq-select {
  padding-left: 38px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23888' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.aq-input:focus, .aq-select:focus {
  border-color: var(--aq-brand);
  box-shadow: 0 0 0 3px rgba(204, 22, 22, 0.13);
  outline: none;
}
.aq-filtros .aq-result-count {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
}

/* --- Modal --- */
.aq-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--aq-t-base) var(--aq-ease-soft), visibility var(--aq-t-base);
}
.aq-modal.aq-open { visibility: visible; opacity: 1; }
.aq-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.aq-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: min(960px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s var(--aq-ease-back), opacity var(--aq-t-base);
}
.aq-modal.aq-open .aq-modal-panel { transform: none; opacity: 1; }

.aq-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.aq-modal-head h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--aq-ink);
  margin: 0 0 4px;
}
.aq-modal-head p { font-size: 13px; color: #999; margin: 0; }
.aq-modal-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #f2f2f2;
  color: #555;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--aq-t-base) var(--aq-ease-back), background-color var(--aq-t-base), color var(--aq-t-base);
}
.aq-modal-close:hover { background: var(--aq-brand); color: #fff; transform: rotate(90deg); }

.aq-modal-body {
  padding: 18px 24px 8px;
  overflow-y: auto;
  flex: 1;
}
.aq-modal-foot {
  padding: 14px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fafafa;
}
.aq-modal-foot .aq-exec-mini {
  font-size: 13px;
  color: #777;
}
.aq-modal-foot .aq-exec-mini strong { color: var(--aq-ink); }
.aq-modal-foot .aq-foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* En el modal la tabla respira */
.aq-modal-body table.dataTable { margin-top: 6px !important; }
.aq-modal-body .dt-container .dt-length,
.aq-modal-body .dataTables_length { display: none; } /* menos ruido, paginación fija */

body.aq-modal-abierto { overflow: hidden; }

@media (max-width: 575px) {
  .aq-modal { padding: 0; }
  .aq-modal-panel { border-radius: 0; max-height: 100vh; height: 100vh; width: 100%; }
  .aq-modal-foot { flex-direction: column; align-items: stretch; }
  .aq-modal-foot .aq-foot-actions .aq-btn { flex: 1; }
}

/* --- Pie del modal: contacto del ejecutivo --- */
.aq-modal-foot {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.aq-foot-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 10px;
}
.aq-foot-label i { color: var(--aq-brand); margin-right: 5px; }
.aq-foot-execs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
/* Tarjetas de ejecutivo dentro del pie: más compactas */
.aq-foot-execs .aq-exec-card {
  margin: 0;
  padding: 14px;
  box-shadow: none;
  background: #fff;
}
.aq-foot-execs .aq-ejecutivos { gap: 12px; margin: 0; }
.aq-foot-actions {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 575px) {
  .aq-foot-actions .aq-btn { flex: 1; }
}

/* Fallback si la imagen no carga: degradado de marca en la tarjeta */
.aq-linea-card { background: linear-gradient(135deg, #2a1010, var(--aq-ink)); }
/* Grid un poco más alto para lucir la imagen */
.aq-lineas-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 575px) {
  .aq-linea-card { min-height: 210px; }
}
