/* =====================================================
   GOshers Market — CAPA PREMIUM
   Se carga DESPUÉS de style.css. Para quitar todo lo
   premium, borra el <link> de premium.css en el HTML.
   ===================================================== */

/* 1. TIPOGRAFÍA DE LUJO ------------------------------ */
body,
nav a,
button,
select,
input {
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

.producto h3,
.portada-texto strong,
.confianza-item strong {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.producto h3 {
  font-size: 1.45rem;
  line-height: 1.15;
  cursor: pointer;
}

.producto .precio {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

nav a { letter-spacing: 0.04em; }

/* 2. PORTADA CON MENSAJE ------------------------------ */
.portada-texto {
  position: absolute;
  left: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 3;
  max-width: min(86%, 420px);
  padding: 16px 20px 18px;
  border-radius: 22px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.28);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 12px 32px rgba(0,0,0,0.4);
}
.portada-texto strong {
  display: block;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.05;
  font-weight: 600;
}
.portada-texto small {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.portada-texto a {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 20px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.45);
  transition: background 0.25s, transform 0.25s;
}
.portada-texto a:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }

@media (max-width: 600px) {
  .portada-texto { padding: 10px 14px 12px; border-radius: 16px; }
  .portada-texto small { display: none; }
  .portada-texto a { margin-top: 8px; padding: 7px 16px; font-size: 0.8rem; }
}

/* 3. FRANJA DE CONFIANZA CON ÍCONOS ------------------- */
.confianza-item .icono {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
}
.confianza-item .icono svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.confianza-item strong { font-size: 1.15rem; }

/* 4. ENTRADA SUAVE DE LAS TARJETAS -------------------- */
.js-reveal .lista-productos .producto:not(.entra) { opacity: 0; }
.producto.entra {
  animation: tarjetaEntra 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: var(--retraso, 0ms);
}
@keyframes tarjetaEntra {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; }
}

/* 5. EFECTO 3D (lo pone premium.js con el puntero) ---- */
.lista-productos .producto { transform-style: preserve-3d; will-change: transform; }

/* 6. VISTA RÁPIDA ------------------------------------- */
.producto h3::after {
  content: " ⤢";
  font-size: 0.8em;
  opacity: 0.45;
}
#vista-rapida {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  background: rgba(2, 3, 8, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#vista-rapida.abierta { display: flex; animation: vrEntra 0.3s ease; }
@keyframes vrEntra { from { opacity: 0; } to { opacity: 1; } }
.vr-caja {
  position: relative;
  width: min(100%, 520px);
  margin: auto;
}
.vr-cerrar {
  position: absolute;
  top: -50px;           /* arriba de la tarjeta, alineada a su borde derecho */
  right: 0;
  z-index: 10;
  width: 40px;
  height: 40px;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important; /* el botón global trae padding y descentraba la X */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  background: rgba(20, 22, 34, 0.85);
  border: 1px solid rgba(255,255,255,0.5);
}
.vr-cerrar svg { display: block; pointer-events: none; }
.vr-caja .producto {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  animation: none !important;
  background: rgba(14, 16, 28, 0.92);
}
.vr-caja .producto .carrusel img { max-height: 62vh; object-fit: contain; }
.vr-caja .producto h3::after { content: ""; }

/* 7. PANTALLA DE ENTRADA ------------------------------ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #0b1026 0%, #02030a 70%);
  animation: introSalida 0.9s ease 1.5s forwards;
}
#intro img {
  width: min(52vw, 260px);
  height: auto;
  animation: introLogo 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes introLogo {
  from { opacity: 0; transform: scale(0.88); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}
@keyframes introSalida {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
html.sin-intro #intro { display: none; }

/* Respeto a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .producto.entra { animation: none; }
  .js-reveal .lista-productos .producto:not(.entra) { opacity: 1; }
  #intro, #intro img { animation-duration: 0.01s; animation-delay: 0s; }
}


/* Visor de fotos, aviso del carrito y guía de tallas por encima de la vista rápida */
#visor-fotos { z-index: 10003 !important; }
.aviso-carrito { z-index: 10004 !important; }
#guia-tallas { z-index: 10004 !important; }

/* deja espacio arriba para que la X no tape el corazón ni la foto */
#vista-rapida { padding-top: 64px; }

/* Se oculta el cuadro de texto sobre la portada para que no tape la imagen.
   Para volver a mostrarlo, borra este bloque. */
.portada-texto { display: none !important; }

/* =====================================================
   LIQUID GLASS ESTILO APPLE — tarjetas de producto
   Mucho más transparente: poco relleno, desenfoque suave,
   borde de luz fino (especular) y reflejo interior.
   ===================================================== */
.lista-productos .producto {
  /* el 3D preservado desactiva el desenfoque del fondo: se deja plano */
  transform-style: flat;

  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.11) 0%,
      rgba(255, 255, 255, 0.03) 38%,
      rgba(255, 255, 255, 0.015) 62%,
      rgba(255, 255, 255, 0.06) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(185%) brightness(1.08);
  backdrop-filter: blur(14px) saturate(185%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.26),          /* sombra suave, sin bloque oscuro */
    0 2px 6px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),   /* luz del borde superior */
    inset 0 -1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 28px rgba(255, 255, 255, 0.045); /* resplandor interior */
}

/* borde especular: brilla en las esquinas opuestas, casi invisible en el medio */
.lista-productos .producto::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.90) 0%,
    rgba(255, 255, 255, 0.14) 28%,
    rgba(255, 255, 255, 0.03) 55%,
    rgba(255, 255, 255, 0.16) 80%,
    rgba(255, 255, 255, 0.60) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 2;
}

/* el barrido de brillo queda más sutil */
.lista-productos .producto::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
}

.lista-productos .producto:hover {
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.045) 38%,
      rgba(255, 255, 255, 0.02) 62%,
      rgba(255, 255, 255, 0.09) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.32),
    0 4px 10px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 34px rgba(255, 255, 255, 0.07);
}

/* con tan poco relleno, el texto necesita una sombra fina para leerse bien */
.lista-productos .producto h3,
.lista-productos .producto .precio,
.lista-productos .producto p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
