/* Van Deer Mayoreo · propuestas ronda 5 (se cargan después de tienda.css)
   Las dos usan el fondo shader de olas verdes en todo el sitio.
   A = "Galería": serif elegante (Fraunces), arcos con filo dorado, colores en círculos de tejido.
   B = "Carrusel": letra ancha tipo cartel (Archivo expandida), deslizar la foto = cambiar de color, tallas en barra. */

/* ---------- Común ---------- */
.d { --fondo: #18211B; --panel: rgba(36,47,40,.72); --panel-2: rgba(62,76,66,.78); overflow-x: hidden; }
.d-grano { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.d header.top { background: rgba(18,25,20,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(210,174,110,.18); }
.d header.top .wrap { height: 58px; }
.d .marca { white-space: nowrap; }
.d .pedido-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border-width: 1px; border-color: rgba(210,174,110,.55); border-radius: 999px; }
.d svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.d .pedido-btn b { min-width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 99px; background: var(--laton); color: var(--fondo); font-size: .78rem; }
@media (max-width: 380px) { .d .pedido-btn > span { display: none; } }
.d .volver { display: inline-flex; align-items: center; min-height: 38px; padding: 0; font-size: .9rem; }
.d-min { display: block; font-size: .82rem; color: var(--tenue); }
.d-min.agot { color: var(--rojo); font-weight: 700; }
.d-home { min-height: calc(100svh - 59px); }

/* Producto: piezas comunes */
.d .pdp.dp { padding-bottom: 0; display: block; }
.dp-cnt { position: absolute; right: 12px; bottom: 12px; background: rgba(18,25,20,.7); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.dp-colores { scrollbar-width: none; }
.dp-colores::-webkit-scrollbar { display: none; }
.d .color.sw, .d .color.dot { flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: #fff; position: relative; }
.d .color.sw img, .d .color.dot img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; transform: scale(2.3); transform-origin: 50% 40%; display: block; }
.d .color.sin { opacity: .38; }
.d .color.sin::after { content: ""; position: absolute; left: 50%; top: -10%; bottom: -10%; width: 2px; background: var(--rojo); transform: rotate(45deg); }
.d .color.sin span::after { content: none; }
.d .talla { min-height: 50px; font-size: 1.12rem; padding: 4px 2px; }
.d .talla.agotada small { display: none; }
.d .aviso { margin-top: 8px; font-size: .92rem; }
.dp-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(16,22,18,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(210,174,110,.2); }
.dp-barra .cantidad { gap: 0; border-radius: 999px; background: rgba(230,216,196,.08); border: 1px solid rgba(230,216,196,.18); flex: 0 0 auto; }
.dp-barra .cantidad button { width: 46px; height: 54px; background: none; font-size: 1.6rem; }
.dp-barra .cantidad input { width: 42px; height: 54px; border: 0; background: none; font-size: 1.25rem; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.dp-barra .cantidad input::-webkit-inner-spin-button, .dp-barra .cantidad input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dp-barra .agregar { margin: 0; flex: 1; min-height: 56px; font-size: 1.05rem; border-radius: 999px; background: linear-gradient(180deg, #C9A25E, #A9833F); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.dp-barra .agregar:disabled { background: rgba(230,216,196,.1); box-shadow: none; }
.dp-mas { padding: 26px 0 120px; }
.dp-mas .regla { margin: 0 0 8px; }
.dp-mas .bloque { margin: 0 0 18px; }
.dp-ver { width: 100%; margin-top: 12px; min-height: 54px; }
.d .bloque.llevas { background: var(--panel); border: 1px solid var(--linea); }

/* =====================================================================
   PROPUESTA A · "Galería"
   ===================================================================== */
.d-a h1, .d-a h2, .d-a .titulo-pag { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: -.01em; }
.g-marca { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; text-transform: none; letter-spacing: 0; }
.g-m1 { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 600; font-style: italic; color: var(--hueso); }
.g-m2 { font-size: .58rem; font-weight: 700; letter-spacing: .32em; color: var(--laton-claro) !important; margin-top: 4px; }

/* Inicio A: dos arcos */
.d-a .d-home { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 18px; padding: 24px 18px 36px; max-width: 760px; margin: 0 auto; }
.g-cat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.g-cat-arco, .g-prod-arco { display: block; width: 100%; aspect-ratio: 3 / 4.2; border-radius: 999px 999px 16px 16px; overflow: hidden; background: #F4EFE6; outline: 1px solid rgba(210,174,110,.6); outline-offset: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.g-cat-arco img, .g-prod-arco img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.g-cat:hover img, .g-prod:hover img { transform: scale(1.05); }
.g-num { font-family: "Fraunces", serif; font-style: italic; color: var(--laton-claro); margin-top: 22px; font-size: .95rem; }
.g-cat b { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1; margin-top: 2px; }
.g-cat-n { color: var(--tenue); font-size: .88rem; margin-top: 6px; }
.g-cat-ir { margin-top: 12px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 22px; border: 1px solid rgba(210,174,110,.7); border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--laton-claro); }
.g-cat:hover .g-cat-ir { background: var(--laton); color: var(--fondo); }

/* Categoría A */
.d-a .d-catpag h1 { font-size: 2.1rem; margin: 2px 0 22px; line-height: 1.05; }
.d-a .d-catpag h1 i { color: var(--laton-claro); }
.d-a .d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; }
.g-prod { display: flex; flex-direction: column; text-align: center; align-items: center; padding-top: 6px; }
.g-prod b { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.08rem; line-height: 1.15; margin-top: 16px; }
.g-prod em { font-style: normal; font-weight: 800; color: var(--laton-claro); margin-top: 4px; }
@media (min-width: 860px) { .d-a .d-grid { grid-template-columns: repeat(4, 1fr); gap: 36px 24px; } }

/* Producto A: foto en arco, nombre centrado, colores en círculos de tejido, tallas en píldoras */
.g-media { display: flex; justify-content: center; padding: 6px 0 4px; }
.g-arco { --h: clamp(170px, calc(100svh - 462px), 560px); position: relative; height: var(--h); width: min(100%, calc(var(--h) * .86)); border-radius: 999px 999px 18px 18px; overflow: hidden; background: #fff; outline: 1px solid rgba(210,174,110,.6); outline-offset: 5px; cursor: pointer; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.g-arco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-cab { text-align: center; margin: 14px 0 4px; }
.g-cab h1 { margin: 0; font-size: 1.5rem; line-height: 1.1; }
.g-precio { font-weight: 800; color: var(--laton-claro); font-size: 1.15rem; margin-top: 2px; }
.g-precio small { font-size: .78rem; color: var(--tenue); font-weight: 500; margin-left: 6px; }
.g-var { margin-top: 10px; }
.d-a .g-opc .bloque { background: none; padding: 0; border-radius: 0; }
.g-lab { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.g-lab span { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tenue); }
.g-lab em { font-family: "Fraunces", serif; font-size: 1.12rem; color: var(--hueso); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-lab small { color: var(--tenue); font-weight: 500; font-size: .8rem; margin-left: auto; }
.g-lab em + small { color: var(--rojo); font-weight: 700; margin-left: 0; }
.g-sw { display: flex; gap: 12px; overflow-x: auto; padding: 5px 5px 6px; }
.d .color.sw { width: 48px; height: 48px; box-shadow: 0 0 0 1px rgba(230,216,196,.25); }
.d .color.sw.sel { box-shadow: 0 0 0 3px var(--fondo), 0 0 0 5px var(--laton-claro); }
.g-tallas { display: flex !important; gap: 6px; }
.d-a .g-tallas .talla { flex: 1 1 0; min-width: 0; border-radius: 999px; border: 1px solid rgba(230,216,196,.3); background: rgba(24,33,27,.45); }
.d-a .g-tallas .talla.sel { background: var(--hueso); border-color: var(--hueso); color: var(--fondo); }
.d-a .g-tallas .talla.agotada { background: transparent; border-style: dashed; }

/* =====================================================================
   PROPUESTA B · "Carrusel"
   ===================================================================== */
.d-b h1, .d-b h2, .d-b .titulo-pag { font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
@media (max-width: 440px) { .d-b .pedido-btn > span { display: none; } }
.c-marca { font-stretch: 125%; font-weight: 900; font-size: .95rem; letter-spacing: .02em; display: flex; align-items: baseline; gap: 8px; }
.c-marca span { font-stretch: 100%; font-size: .62rem; letter-spacing: .3em; font-weight: 700; padding: 3px 6px; border: 1px solid rgba(210,174,110,.6); border-radius: 4px; }

/* Inicio B: dos paneles tipo cartel */
.d-b .d-home { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; padding: 12px 14px 16px; max-width: 1100px; margin: 0 auto; }
.c-cat { position: relative; overflow: hidden; border-radius: 26px; border: 1px solid rgba(210,174,110,.25); background: rgba(16,22,18,.4); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 18px 18px; isolation: isolate; }
.c-cat-foto { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: -1; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%); mask-image: linear-gradient(to right, transparent 0%, #000 45%); }
.c-cat-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.c-cat:hover .c-cat-foto img { transform: scale(1.05); }
.c-cat-num { position: absolute; top: 16px; left: 18px; font-size: .72rem; font-weight: 700; letter-spacing: .25em; color: var(--laton-claro); }
.c-cat b { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 14vw, 6.5rem); line-height: .9; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.c-cat-ir { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; margin-top: 12px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--laton); color: var(--fondo); font-weight: 800; font-size: .95rem; }
.c-cat-ir i { font-style: normal; transition: transform .2s; }
.c-cat:hover .c-cat-ir i { transform: translateX(4px); }
@media (min-width: 860px) { .d-b .d-home { grid-template-rows: none; grid-template-columns: 1fr 1fr; padding: 20px; } }

/* Categoría B: tarjetas anchas foto + datos */
.d-b .d-catpag h1 { font-size: clamp(2.4rem, 12vw, 4rem); margin: 0 0 16px; line-height: .95; }
.d-b .d-grid { display: grid; gap: 12px; }
.c-prod { display: grid; grid-template-columns: 42% 1fr; min-height: 150px; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--linea); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .15s; }
.c-prod:hover { border-color: var(--laton); }
.c-prod-foto { background: #fff; }
.c-prod-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-prod-info { display: flex; flex-direction: column; padding: 14px; }
.c-prod-n { font-size: .7rem; font-weight: 700; letter-spacing: .25em; color: var(--laton-claro); }
.c-prod-info b { font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: 1.02rem; line-height: 1.1; margin-top: 6px; }
.c-prod-pie { margin-top: auto; padding-top: 10px; }
.c-prod-pie em { display: block; font-style: normal; font-weight: 900; font-stretch: 112%; font-size: 1.3rem; color: var(--laton-claro); }
.c-prod-pie em small { font-size: .75rem; color: var(--tenue); font-weight: 500; }
@media (min-width: 760px) { .d-b .d-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* Producto B: carrusel donde cada foto es un color */
.c-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 0 10px; }
.c-cab h1 { margin: 0; font-size: 1.28rem; line-height: 1.02; }
.c-precio { text-align: right; white-space: nowrap; font-weight: 900; font-stretch: 112%; font-size: 1.35rem; color: var(--laton-claro); line-height: 1; }
.c-precio small { display: block; font-stretch: 100%; font-size: .7rem; color: var(--tenue); font-weight: 600; margin-top: 3px; }
.c-car { position: relative; }
.c-pista { --h: clamp(180px, calc(100svh - 398px), 560px); height: var(--h); display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 24px; background: #fff; scrollbar-width: none; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.c-pista::-webkit-scrollbar { display: none; }
.c-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; overflow: hidden; }
.c-slide::before { content: ""; position: absolute; inset: -30px; background: var(--bg) center / cover; filter: blur(22px) saturate(1.1); opacity: .85; }
.c-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.c-fl { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(18,25,20,.55); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; backdrop-filter: blur(6px); }
.c-fl.izq { left: 8px; } .c-fl.der { right: 8px; }
.c-etq { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.c-etq b, .c-etq span { background: rgba(18,25,20,.78); color: #F3EBDD; border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(6px); }
.c-etq b { font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-etq i { font-style: normal; color: #F4A28E; margin-left: 6px; font-size: .75rem; }
.c-etq span { font-size: .75rem; font-weight: 700; margin-left: auto; }
.c-dots { display: flex; gap: 10px; overflow-x: auto; padding: 12px 7px 6px; justify-content: safe center; }
.c-desliza { display: none; }
.d .color.dot { width: 38px; height: 38px; box-shadow: 0 0 0 1px rgba(230,216,196,.3); }
.d .color.dot.sel { box-shadow: 0 0 0 3px var(--fondo), 0 0 0 5px var(--laton-claro); transform: scale(1.08); }
.d-b .c-tallas { background: none; padding: 0; border-radius: 0; margin-top: 8px; }
.c-lab { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--tenue); margin-bottom: 6px; }
.c-seg { display: flex !important; gap: 0; border: 1px solid rgba(230,216,196,.3); border-radius: 16px; overflow: hidden; background: rgba(18,25,20,.5); }
.d-b .c-seg .talla { flex: 1 1 0; min-width: 0; border: 0; border-right: 1px solid rgba(230,216,196,.16); border-radius: 0; background: transparent; font-stretch: 112%; font-weight: 800; min-height: 54px; }
.d-b .c-seg .talla:last-child { border-right: 0; }
.d-b .c-seg .talla.sel { background: var(--laton); color: var(--fondo); }
.d-b .c-seg .talla.agotada { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(230,216,196,.06) 6px 8px); border-style: solid; }

/* ---------- Producto en computadora ---------- */
@media (min-width: 860px) {
  .d .pdp.dp { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 48px; align-items: start; padding-top: 6px; }
  .d .pdp.dp > * { grid-column: 2; }
  .d-a .g-media { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 80px; }
  .d-a .g-arco { --h: min(72vh, 600px); }
  .d-a .g-cab { text-align: left; }
  .d-a .g-cab h1 { font-size: 2.3rem; }
  .d-b .c-car { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 80px; }
  .d-b .c-pista { --h: min(72vh, 600px); }
  .d-b .c-cab h1 { font-size: 1.9rem; }
  .c-dots { justify-content: flex-start; }
  .dp-barra { position: static; padding: 0; margin-top: 18px; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dp-mas { padding-bottom: 60px; }
}

/* Pantallas bajitas (iPhone SE): más compacto para que todo quepa sin scroll */
@media (max-height: 640px) and (max-width: 859px) {
  .d header.top .wrap { height: 52px; }
  .d .volver { min-height: 30px; font-size: .85rem; }
  .g-arco { --h: clamp(140px, calc(100svh - 418px), 520px); }
  .g-cab h1 { margin-bottom: 0; }
  .g-var { margin-top: 6px; }
  .d .color.sw { width: 42px; height: 42px; }
  .g-cab { margin-top: 10px; }
  .g-cab h1 { font-size: 1.25rem; }
  .c-pista { --h: clamp(150px, calc(100svh - 372px), 520px); }
  .d .talla, .d-b .c-seg .talla { min-height: 46px; }
  .dp-barra .cantidad button, .dp-barra .cantidad input { height: 50px; }
  .dp-barra .agregar { min-height: 50px; }
}
