/* Cool Pixel - estilos de marca (complementa Tailwind CDN) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --color-primary: #a3a3d5;
  --color-dark: #1d2751;
  --color-accent-cyan: #00bfc7;
  --color-accent-pink: #ff8bbb;
  --color-accent-lavender: #a3a3d5;
  --color-accent-yellow: #ffc200;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f6fb;
  --color-text: #1d2751;
  --color-text-muted: #64748b;
  --color-border: #e8e6f0;
  --whatsapp-green: #25d366;
  --radius-card: 1.25rem;
  --shadow-card: 0 4px 24px -4px rgba(29, 39, 81, 0.08);
  --shadow-card-hover: 0 12px 32px -8px rgba(29, 39, 81, 0.14);
}

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', system-ui, sans-serif; color: var(--color-text); background: var(--color-bg); }
h1, h2, h3, h4 { font-weight: 800; }

.rainbow-stripe { height: 4px; width: 100%; background: linear-gradient(90deg, var(--color-accent-cyan) 0%, var(--color-accent-cyan) 25%, var(--color-accent-pink) 25%, var(--color-accent-pink) 50%, var(--color-accent-lavender) 50%, var(--color-accent-lavender) 75%, var(--color-accent-yellow) 75%, var(--color-accent-yellow) 100%); }

.section-cta {
  background: radial-gradient(ellipse 60% 50% at 85% 20%, rgba(255, 139, 187, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(0, 191, 199, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, #ffffff 100%);
}

.section-footer { background-color: var(--color-dark) !important; color: #fff; }

.btn-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; padding: 0.75rem 2rem; border-radius: 9999px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.btn-brand-cyan { background: var(--color-accent-cyan); color: #fff; }
.btn-brand-pink { background: var(--color-accent-pink); color: #fff; }
.btn-brand-navy { background: var(--color-dark); color: #fff; }
.btn-brand-outline { background: #fff; color: var(--color-text); border: 2px solid var(--color-border); }

.card-craft {
  background: #fff; border-radius: var(--radius-card); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card); transition: transform 0.25s, box-shadow 0.25s;
  display: block; text-decoration: none; color: inherit;
}
.card-craft:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.feature-icon { width: 4rem; height: 4rem; border-radius: 1.25rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.feature-icon--cyan { background: rgba(0, 191, 199, 0.15); color: var(--color-accent-cyan); }
.feature-icon--pink { background: rgba(255, 139, 187, 0.15); color: var(--color-accent-pink); }
.feature-icon--lavender { background: rgba(163, 163, 213, 0.2); color: #7b7bb8; }

.page-header { background: var(--color-bg-alt); padding: 3rem 0; position: relative; }
.page-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-accent-cyan) 0%, var(--color-accent-cyan) 25%, var(--color-accent-pink) 25%, var(--color-accent-pink) 50%, var(--color-accent-lavender) 50%, var(--color-accent-lavender) 75%, var(--color-accent-yellow) 75%, var(--color-accent-yellow) 100%);
}

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.whatsapp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: var(--whatsapp-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* Filtros de categoría — intenso por defecto, suave al seleccionar */
.cat-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, filter 0.2s;
}

.cat-pill--all {
  background: var(--color-dark);
  box-shadow: 0 4px 14px rgba(29, 39, 81, 0.35);
}
.cat-pill--all:hover {
  filter: brightness(1.08);
}
.cat-pill--all.is-active {
  background: rgba(29, 39, 81, 0.5);
  box-shadow: none;
}

.cat-pill--lavender {
  background: var(--color-accent-lavender);
  box-shadow: 0 4px 14px rgba(163, 163, 213, 0.45);
}
.cat-pill--lavender:hover {
  filter: brightness(1.06);
}
.cat-pill--lavender.is-active {
  background: rgba(163, 163, 213, 0.58);
  box-shadow: none;
}

.cat-pill--cyan {
  background: var(--color-accent-cyan);
  box-shadow: 0 4px 14px rgba(0, 191, 199, 0.4);
}
.cat-pill--cyan:hover {
  filter: brightness(1.06);
}
.cat-pill--cyan.is-active {
  background: rgba(0, 191, 199, 0.52);
  box-shadow: none;
}

