/* ══ jabones-piel-seca.css ═══════════════════════════
   CSS exacto del HTML original de Pablo + extensiones necesarias
   Última actualización: Mayo 2026
══════════════════════════════════════════════════════════════════ */

/* ── Canvas WebGL ── */
#j-ocean {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* ── Variables (igual que HTML de Pablo) ── */
:root {
  --gold: #c9a870;
  --gold-soft: rgba(201,168,112,.72);
  --gold-faint: rgba(201,168,112,.28);
  --cream: rgba(245,226,185,.86);
}

/* ── Body (igual que HTML de Pablo) ── */
body {
  background: #000;
  overflow-y: auto;
}

/* ══════════════════════════════════════════════════════════════
   PORTAL UNIVERSAL
══════════════════════════════════════════════════════════════ */
#jps-portal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jps-portal-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.jps-portal-rays::before,
.jps-portal-rays::after {
  content: '';
  position: absolute;
  top: -15%;
  width: 55%;
  height: 110%;
  background: linear-gradient(to bottom,rgba(15,40,130,.22) 0%,rgba(10,25,90,.08) 55%,transparent 100%);
  transform-origin: top center;
}
.jps-portal-rays::before { left:18%;  transform: rotate(-14deg) skewX(-6deg); }
.jps-portal-rays::after  { right:12%; transform: rotate(16deg) skewX(7deg); opacity:.65; }

.jps-portal-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.jps-portal-logo {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.jps-portal-line {
  width: 130px;
  height: 1px;
  background: linear-gradient(to right,transparent,rgba(201,168,112,.75),transparent);
  transform-origin: center center;
}

.jps-portal-logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 18px rgba(201,168,112,.45)) drop-shadow(0 0 40px rgba(201,168,112,.20));
}

.jps-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(150,185,255,.32);
  background: radial-gradient(circle at 32% 32%,rgba(180,210,255,.10),transparent 68%);
  animation: jpsBubUp linear infinite;
}
@keyframes jpsBubUp {
  0%   { transform: translateY(0) translateX(0);                     opacity:0;    }
  6%   { opacity:.65; }
  94%  { opacity:.25; }
  100% { transform: translateY(-115vh) translateX(var(--drift,20px)); opacity:0;    }
}

/* ══════════════════════════════════════════════════════════════
   CSS EXACTO DEL HTML ORIGINAL DE PABLO
   (copiado sin cambiar ningún valor)
══════════════════════════════════════════════════════════════ */

.soap-exhibit {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding: calc(var(--cintillo-h) + var(--header-h) + 185px) 42px 130px;
  color: var(--cream);
}

.soap-exhibit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.06), transparent 26%),
    linear-gradient(115deg, transparent 8%, rgba(130,190,255,.08) 24%, transparent 42%);
  filter: blur(10px);
  pointer-events: none;
}

.exhibit-inner {
  position: relative;
  z-index: 2;
  width: min(1280px,100%);
  margin: 0 auto;
}

.top-bar {
  position: absolute;
  top: calc(var(--cintillo-h) + var(--header-h) + 10px);
  left: 42px;
  right: 42px;
  z-index: 18;
  height: 45px;
  border: 1px solid var(--gold-faint);
  background: rgba(10,15,17,.34);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.brand        { text-align:center; line-height:1; letter-spacing:.04em; }
.brand-main   { display:block; font-family:'Josefin Sans',sans-serif; font-size:14px; color:rgba(245,226,185,.9); font-weight:300; }
.brand-sub    { display:block; margin-top:6px; font-family:'Josefin Sans',sans-serif; font-size:7px; letter-spacing:.12em; color:rgba(245,226,185,.74); text-transform:uppercase; }

.menu-pill {
  position: absolute;
  top: calc(var(--cintillo-h) + var(--header-h) + 80px);
  left: 42px;
  z-index: 20;
  height: 58px;
  min-width: 178px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  background: rgba(5,10,12,.30);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px 0 8px;
  color: rgba(245,226,185,.90);
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 0 20px rgba(201,168,112,.05), 0 12px 28px rgba(0,0,0,.18);
  transition: background .28s ease, border-color .28s ease, transform .28s ease;
  font-family: inherit;
  border: 1px solid var(--gold-soft);
}
.menu-pill:hover { border-color:rgba(201,168,112,.92); background:rgba(201,168,112,.07); transform:translateY(-2px); }

.menu-pill-circle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,226,185,.85); font-size: 18px; line-height: 1;
}

