/* Estilos propios de la tienda (los colores y tipografías de la marca están en tools/tailwind-config.js) */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: #fbf5ec;
  color: #3a2e26;
  font-weight: 450;
  font-synthesis: none;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
.font-serif {
  letter-spacing: 0.005em;
}
.card .img2 {
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover .img2 {
  opacity: 1;
}
.card .sizes {
  transform: translateY(100%);
  transition: transform 0.25s;
}
.card:hover .sizes,
.card:focus-within .sizes {
  transform: none;
}
@media (hover: none) {
  .card .sizes {
    transform: none;
    position: static;
    background: none;
  }
  .card .imgbox {
    margin-bottom: 0;
  }
}
.slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s;
}
.slide.on {
  opacity: 1;
  pointer-events: auto;
}
#drawer {
  transition: transform 0.3s;
}
#drawer.closed {
  transform: translateX(100%);
}
#menuDrawer {
  transition: transform 0.3s;
}
#menuDrawer.closed {
  transform: translateX(-100%);
  visibility: hidden;
}
.mi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 13px 12px;
  border-radius: 6px;
}
.mi:hover,
.mi.on {
  background: #f4eadb;
  color: #8a6038;
}
.mi small {
  font-size: 12px;
  color: rgba(58, 46, 38, 0.55);
}
.mi.sub {
  padding-left: 28px;
  font-size: 15px;
}
#veil {
  transition: opacity 0.3s;
}
.hide {
  display: none !important;
}
.chip.out,
.sizeb.out,
.card .sizes .chip.out {
  opacity: 0.4 !important;
  text-decoration: line-through;
  cursor: not-allowed;
}
#stage {
  user-select: none;
  -webkit-user-select: none;
  --w: min(64vw, 280px);
  position: relative;
  height: calc(var(--w) * 1.3333 + 8px);
  perspective: 1600px;
  touch-action: pan-y;
  outline: none;
  cursor: grab;
}
@media (min-width: 640px) {
  #stage {
    --w: 320px;
  }
}
@media (min-width: 1024px) {
  #stage {
    --w: 360px;
  }
}
.sl {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: calc(var(--w) * 1.3333);
  padding: 0;
  border: 0;
  background: none;
}
.sl img {
  scale: 1.08;
  -webkit-user-drag: none;
  user-select: none;
}
.sl .imgw {
  box-shadow: 0 28px 45px -22px rgba(58, 46, 38, 0.6);
}
@keyframes kb {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}
.sl.on img {
  animation: kb 8s ease-out forwards;
}
.bgl {
  transition: opacity 1.4s;
}
.pgb {
  padding: 12px 2px;
  background: none;
  border: 0;
}
.pg {
  display: block;
  height: 4px;
  width: 8px;
  border-radius: 99px;
  background: rgba(58, 46, 38, 0.22);
  overflow: hidden;
  position: relative;
  transition: width 0.5s;
}
.pg.on {
  width: 46px;
}
#pgs .pg {
  width: 46px;
  transition: none;
}
.pg i {
  position: absolute;
  inset: 0;
  background: #8a6038;
  transform-origin: left;
  transform: scaleX(0);
}
.pg.on i {
  animation: fill 5s linear forwards;
}
@keyframes fill {
  to {
    transform: scaleX(1);
  }
}
#carSec.paused .pg.on i,
#carSec.paused .sl.on img {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .sl.on img {
    animation: none !important;
  }
  .pg.on i {
    animation: none !important;
    transform: scaleX(1);
  }
}

