/* ============================================================
   Aquapro.cl — aquapro.css
   Variables de marca + estilos que Bootstrap no cubre
   Bootstrap 5 maneja: grid, flexbox, spacing, typography base
   ============================================================ */

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --aq-navy: #0A2540;
  --aq-cyan: #06B6D4;
  --aq-green: #10B981;
  --aq-amber: #F59E0B;
  --aq-red: #FF6B6B;
  --aq-light: #F8FAFB;
  --aq-dark: #0A1628;
  --aq-navy: #0A2540;
}

.btn-cart {
  /*font-size: .75rem;*/
  transition: background .2s;
}

/* Color en estado normal */
.btn-secondary {
  background-color: #0A2540 !important;
  border-color: #0A2540 !important;
  color: #ffffff !important;
  /* Asegura que el texto sea legible */
}

/* Color al pasar el cursor (Hover) */
.btn-secondary:hover {
  background-color: #081d33 !important;
  /* Un tono un poco más oscuro */
  border-color: #081d33 !important;
  color: #ffffff !important;
}

/* Color cuando se hace clic (Focus / Active) */
.btn-secondary:focus,
.btn-secondary:active {
  background-color: #051424 !important;
  border-color: #051424 !important;
  box-shadow: 0 0 0 0.25rem rgba(10, 37, 64, 0.5) !important;
  /* Efecto de brillo personalizado */
}

/* ─── BASE ───────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

.section-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aq-cyan);
  margin-bottom: .75rem;
}

/* ─── PAGE SPACER (below fixed header) ──────────────────── */
.page-spacer {
  height: 90px;
}

@media (max-width: 767px) {
  .page-spacer {
    height: 72px;
  }
}

/* ─── NAVBAR ─────────────────────────────────────────────── */

.oferta-bar {
  background-color: #06B6D4;
  color: #fff;
  font-size: 16px;
  width: 100%;
}

#aqHeader {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1030;
  transition: all .3s;
}

#aqHeader.scrolled #topbar {
  display: none !important;
}

#mainNavBar {
  transition: box-shadow .3s;
}

.hover-cyan:hover {
  color: var(--aq-cyan) !important;
}

/* Nav link hover */
.navbar .nav-link:hover,
.navbar .nav-link.mega-open {
  color: var(--aq-cyan) !important;
}

.navbar .nav-link .arr {
  transition: transform .2s;
}

.navbar .nav-link.mega-open .arr {
  transform: rotate(180deg);
}

.cart-badge {
  line-height: 1;
  padding: 2px 5px !important;
}

/* ─── FOOTER LINKS ───────────────────────────────────────── */
.footer-link:hover {
  color: var(--aq-cyan) !important;
}

/* ─── MEGAMENUS ──────────────────────────────────────────── */
@keyframes megaIn {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes mmImgIn {
  from {
    opacity: 0;
    transform: scale(1.03)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.megamenu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1029;
  background: #fff;
  border-top: 2px solid var(--aq-cyan);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
  animation: megaIn .16s ease-out;
}

.megamenu.show {
  display: block;
}

.megamenu-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 40px;
}

.mm-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.mm-header-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--aq-navy);
  text-transform: uppercase;
  letter-spacing: .15em;
}

.mm-header a {
  margin-left: auto;
  font-size: 11px;
  color: var(--aq-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mm-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}

.mm-img-box {
  border-radius: 10px;
  overflow: hidden;
  background: #f0f9ff;
  height: 260px;
  position: relative;
}

.mm-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: mmImgIn .22s ease-out;
}

.mm-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, .85) 0%, rgba(10, 37, 64, .3) 50%, transparent 100%);
}

.mm-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
}

.mm-img-caption .lbl {
  color: var(--aq-cyan);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 3px;
}