.menu-pill-text {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; letter-spacing: .18em;
  color: rgba(245,226,185,.90); text-transform: uppercase;
}

.individual-pill {
  position: absolute;
  top: calc(var(--cintillo-h) + var(--header-h) + 64px);
  right: 42px;
  z-index: 20;
  height: 58px;
  min-width: 230px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  background: rgba(5,10,12,.30);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 8px 0 24px;
  color: rgba(245,226,185,.90);
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 0 20px rgba(201,168,112,.05), 0 12px 28px rgba(0,0,0,.18);
  transition: background .28s ease, border-color .28s ease, transform .28s ease;
  font-family: inherit;
  border: 1px solid var(--gold-soft);
}
.individual-pill:hover { border-color:rgba(201,168,112,.92); background:rgba(201,168,112,.07); transform:translateY(-2px); }

.individual-pill-text {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; letter-spacing: .18em;
  color: rgba(245,226,185,.90); text-transform: uppercase; white-space: nowrap;
}

.individual-pill-circle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,226,185,.85); font-size: 18px; line-height: 1;
}

.exhibit-heading {
  text-align: center;
  margin-bottom: 40px;
}
.exhibit-heading small {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 8px; letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(245,226,185,.46); margin-bottom: 18px;
}
.exhibit-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(42px,5vw,78px);
  line-height: .98; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(245,226,185,.88);
}

/* ── Grilla ── */
.soap-grid {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 18px;
}

.soap-card[hidden] { display: none !important; }

.soap-card {
  grid-column: span 3;
  min-height: 318px;
  border: 1px solid var(--gold-faint);
  background: rgba(7,13,15,.24);
  backdrop-filter: blur(8px);
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.soap-card:nth-last-child(3) { grid-column: 3 / span 3; }

.soap-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(201,168,112,.16), transparent 34%),
    linear-gradient(120deg, transparent 0%, rgba(201,168,112,.13) 46%, transparent 72%);
  opacity: 0; transform: translateX(-20px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.soap-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,168,112,.84);
  background: rgba(10,16,20,.32);
  box-shadow:
    0 0 0 1px rgba(201,168,112,.13) inset,
    0 0 28px rgba(201,168,112,.20),
    0 18px 42px rgba(0,0,0,.28);
}
.soap-card:hover::before { opacity:1; transform:translateX(0); }

/* Out of stock */
.soap-card--oos { opacity: .62; }
.soap-card--oos:hover { transform: none; }

/* Badge */
.soap-oos-badge {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  font-size: 7px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(245,226,185,.58);
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(201,168,112,.28);
  border-radius: 3px; padding: 3px 8px;
  backdrop-filter: blur(4px);
}

/* ── Imagen 3:4 ── */
.soap-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(201,168,112,.34);
  background: rgba(255,255,255,.018);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
  overflow: hidden;
}

.soap-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}

.soap-placeholder {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: linear-gradient(148deg,
    color-mix(in srgb, var(--sc) 35%, #000) 0%,
    var(--sc) 35%,
    color-mix(in srgb, var(--sc) 70%, #000) 70%,
    #000 100%
  );
}
.soap-placeholder span {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(245,226,185,.25);
  text-align: center; padding: 8px;
}

.soap-name {
  position: relative; z-index: 2;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300; font-size: 10px;
  letter-spacing: .22em; line-height: 1.35;
  text-transform: uppercase; color: rgba(245,226,185,.72);
  margin-bottom: 10px;
}

.soap-note {
  position: relative; z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 300;
  font-size: 14px; letter-spacing: .03em;
  line-height: 1.45; color: rgba(245,226,185,.58);
}

/* ── Footer de tarjeta (precio + botón) ── */
.soap-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 8px;
  position: relative; z-index: 2;
}

.soap-price {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px; font-weight: 300;
  letter-spacing: .08em; color: var(--gold);
}
.soap-price em { font-style:normal; font-size:9px; letter-spacing:.12em; color:rgba(245,226,185,.5); margin-left:2px; }

/* Imagen clickeable */
.soap-image--clickable {
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.soap-image--clickable:hover {
  transform: scale(1.02);
  box-shadow: 0 0 18px rgba(201,168,112,.25);
}
.soap-card--oos .soap-image--clickable { cursor: default; }

.soap-btn-cart {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 8px; font-weight: 300;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,226,185,.80);
  background: transparent;
  border: 1px solid var(--gold-faint);
  padding: 6px 14px; cursor: pointer;
  transition: background .28s, border-color .28s, color .28s;
  white-space: nowrap;
}
.soap-btn-cart:hover { background:rgba(201,168,112,.10); border-color:var(--gold-soft); color:var(--cream); }
.soap-btn-cart:disabled { opacity:.35; cursor:not-allowed; }

/* ── Botón Ver Jabón ── */
.soap-btn-desc {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 8px; font-weight: 300;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,226,185,.60);
  background: transparent;
  border: 1px solid rgba(245,226,185,.18);
  padding: 6px 12px; cursor: pointer;
  transition: background .28s, border-color .28s, color .28s;
  white-space: nowrap;
}
.soap-btn-desc:hover { background:rgba(201,168,112,.07); border-color:rgba(201,168,112,.45); color:var(--cream); }
.soap-btn-desc:disabled { opacity:.35; cursor:not-allowed; }