.cat-pill--pink {
  background: var(--color-accent-pink);
  box-shadow: 0 4px 14px rgba(255, 139, 187, 0.4);
}
.cat-pill--pink:hover {
  filter: brightness(1.06);
}
.cat-pill--pink.is-active {
  background: rgba(255, 139, 187, 0.58);
  box-shadow: none;
}

.cat-pill--yellow {
  background: var(--color-accent-yellow);
  box-shadow: 0 4px 14px rgba(255, 194, 0, 0.45);
  text-shadow: 0 1px 2px rgba(29, 39, 81, 0.3);
}
.cat-pill--yellow:hover {
  filter: brightness(1.05);
}
.cat-pill--yellow.is-active {
  background: rgba(255, 194, 0, 0.62);
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(29, 39, 81, 0.25);
}

/* Mapa Google — contacto y footer */
.cp-map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.cp-map__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}
.cp-map__link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent-cyan);
  text-decoration: none;
}
.cp-map__link:hover { text-decoration: underline; }
.cp-map__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: #e8e6f0;
  aspect-ratio: 16 / 9;
  min-height: 220px;
}
.cp-map--footer .cp-map__frame {
  aspect-ratio: 21 / 9;
  min-height: 180px;
  border-color: rgba(255, 255, 255, 0.2);
}
.cp-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cp-map__footer-meta {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
}
.cp-map__footer-meta a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cp-map__footer-meta a:hover {
  color: var(--color-accent-cyan);
}
@media (max-width: 640px) {
  .cp-map--footer .cp-map__frame {
    aspect-ratio: 4 / 3;
  }
}

/* Galería producto — navegación */
.cp-gallery-stage__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
}
.cp-gallery-stage__media img,
.cp-gallery-stage__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-gallery-zoom-hint {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(29, 39, 81, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cp-gallery-zoom-hint--play {
  left: 50%;
  top: 50%;
  bottom: auto;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  background: rgba(29, 39, 81, 0.72);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.cp-gallery-zoom-hint--play svg {
  margin-left: 3px; /* optical center of triangle */
}
.cp-gallery-stage__media.is-video,
.cp-gallery-stage__media:has(.cp-gallery-zoom-hint--play) {
  cursor: pointer;
}
.cp-gallery-thumb__play {
  position: absolute;
  inset: 0;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  background: rgba(29, 39, 81, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.cp-gallery-thumb__play svg {
  width: 1rem;
  height: 1rem;
  margin-left: 2px;
}
.cp-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(29, 39, 81, 0.18);
  transition: background 0.15s, transform 0.15s;
}
.cp-gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.cp-gallery-nav--prev { left: 0.75rem; }
.cp-gallery-nav--next { right: 0.75rem; }
.cp-gallery-counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(29, 39, 81, 0.65);
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
}
.cp-gallery-dots {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  z-index: 3;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.5rem;
  border-radius: 9999px;
  background: rgba(29, 39, 81, 0.35);
}
.cp-gallery-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, width 0.15s;
}
.cp-gallery-dot.is-active {
  background: #fff;
  width: 1rem;
  border-radius: 9999px;
}

/* Miniaturas — una sola fila con desplazamiento */
.cp-thumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cp-thumbs__track {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
}
.cp-thumbs__track::-webkit-scrollbar {
  display: none;
}
.cp-thumbs__nav {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background: #fff;
  color: var(--color-dark);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, border-color 0.15s;
}
.cp-thumbs.is-scrollable .cp-thumbs__nav {
  display: inline-flex;
}
.cp-thumbs__nav:hover:not(:disabled) {
  border-color: var(--color-accent-cyan);
  background: rgba(0, 191, 199, 0.08);
}
.cp-thumbs__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.cp-gallery-thumb {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  position: relative;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #f3f4f6;
  transition: border-color 0.15s, opacity 0.15s, box-shadow 0.15s;
}
.cp-gallery-thumb img,
.cp-gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cp-gallery-thumb.is-active {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 0 1px rgba(0, 191, 199, 0.35);
}
.cp-gallery-thumb:hover {
  opacity: 0.92;
}
@media (min-width: 640px) {
  .cp-gallery-thumb {
    flex-basis: 5rem;
    width: 5rem;
    height: 5rem;
  }
}

/* Lightbox / zoom fuera del espacio del producto */
body.cp-lightbox-open {
  overflow: hidden;
}
.cp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cp-lightbox[hidden] {
  display: none !important;
}
.cp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 40, 0.88);
  cursor: zoom-out;
}
.cp-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-lightbox__media {
  max-width: 100%;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-lightbox__img,
.cp-lightbox__video {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: #111;
}
.cp-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  background: #fff;
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.cp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.cp-lightbox__nav--prev { left: 0.25rem; }
.cp-lightbox__nav--next { right: 0.25rem; }
.cp-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: -0.25rem;
  transform: translate(-50%, 100%);
  margin: 0;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  background: rgba(29, 39, 81, 0.7);
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
}
@media (max-width: 767px) {
  .cp-thumbs {
    display: none;
  }
  .cp-gallery-counter {
    display: none;
  }
  .cp-gallery-dots {
    display: flex;
  }
  .cp-gallery-nav {
    width: 2.15rem;
    height: 2.15rem;
  }
  .cp-gallery-nav--prev { left: 0.5rem; }
  .cp-gallery-nav--next { right: 0.5rem; }
  .cp-gallery-zoom-hint {
    left: 0.55rem;
    bottom: 2.35rem;
    width: 2rem;
    height: 2rem;
  }
  .cp-gallery-zoom-hint--play {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: 3.5rem;
    height: 3.5rem;
  }
  .cp-gallery-stage {
    touch-action: pan-y;
  }
}