.mm-img-caption .name {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.mm-img-caption .desc {
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
  line-height: 1.4;
}

.mm-catalog-btn {
  margin-top: 8px;
  width: 100%;
  background: var(--aq-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s;
  cursor: pointer;
}

.mm-catalog-btn:hover {
  background: var(--aq-cyan);
}

.mm-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 20px;
  align-items: start;
}

.mm-group {
  margin-bottom: 16px;
}

.mm-group:last-child {
  margin-bottom: 0;
}

.mm-cat-title {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 5px;
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 11px;
  font-weight: 900;
  color: var(--aq-navy);
  text-transform: uppercase;
  letter-spacing: .09em;
  transition: color .15s;
}

.mm-cat-title:hover {
  color: var(--aq-cyan);
}

.mm-subs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mm-sub-btn {
  width: 100%;
  text-align: left;
  padding: 2px 0;
  font-size: 12px;
  color: rgba(10, 37, 64, .65);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
  line-height: 1.7;
}

.mm-sub-btn:hover {
  color: var(--aq-cyan);
}

.mm-col-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--aq-navy);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #f0f0f0;
}

.mm-item-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 0;
  font-size: 13px;
  color: rgba(10, 37, 64, .75);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s;
  margin-bottom: 6px;
}

.mm-item-btn:hover {
  color: var(--aq-cyan);
}

.mm-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.mm-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9ca3af;
}

.mm-badge i {
  color: var(--aq-cyan);
}

/* ─── SEARCH OVERLAY ─────────────────────────────────────── */
.aq-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 1rem 1rem;
}

.aq-search-overlay.show {
  display: flex;
}

.search-box {
  background: #fff;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 680px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}

.search-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f1f1;
}

.search-header input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--aq-navy);
  background: transparent;
}

.search-header input::placeholder {
  color: #9ca3af;
}

.search-results {
  max-height: 320px;
  overflow-y: auto;
}

.search-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 1px solid #f9f9f9;
  transition: background .15s;
  text-align: left;
}

.search-item:hover {
  background: #f9fafb;
}

/* ─── HERO SLIDER ────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 550px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s;
}

.slide.active {
  opacity: 1;
}

.slide-dot {
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}

@media (max-width: 767px) {
  #hero {
    min-height: 580px;
    height: 100svh;
  }
}

/* ─── CATEGORY CARDS ─────────────────────────────────────── */
.cat-card-bs {
  transition: none;
}

.cat-card-bs img {
  transition: transform .5s;
}

/* ─── PRODUCT CARDS ──────────────────────────────────────── */
.product-card {
  transition: transform .3s, box-shadow .3s;
}

.btn-add {
  transition: background .2s !important;
}

.btn-add.added {
  background: #10B981 !important;
}

.qty-num {
  min-width: 28px;
}

/* ─── SCROLL TO TOP ──────────────────────────────────────── */
#scrollTop {
  transition: opacity .3s, transform .3s, background .2s !important;
}

#scrollTop:hover {
  background: var(--aq-cyan) !important;
}

/* ─── TOAST ──────────────────────────────────────────────── */
#toastWrap {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
}

.toast-item {
  background: #10B981;
  color: #fff;
  border-radius: .75rem;
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  white-space: nowrap;
  animation: toastIn .3s ease-out;
  min-width: 240px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ─── OFFCANVAS accordion ────────────────────────────────── */
.accordion-button:not(.collapsed) {
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
}

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--aq-navy);
}

/* ─── UTILITY ────────────────────────────────────────────── */
.text-cyan {
  color: var(--aq-cyan) !important;
}

.text-navy {
  color: var(--aq-navy) !important;
}

.bg-navy {
  background-color: var(--aq-navy) !important;
}

.bg-cyan {
  background-color: var(--aq-cyan) !important;
}

.link-cyan {
  color: var(--aq-cyan);
  font-weight: 600;
  font-size: .875rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s;
}

.link-cyan:hover {
  gap: .7rem;
  color: var(--aq-cyan);
}