.jps-lang-es, .jps-lang-en { display: none; }
html[lang="en"]       .jps-lang-en { display: inline; }
html:not([lang="en"]) .jps-lang-es { display: inline; }

/* ── Filtros ── */
.jps-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.jps-search-wrap { flex:1; min-width:180px; }

.jps-search {
  width: 100%; height: 40px;
  background: rgba(7,13,20,.45);
  border: 1px solid var(--gold-faint); border-radius: 999px;
  padding: 0 18px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px; font-weight: 300; letter-spacing: .12em;
  color: var(--cream); outline: none;
  transition: border-color .28s;
  backdrop-filter: blur(8px);
}
.jps-search::placeholder { color: rgba(245,226,185,.28); }
.jps-search:focus { border-color: var(--gold-soft); }

.jps-filter-select {
  height: 40px;
  background: rgba(7,13,20,.45);
  border: 1px solid var(--gold-faint); border-radius: 999px;
  padding: 0 24px 0 16px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px; font-weight: 300; letter-spacing: .10em;
  color: var(--cream); outline: none; appearance: none;
  cursor: pointer; backdrop-filter: blur(8px);
  transition: border-color .28s;
}
.jps-filter-select:focus { border-color: var(--gold-soft); }
.jps-filter-select option { background:#05101E; color:#fff; }

/* Sin resultados */
.jps-no-results {
  text-align: center; padding: 60px 0;
  color: rgba(245,226,185,.28);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (igual que HTML de Pablo)
══════════════════════════════════════════════════════════════ */
@media(max-width:980px){
  .soap-card { grid-column: span 6; }
  .soap-card:nth-last-child(3) { grid-column: span 6; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (igual que HTML de Pablo)
══════════════════════════════════════════════════════════════ */
@media(max-width:620px){
  .top-bar { top:calc(var(--cintillo-h) + var(--header-h) + 8px); left:20px; right:20px; height:42px; }
  .menu-pill { top:calc(var(--cintillo-h) + var(--header-h) + 58px); left:20px; height:50px; min-width:145px; padding:0 18px 0 7px; }
  .individual-pill { top:calc(var(--cintillo-h) + var(--header-h) + 58px); right:20px; height:50px; min-width:185px; padding:0 7px 0 16px; gap:12px; }
  .individual-pill-circle { width:36px; height:36px; font-size:16px; }
  .individual-pill-text { font-size:11px; letter-spacing:.14em; }
  .menu-pill-circle { width:36px; height:36px; font-size:16px; }
  .menu-pill-text { font-size:12px; }
  .soap-exhibit { padding:calc(var(--cintillo-h) + var(--header-h) + 175px) 20px 110px; }
  .soap-grid { gap:14px; }
  .soap-card { grid-column: span 12; min-height:auto; }
  .soap-card:nth-last-child(3) { grid-column: span 12; }
  .jps-filters { flex-direction: column; }
  .jps-search-wrap { width: 100%; }
}


/* ══════════════════════════════════════════════════════
   LIQUID VEIL — Estilos de llegada desde jabones.php
   El velo cubre la pantalla desde el primer paint y cae
   revelando el grid en stagger luxury.
══════════════════════════════════════════════════════ */

/* Por defecto oculto debajo de la pantalla */
#ovie-veil {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 115vh;
  z-index: 99999;
  pointer-events: none;
  overflow: visible;
  will-change: transform;
  transform: translateY(100%);
  background:
    radial-gradient(ellipse at 50% 52%, rgba(22,55,115,0.52) 0%, rgba(2,9,24,0.82) 40%, rgba(1,4,12,0.98) 78%),
    linear-gradient(to bottom, rgba(3,10,26,0.92), #000);
}

/* Cuando llegamos desde el portal — visible inmediatamente */
html.ovie-arriving #ovie-veil {
  transform: translateY(0);
}

/* Lip curvo — borde orgánico */
.ovie-veil-lip {
  position: absolute;
  top: -52px;
  left: -6%;
  width: 112%;
  height: 106px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: rgba(3,10,26,0.97);
  box-shadow: 0 -6px 38px rgba(22,55,115,0.16);
}

/* Logo + líneas — centrado fijo en el viewport */
.ovie-veil-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 100000;
  pointer-events: none;
}

.ovie-veil-line {
  width: 132px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,112,0.82), transparent);
  box-shadow: 0 0 16px rgba(201,168,112,0.20);
  /* Visibles en llegada — JS los desvanece al caer */
  opacity: 1;
  transform: scaleX(1);
}