@media (min-width: 768px) {
  .cp-gallery-dots {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .cp-lightbox__nav--prev { left: 0; }
  .cp-lightbox__nav--next { right: 0; }
  .cp-lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* Compartir producto */
.cp-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}
.cp-product-actions__primary {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}
@media (min-width: 640px) {
  .cp-product-actions__primary { width: auto; flex: 1 1 auto; min-width: 14rem; }
}
.cp-lead-time {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  max-width: 22rem;
}
.cp-lead-time strong {
  color: var(--color-dark);
  font-weight: 800;
}
.cp-share {
  position: relative;
  width: 100%;
}
@media (min-width: 640px) {
  .cp-share { width: auto; }
}
.cp-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid var(--color-border, #d8d6e8);
  background: #fff;
  color: var(--color-dark, #1d2751);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cp-share__btn:hover,
.cp-share__btn[aria-expanded="true"] {
  border-color: var(--color-accent-cyan, #00bfc7);
  background: rgba(0, 191, 199, 0.08);
}
.cp-share__menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.4rem);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(163, 163, 213, 0.45);
  box-shadow: 0 12px 28px rgba(29, 39, 81, 0.14);
  min-width: 12rem;
}
@media (min-width: 640px) {
  .cp-share__menu {
    left: auto;
    right: 0;
    min-width: 13rem;
  }
}
.cp-share__menu[hidden] {
  display: none !important;
}
.cp-share__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--color-dark, #1d2751);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.cp-share__item:hover {
  background: rgba(0, 191, 199, 0.1);
}
.cp-share__feedback {
  margin: 0.15rem 0.35rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-cyan, #00bfc7);
}

/* Carrusel home — productos populares */
.cp-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cp-carousel__viewport {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.35rem 0.15rem 0.85rem;
  flex: 1 1 auto;
  min-width: 0;
  outline: none;
}
.cp-carousel__viewport::-webkit-scrollbar { display: none; }
.cp-carousel__slide {
  flex: 0 0 calc(85% - 0.5rem);
  scroll-snap-align: start;
  min-width: 0;
}
@media (min-width: 640px) {
  .cp-carousel__slide { flex-basis: calc(50% - 0.5rem); }
}
@media (min-width: 1024px) {
  .cp-carousel__slide { flex-basis: calc(25% - 0.75rem); }
}
.cp-carousel__slide .card-craft {
  height: 100%;
}
.cp-carousel__nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.cp-carousel__nav:hover:not(:disabled) {
  border-color: var(--color-accent-cyan);
  background: rgba(0, 191, 199, 0.08);
}
.cp-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 639px) {
  .cp-carousel__nav { display: none; }
}
.cp-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.cp-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  background: rgba(29, 39, 81, 0.2);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.cp-carousel__dot.is-active {
  background: var(--color-accent-pink);
  transform: scale(1.15);
}