/* ─── RESPONSIVE FIXES ───────────────────────────────────── */
/* page-spacer adapta al alto real del header */
@media (max-width: 767px) {
  .page-spacer {
    height: 64px;
  }

  /* sin topbar en mobile */
  #hero {
    min-height: 580px;
    height: 100svh;
  }

  .mm-body {
    grid-template-columns: 1fr;
  }

  .mm-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 12px;
  }
}

@media (max-width: 575px) {
  .megamenu {
    display: none !important;
  }

  /* megamenús solo desktop */
  #hero .display-5 {
    font-size: 1.6rem !important;
  }
}

/* Fix: benefit cards stack on mobile */
@media (max-width: 991px) {
  .benefit-card-inner {
    flex-direction: column !important;
  }

  .benefit-card-inner .benefit-img-col {
    width: 100% !important;
    min-height: 200px;
  }
}

/* Fix: tienda sidebar hidden mobile already handled by d-none d-lg-block */

/* Fix: product card img height en mobile */
@media (max-width: 575px) {
  .product-card .card-img-top-wrap {
    height: 160px !important;
  }
}


/* ─── ACCORDION (info pages: FAQ, envios, etc.) ──────────── */
.accordion-button:not(.collapsed) {
  background: #fff !important;
  color: #0A2540 !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed)::after {
  filter: none;
}

.accordion-button:focus {
  box-shadow: none !important;
}

.accordion-item {
  border: 1px solid #f1f1f1 !important;
}

/* ─── RESPONSIVE: hero content en mobile ─────────────────── */
@media (max-width: 767px) {
  #hero .d-none.d-xl-block {
    display: none !important;
  }

  #hero .d-flex.flex-wrap {
    flex-direction: column !important;
  }

  .slide-indicators {
    left: 1rem;
    bottom: 1.5rem;
  }

  #slide-prev {
    display: none !important;
  }

  #slide-next {
    display: none !important;
  }
}

/* ─── RESPONSIVE: producto detail ────────────────────────── */
@media (max-width: 767px) {
  .prod-thumb {
    width: 64px !important;
    height: 64px !important;
  }
}

/* ─── RESPONSIVE: tienda sidebar ─────────────────────────── */
@media (max-width: 991px) {
  #filterForm {
    padding: .5rem 0;
  }
}

/* ─── STAR PICKER (formulario de reseñas) ────────────────── */
.star-picker {
  display: inline-flex;
  gap: .25rem;
}

.star-btn {
  font-size: 2rem;
  cursor: pointer;
  transition: transform .15s, color .15s;
  color: #d1d5db;
  line-height: 1;
  padding: 0;
  border: none;
  background: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.star-btn:focus-visible {
  outline: 2px solid #06B6D4;
  outline-offset: 2px;
  border-radius: .25rem;
}

.star-btn:hover {
  transform: scale(1.2) !important;
}

/* Review card — nueva reseña highlight */
#reviewsList .col-md-6:first-child .card {
  border-color: #06B6D4 !important;
}

/* Form controls inside review form */
#reviewForm .form-control:focus {
  border-color: #06B6D4;
  box-shadow: 0 0 0 .2rem rgba(6, 182, 212, .15);
}

#reviewForm .form-control.is-invalid:focus {
  box-shadow: 0 0 0 .2rem rgba(239, 68, 68, .15);
}

/* Rating error message */
#ratingError {
  font-size: .75rem;
  color: #ef4444;
  margin-top: .25rem;
}

/* ─── COLOR SWATCHES (producto detail) ─────────────────── */
.color-swatch:hover {
  outline-color: rgba(6, 182, 212, .5) !important;
}

.color-swatch:focus-visible {
  outline-color: #06B6D4 !important;
}

/* ─── PREVENT HORIZONTAL OVERFLOW (producto detail) ─────── */
.col-lg-6,
.col-lg-8,
.col-md-6 {
  overflow-x: hidden;
}

.badge {
  max-width: 100%;
}

@media (max-width: 575px) {

  /* Precio en detalle: tamaño adaptado */
  .producto-price {
    font-size: 1.75rem !important;
  }
}