.ovie-veil-logo {
  width: auto;
  height: clamp(42px, 5.4vw, 66px);
  /* Visible en llegada con glow sutil */
  opacity: 0.88;
  filter: drop-shadow(0 0 14px rgba(201,168,112,0.45)) drop-shadow(0 0 36px rgba(201,168,112,0.18));
}

@media (max-width: 640px) {
  .ovie-veil-center { gap: 18px; }
  .ovie-veil-line   { width: 104px; }
  .ovie-veil-logo   { height: 42px; }
}


/* ══════════════════════════════════════════════════════
   MÁS PARA DESCUBRIR — copiado desde producto.css
══════════════════════════════════════════════════════ */
.jbpp-discover-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 34px 120px;
  position: relative;
  z-index: 6;
}
.jbpp-discover-shell { width: min(1320px, 100%); }
.jbpp-discover-heading { text-align: center; margin-bottom: 42px; }
.jbpp-discover-kicker {
  display: block; margin-bottom: 14px;
  font-size: 8px; letter-spacing: .34em;
  color: rgba(245,226,185,.42);
}
.jbpp-discover-kicker strong { color: inherit; }
.jbpp-discover-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(38px,4.2vw,62px);
  line-height: 1; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(245,226,185,.88);
}
.jbpp-discover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.jbpp-discover-card {
  position: relative; min-height: 380px;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: 1px solid rgba(201,168,112,.44);
  background: rgba(7,13,15,.22);
  backdrop-filter: blur(7px);
  padding: 18px 18px 22px; overflow: hidden;
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}
.jbpp-discover-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,112,.86);
  box-shadow: 0 0 26px rgba(201,168,112,.20), 0 18px 38px rgba(0,0,0,.18);
}
.jbpp-discover-image-box {
  width: 100%; aspect-ratio: 1/1;
  border: 1px solid rgba(201,168,112,.34);
  background: rgba(255,255,255,.018);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.jbpp-discover-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease, filter .45s ease;
}

.jbpp-discover-card:hover .jbpp-discover-img {
  transform: scale(1.045);
  filter: brightness(1.08) contrast(1.04);
}

.jbpp-discover-image-placeholder {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px; letter-spacing: .34em;
  text-transform: uppercase; color: rgba(245,226,185,.28);
}
.jbpp-discover-meta {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 10px;
}
.jbpp-discover-name {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300; font-size: 10px;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(245,226,185,.68);
}


/* ══════════════════════════════════════════════════════
   BRAND LOGO + SHIMMER — top-bar del grid
══════════════════════════════════════════════════════ */
.brand-logo-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 2px;
  line-height: 0;
}

.brand-logo {
  height: 18px;
  width: auto;
  display: block;
  animation: brandLogoGlow 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

.brand-logo-wrap::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -80%;
  width: 50%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 15%,
    rgba(255,235,150,0.06) 30%,
    rgba(255,215,80,0.50) 50%,
    rgba(255,248,200,0.72) 55%,
    rgba(255,215,80,0.50) 60%,
    rgba(255,235,150,0.06) 75%,
    transparent 90%
  );
  transform: skewX(-10deg);
  animation: brandLogoShimmer 4s ease-in-out infinite;
  animation-delay: 1.5s;
  pointer-events: none;
}

@keyframes brandLogoShimmer {
  0%   { left: -80%; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

@keyframes brandLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(201,168,112,0.35)); }
  50%       { filter: drop-shadow(0 0 9px rgba(201,168,112,0.80)) drop-shadow(0 0 18px rgba(201,168,112,0.35)); }
}