/* ===== Animaciones al pasar el mouse (solo con mouse; en celular se desactivan) ===== */
.favbtn {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}
.favbtn.pop {
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.arrow {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s,
    color 0.3s;
}
.btnf {
  background: linear-gradient(90deg, #3a2e26 50%, #8a6038 50%) 100% 0/200% 100%;
  color: #fff;
  transition:
    background-position 0.6s cubic-bezier(0.22, 0.8, 0.2, 1),
    letter-spacing 0.4s;
}
.sl .imgw {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.sl .imgw::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.3),
    transparent 55%
  );
}
.sl.on {
  cursor: pointer;
}
.sl.on:hover .imgw::after {
  opacity: 1;
}
.tile .go {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
@media (hover: none) {
  .tile .go {
    opacity: 1;
    transform: none;
  }
}
@media (hover: hover) {
  .card {
    transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.2, 1);
  }
  .card:hover {
    transform: translateY(-7px);
  }
  .card .imgbox {
    transition: box-shadow 0.6s;
  }
  .card:hover .imgbox {
    box-shadow: 0 28px 38px -24px rgba(138, 96, 56, 0.6);
  }
  .card .imgbox img {
    transition:
      transform 1.2s cubic-bezier(0.22, 0.8, 0.2, 1),
      opacity 0.7s;
  }
  .card:hover .imgbox img {
    transform: scale(1.07);
  }
  .card .imgbox::after,
  .tile .tw::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
      115deg,
      transparent 38%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 62%
    );
    transform: translateX(-130%);
  }
  .card:hover .imgbox::after,
  .tile:hover .tw::after {
    transform: translateX(130%);
    transition: transform 1.1s ease;
  }
  .card .sizes {
    transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.2, 1);
  }
  .card .sizes .chip {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.4s,
      transform 0.45s cubic-bezier(0.22, 0.8, 0.2, 1),
      background 0.2s,
      color 0.2s;
  }
  .card:hover .sizes .chip,
  .card:focus-within .sizes .chip {
    opacity: 1;
    transform: none;
  }
  .card .sizes .chip:nth-child(2) {
    transition-delay: 0.07s;
  }
  .card .sizes .chip:nth-child(3) {
    transition-delay: 0.14s;
  }
  .card .sizes .chip:nth-child(4) {
    transition-delay: 0.21s;
  }
  .card .sizes .chip:nth-child(5) {
    transition-delay: 0.28s;
  }
  .card .sizes .chip:nth-child(6) {
    transition-delay: 0.35s;
  }
  .card h3 {
    display: inline;
    background: linear-gradient(currentColor, currentColor) 0 100%/0 1px no-repeat;
    transition: background-size 0.6s cubic-bezier(0.22, 0.8, 0.2, 1);
  }
  .card:hover h3 {
    background-size: 100% 1px;
  }
  .favbtn:hover {
    transform: scale(1.18);
  }
  .tile .tw img {
    transition: transform 1.5s cubic-bezier(0.22, 0.8, 0.2, 1);
  }
  .tile:hover .tw img {
    transform: scale(1.09);
  }
  .tile .tl {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: clamp(15px, 4.4vw, 21px);
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.2, 1);
  }
  .tile:hover .tl {
    transform: translateY(-8px);
  }
  .tile:hover .go {
    opacity: 1;
    transform: none;
  }
  .tile .tw {
    transition: box-shadow 0.6s;
  }
  .tile:hover .tw {
    box-shadow: 0 28px 38px -24px rgba(138, 96, 56, 0.6);
  }
  .arrow:hover {
    background: #3a2e26;
    color: #fff;
    transform: translateY(-50%) scale(1.12);
  }
  .btnf:hover {
    background-position: 0 0;
    letter-spacing: 0.035em;
  }
}
.zoomw {
  cursor: zoom-in;
  overflow: hidden;
}
.zoomw img {
  transition: transform 0.4s ease-out;
  transform-origin: var(--zx, 50%) var(--zy, 50%);
}
@media (hover: hover) {
  .zoomw:hover img {
    transform: scale(1.9);
  }
}
.sizeb {
  min-width: 54px;
  padding: 10px 14px;
  border: 1px solid rgba(58, 46, 38, 0.35);
  font-weight: 500;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.2s;
}
.sizeb:hover {
  border-color: #3a2e26;
}
.sizeb.sel {
  background: #3a2e26;
  color: #fff;
  border-color: #3a2e26;
}
.sizeb:active {
  transform: scale(0.96);
}
.dot.big {
  width: 30px;
  height: 30px;
}
@keyframes shake {
  0%,
  100% {
    transform: none;
  }
  25% {
    transform: translateX(-7px);
  }
  75% {
    transform: translateX(7px);
  }
}
.shake {
  animation: shake 0.4s;
}
@keyframes pdin {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#pdp.show #pdGal {
  animation: pdin 0.8s cubic-bezier(0.22, 0.8, 0.2, 1) both;
}
#pdp.show #pdInfo {
  animation: pdin 0.8s 0.12s cubic-bezier(0.22, 0.8, 0.2, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  #pdp.show #pdGal,
  #pdp.show #pdInfo {
    animation: none;
  }
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #8a6038;
  outline-offset: 2px;
}
.chip {
  border: 1px solid #3a2e26;
  padding: 2px 9px;
  font-size: 12px;
  min-width: 34px;
  text-align: center;
}
.chip:hover,
.chip.sel {
  background: #3a2e26;
  color: #fff;
}
.dot {
  width: 16px;
  height: 16px;
  border-radius: 99px;
  border: 1px solid #0003;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dot:hover {
  transform: scale(1.3);
}
.dot.sel {
  outline: 2px solid #8a6038;
  outline-offset: 2px;
}
.navlink {
  white-space: nowrap;
  padding: 8px 4px;
  background: linear-gradient(#8a6038, #8a6038) 50% 100%/0 2px no-repeat;
  transition:
    background-size 0.45s cubic-bezier(0.22, 0.8, 0.2, 1),
    color 0.3s;
}
.navlink:hover,
.navlink.on {
  background-size: 100% 2px;
  color: #8a6038;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ===== Suavizado visual (formas redondeadas, sombras suaves, movimientos con curva) =====
   Todo lo de este bloque es opcional: si se borra, el sitio vuelve a verse como antes. */
:root {
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}
/* Carrusel */
.sl .imgw {
  border-radius: 22px;
  box-shadow:
    0 34px 50px -30px rgba(58, 46, 38, 0.55),
    0 12px 24px -14px rgba(58, 46, 38, 0.3);
}
.sl .imgw {
  transition: transform 0.8s var(--ease);
}
#cap {
  transition:
    opacity 0.5s ease,
    transform 0.7s var(--ease) !important;
}
.arrow {
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -8px rgba(58, 46, 38, 0.35) !important;
}
/* Botones: píldora */
.btnf,
button.bg-wine,
button.border.border-ink {
  border-radius: 999px;
}
.btnf,
button.border.border-ink {
  transition:
    background-position 0.6s var(--ease),
    background 0.35s,
    color 0.35s,
    box-shadow 0.4s var(--ease),
    transform 0.3s var(--ease);
}
@media (hover: hover) {
  .btnf:hover {
    box-shadow: 0 10px 22px -12px rgba(58, 46, 38, 0.6);
    transform: translateY(-1px);
  }
}
.btnf:active {
  transform: scale(0.98);
}
/* Fotos de productos y secciones */
.imgbox,
.tile .tw,
.zoomw {
  border-radius: 18px;
}
#pdGal .zoomw,
#pdGal img {
  border-radius: 20px;
}
#pdGal button img {
  border-radius: 12px;
}
@media (hover: hover) {
  .card .imgbox {
    transition:
      transform 0.6s var(--ease),
      box-shadow 0.6s var(--ease);
  }
  .card:hover .imgbox {
    transform: translateY(-4px);
    box-shadow: 0 22px 34px -22px rgba(58, 46, 38, 0.55);
  }
  .card .sizes {
    margin: 0 8px 8px;
    border-radius: 14px;
    transform: translateY(calc(100% + 14px));
    backdrop-filter: blur(8px);
  }
  .card:hover .sizes,
  .card:focus-within .sizes {
    transform: none;
  }
}
/* Talles, cantidades y casillas */
.sizeb {
  border-radius: 999px;
  min-width: 52px;
}
.chip {
  border-radius: 999px;
}
input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='search']),
select,
textarea {
  border-radius: 12px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(138, 96, 56, 0.45);
  outline-offset: 1px;
}
/* Cajas, listas y ventanas */
ul.border,
div.bg-blush.border,
div.bg-white.border,
div.border.border-rose {
  border-radius: 14px;
  overflow: hidden;
}
[role='dialog'] {
  border-radius: 22px !important;
  box-shadow: 0 30px 70px -30px rgba(58, 46, 38, 0.6);
}
#drawer,
#menuDrawer {
  box-shadow: 0 0 60px -10px rgba(58, 46, 38, 0.35);
}
#drawer {
  border-radius: 22px 0 0 22px;
}
#menuDrawer {
  border-radius: 0 22px 22px 0;
}
#pdInfo button.border,
#pdInfo div.border {
  border-radius: 999px;
}
#pdInfo div.border.border-ink\/35 {
  overflow: hidden;
}
#pdInfo div.bg-blush {
  border-radius: 16px;
}
[aria-label^='Cerrar'] {
  border-radius: 999px;
}

/* ===== Accesibilidad: contraste de colores (WCAG 2.2 AA, 1.4.3) y foco visible (2.4.7) =====
   Textos grises más oscuros: antes 50-70% de opacidad (contraste 2,6 a 4,3); ahora 78% (mínimo 4,5 sobre todos los fondos del sitio). */
body .text-ink\/50,
body .text-ink\/60,
body .text-ink\/70 {
  color: rgba(58, 46, 38, 0.78) !important;
}
input::placeholder,
textarea::placeholder {
  color: rgba(58, 46, 38, 0.72) !important;
  opacity: 1;
}
#waFloat {
  background: #1a7f45; /* verde más oscuro: texto blanco con contraste 5,0 (antes 2,0 con #25D366) */
}
#stage:focus-visible {
  outline: 2px solid #8a6038;
  outline-offset: 6px;
}
