* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
}
body {
  padding-top: 64px;
  margin: 0;
  background: #ffffff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

/* HEADER */
.header-title {
  cursor: pointer;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* TITULO */
.header-title {
  font-family: 'Megrim', sans-serif;
  font-size: 33px;
  letter-spacing: 1px;
}

/* IZQUIERDA */
.header-left {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* DERECHA */
.header-right {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ICONOS */
.header-left img,
.header-right img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.header-left img:hover,
.header-right img:hover {
  opacity: 1;
}

/* MENU */
.menu-toggle {
  width: 22px;
  height: 16px;
  display: flex;
  position: relative;
  top: -2px;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu-toggle span {
  height: 2px;
  width: 100%;
  background: #111;
  border-radius: 2px;
  opacity: 0.85;
}
/* =========================
   MENU – PANEL DESPLEGABLE
========================= */

.menu {
  position: fixed;
  top: 45px;
  right: 0;
  width: 340px;
  height: auto;
  min-height: fit-content;
  right: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  background: #ffffff;
  padding: 38px 26px 26px;
  display: flex;
  flex-direction: column;
  font-family: "Nova Square", sans-serif;
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition: transform 300ms ease-out, opacity 200ms ease-out;
  z-index: 2000;
}

.menu.open {
  transform: translateX(0);
  opacity: 1;
}
.menu-close {
  display: none;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-primary li {
  margin-bottom: 16px;
}

.menu-primary a {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #111;
  text-decoration: none;
  display: inline-block;
  transition: opacity 150ms ease, transform 150ms ease;
}

.menu-primary a:hover {
  opacity: 0.6;
  transform: translateX(4px);
}

.menu-secondary {
  margin-top: 20px;
}

.menu-secondary li {
  margin-bottom: 12px;
}

.menu-secondary a {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #111;
  opacity: 0.7;
  text-decoration: none;
  display: inline-block;
  transition: opacity 150ms ease, transform 150ms ease;
}
.menu-secondary::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin-bottom: 16px;
}

.menu-secondary a:hover {
  opacity: 1;
  transform: translateX(4px);
}
/* =========================
   MENU OVERLAY
========================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.08);

  opacity: 0;
  pointer-events: none;

  transition: opacity 200ms ease 50ms;
  z-index: 1500;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.site-content {
  transition: filter 0.35s ease;
}

.site-content.blur {
  filter: blur(6px);
}


/* =========================
   HAMBURGUESA → CERRAR
========================= */

.menu-toggle {
  position: relative;
  z-index: 3000; /* por encima del menú */
}

.menu-toggle span {
  transition: transform 200ms ease, opacity 150ms ease;
  transform-origin: center;
}

/* estado abierto */

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.category-title {
  font-family: 'Nova Square', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin: 32px 0 24px;
  color: #777;
  opacity: 0;

  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;

  pointer-events: none;
}

/* GALERÍA */
.gallery {
  margin-top: 40px;
  column-count: 2;
  column-gap: 30px;
  padding: 0 80px;
}

.item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 30px;
  display: inline-block;
  width: 100%;
}
.gallery {
  transition: opacity 0.25s ease;
}

.gallery.is-resetting {
  opacity: 0;
}

/* =========================
   ANIMACIÓN ITEMS
========================= */

.item {
  opacity: 0;
  transform: translateY(150px) scale(0.95);
  transition:
    opacity 1400ms ease,
    transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* =========================
   PRODUCTOS CON VARIANTES
========================= */
.item.has-variants {
  transition: transform 0.35s ease;
}

.item.has-variants:hover {
  transform: scale(1.01);
}
.item.has-variants::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.item.has-variants:hover::after {
  opacity: 1;
}

.item.has-variants .product-image {
  position: relative;
  width: 100%;
}

.item.has-variants .product-image {
  position: relative;
  width: 100%;
}

/* imagen base: define altura */
.item.has-variants .product-image img:first-child {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

/* variantes superpuestas */
.item.has-variants .product-image img:not(:first-child) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}


/* solo la primera imagen visible */
.item.has-variants .product-image img:not(:first-child) {
  opacity: 0;
}

.item:not(.has-variants):hover img {
  transform: scale(1.01);
  opacity: 0.95;
}

a {
  -webkit-tap-highlight-color: transparent;
}
footer {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
footer.visible {
  opacity: 1;
  transform: translateY(0);
}
.site-footer {
  margin-top: 40px;
  padding: 60px 20px 40px;
  text-align: center;
  border-top: 1px solid #eee;
  background: #fff;
}

.footer-main {
  font-family: 'Megrim', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  margin: 0 0 10px;
}

.footer-sub {
  font-family: 'Nova Square', Arial, sans-serif;
  font-size: 13px;
  color: #777;
  letter-spacing: 0.5px;
  margin: 0;
}
/* =========================
   FAQ
========================= */

.faq {
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);

  min-height: calc(100vh - 64px);
  padding: 6rem 1rem;
  position: relative;
  background-color: #f7f5f2;
  overflow: hidden;
}

.faq-inner {
  max-width: 680px;
  margin: 0 auto;
}

.faq h1 {
  font-family: 'Nova Square', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 56px;
  text-align: center;
}

.faq-item {
  margin-bottom: 32px;
}

.faq-item h3 {
  font-family: 'Nova Square', sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.faq-item p {
  font-family: 'Nova Square', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #111;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.faq-item p.visible {
  opacity: 1;
  transform: translateY(0);
}
.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("imagenes/Fondofaq.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: blur(2px);
  z-index: 0;
}

/* =========================
   MANIFIESTO – OPCIÓN A
========================= */

.manifesto {
  transform: translateY(24px);
  pointer-events: none;
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  background-color: #f2f2f2;
  overflow: hidden;
}
.manifesto.active {
  transform: translateY(0);
  pointer-events: auto;
}

.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/imagenes/Avionpatapata2.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: blur(2px);
  z-index: 0;
}


.manifesto-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;

  padding-top: 4rem;
  padding-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
}


.manifesto h1 {
  font-family: 'Nova Square', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 56px;
  text-align: center;
}

.manifesto p {
  font-family: 'Nova Square', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 32px;
  color: #111;
  letter-spacing: 0.02em;
}

.manifesto p {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1800ms ease,
    transform 1800ms ease;
}

.manifesto p.visible {
  opacity: 1;
  transform: translateY(0);
}
.manifesto,
.faq {
  display: none;
  min-height: calc(100vh - 64px);
  position: relative;
  overflow: hidden;
}

/* MANIFESTO */
body.manifesto-open .manifesto {
  display: block;
}

/* FAQ */
body.faq-open .faq {
  display: block;
}

/* ocultar galería y título cuando hay sección */
body.manifesto-open .gallery,
body.manifesto-open .category-title,
body.faq-open .gallery,
body.faq-open .category-title {
  display: none;
}
body.manifesto-open .manifesto,
body.faq-open .faq {
  margin-top: -64px;
}

/* =========================
   VARIANTES – BASE
========================= */

.has-variants .product-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.has-variants .product-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* stack de imágenes */
.has-variants .product-image img:not(:first-child) {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 3s ease;
}




/* INDICADORES DINÁMICOS */
.variant-indicators {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.variant-indicators span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Indicador activo */
.variant-indicators span.active {
  transform: scale(1.5);
  background-color: #fff; /* más visible */
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Hover – efecto de resalte */



/* Hover efecto de resaltado */
.item.has-variants:hover .product-image::after,
.item.has-variants:hover .product-image::before {
  transform: scale(1.4);
  background-color: rgba(255,255,255,1);
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* Dos variantes */
.item.has-variants.has-2-variants .product-image::after {
  right: 8px;
}
.item.has-variants.has-2-variants .product-image::before {
  right: 24px;
}

/* Tres variantes */
.item.has-variants.has-3-variants .product-image::after {
  right: 8px;
}
.item.has-variants.has-3-variants .product-image::before {
  right: 24px;
}
.item.has-variants.has-3-variants .product-image .indicator-third {
  content: "";
  position: absolute;
  top: 8px;
  right: 40px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
  pointer-events: none;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
/* =========================
   VARIANTES – TRANSICIÓN PC (FIX FINAL)
========================= */

.item.has-variants .product-image img {
  transition: opacity 3s ease !important;
}













/* MOBILE */
@media (max-width: 768px) {
  
  body {
    padding-top: 56px;
  }
  
  header {
    height: 56px;
  }

  .header-title {
    font-size: 26px;
  }

  .header-left img,
  .header-right img {
    width: 18px;
    height: 18px;
  }
  .menu {
    top: 0;
    right: 0;
    left: 0;

    width: 100%;
    height: 100vh;
    padding-top: calc(56px + env(safe-area-inset-top));
    border-radius: 0;
    box-shadow: none;
  }

    .menu-close {
    display: block;
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    font-family: 'Nova Square', sans-serif;
    cursor: pointer;
    z-index: 3000;
    opacity: 0.7;
  }
  
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu-toggle span {
    transition: all 0.3s ease;
  }

  .menu-toggle {
    position: relative;
    z-index: 3000;
  }
  
  .gallery {
    column-count: 1;
    column-gap: 0;
    padding: 0 20px;
  }

  .gallery .item:first-child {
    margin-top: 12px;
  }

  .item {
    opacity: 0;
    transform: translateY(110px) scale(0.97);
    transition:
      opacity 1000ms ease,
      transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .item {
    margin-bottom: 30px;
  }

  .item img {
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .item:active img {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .footer-main {
    font-size: 18px;
  }

  .footer-sub {
    font-size: 12px;
  }
    .item.has-variants .product-image img {
    transition: opacity 0.6s ease; /* más rápido para mobile */
  }
}
