/* =============================================
   MELEK NAKIŞ — style.css v5
   Paleta ORIGINAL mantenida:
   --cream:      #F5F2ED
   --black:      #0D0D0D
   --chrome:     #2A2A2A
   --olive:      #7A8B6F
   --olive-light:#C5CFBE
   --sand:       #E8E0D4
   --text-muted: #8a8480
   Fuentes originales: Fraunces + Cormorant + Montserrat
   Mejoras: hero con foto+blur, tipografía hero más impactante,
            WA flotante luxury blanco+oliva+dorado,
            transiciones y efectos mejorados en toda la página
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&family=Montserrat:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --cream:       #F5F2ED;
  --black:       #0D0D0D;
  --chrome:      #2A2A2A;
  --olive:       #7A8B6F;
  --olive-dark:  #5C6B52;
  --olive-light: #C5CFBE;
  --sand:        #E8E0D4;
  --sand-warm:   #D6C9B8;
  --gold:        #B89A6A;
  --gold-light:  #D4B896;
  --text-muted:  #8a8480;
  --white:       #ffffff;
  --radius:      2px;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition:  0.42s var(--ease);
  --trans-fast:  0.22s var(--ease);
  --shadow:      0 8px 40px rgba(13,13,13,0.10);
  --shadow-strong: 0 22px 60px rgba(13,13,13,0.14);
  --header-h:    64px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; }

/* ══════════════════════════════
   SPA PAGES
══════════════════════════════ */
.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--header-h);
  animation: pageFadeIn 0.5s var(--ease) both;
}
.page.active { display: block; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.catalog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ══════════════════════════════
   OVERLAY
══════════════════════════════ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(13,13,13,0.5);
  z-index: 99; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.overlay.active { opacity: 1; pointer-events: all; }

/* ══════════════════════════════
   SIDE NAV
══════════════════════════════ */
.side-nav {
  position: fixed; top: 0; left: 0; height: 100vh; width: 300px;
  background: var(--black); color: var(--cream);
  z-index: 100; transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex; flex-direction: column; padding: 2rem 1.5rem;
  overflow-y: auto;
}
.side-nav.open { transform: translateX(0); }

.close-nav {
  align-self: flex-end; font-size: 1.2rem; color: var(--cream);
  background: none; border: none; cursor: pointer; padding: 0.5rem;
  margin-bottom: 1rem; opacity: 0.6; transition: opacity 0.2s, transform 0.2s;
}
.close-nav:hover { opacity: 1; transform: rotate(90deg); }

.side-nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 300; letter-spacing: 0.3em;
  color: var(--cream); margin-bottom: 2.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid rgba(245,242,237,0.12);
}

.side-nav-list { list-style: none; flex: 1; }
.side-nav-list > li { border-bottom: 1px solid rgba(245,242,237,0.07); }

.nav-category, .nav-link {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 1rem 0; font-size: 0.82rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cream); background: none;
  border: none; cursor: pointer;
  transition: color 0.25s, transform 0.25s, letter-spacing 0.25s;
  position: relative;
}
.nav-category:hover, .nav-link:hover,
.nav-link.active-nav { color: var(--olive-light); transform: translateX(4px); letter-spacing: 0.2em; }
.nav-link.active-nav::before {
  content: ''; position: absolute; left: -1.5rem; top: 50%;
  width: 4px; height: 4px; border-radius: 50%; background: var(--olive-light);
  transform: translateY(-50%);
}
.nav-link { display: block; text-align: left; }

.nav-arrow { font-size: 1.2rem; transition: transform 0.3s var(--ease); display: inline-block; }
.nav-category.open .nav-arrow { transform: rotate(90deg); }

.nav-sub { list-style: none; max-height: 0; overflow: hidden; transition: max-height 0.38s var(--ease); }
.nav-sub.open { max-height: 280px; }

.nav-sub-link {
  display: block; padding: 0.55rem 0 0.55rem 1rem;
  font-size: 0.78rem; color: rgba(245,242,237,0.5);
  letter-spacing: 0.08em; transition: color 0.2s, transform 0.2s; text-transform: none;
}
.nav-sub-link:hover { color: var(--cream); transform: translateX(3px); }

.nav-socials { display: flex; gap: 1.2rem; padding-top: 2rem; border-top: 1px solid rgba(245,242,237,0.12); }
.social-icon {
  width: 20px; height: 20px; color: rgba(245,242,237,0.45);
  transition: color 0.25s, transform 0.25s; display: flex; align-items: center;
}
.social-icon:hover { color: var(--cream); transform: translateY(-2px); }
.social-icon svg { width: 20px; height: 20px; }

/* ══════════════════════════════
   TOP HEADER
══════════════════════════════ */
.top-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 1.5rem; height: var(--header-h);
  background: rgba(245,242,237,0.92);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(13,13,13,0.07);
  transition: height 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}
.top-header.scrolled {
  height: 54px;
  background: rgba(245,242,237,0.98);
  box-shadow: 0 2px 24px rgba(13,13,13,0.08);
}

.menu-btn { display: flex; flex-direction: column; gap: 5px; width: 28px; padding: 4px; }
.menu-btn span {
  display: block; height: 1.5px; background: var(--black);
  transition: all 0.35s var(--ease); transform-origin: center;
}
.menu-btn.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.header-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 300; letter-spacing: 0.3em;
  position: absolute; left: 50%; transform: translateX(-50%);
  color: var(--black); white-space: nowrap;
  transition: opacity 0.25s, letter-spacing 0.35s;
  background: none; border: none; cursor: pointer;
}
.header-logo:hover { opacity: 0.55; letter-spacing: 0.4em; }

.cart-btn { position: relative; display: flex; align-items: center; color: var(--black); transition: opacity 0.2s, transform 0.2s; }
.cart-btn:hover { opacity: 0.65; transform: scale(1.06); }
.cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--olive); color: white; font-size: 0.65rem;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 500;
}

/* ══════════════════════════════
   HERO — FOTO + BLUR CREMA
══════════════════════════════ */
.page#page-inicio { padding-top: 0; }

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* Capas del fondo */
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 18%;
  filter: brightness(0.98) saturate(1) contrast(1.02);
  transform: scale(1.03);
  transition: transform 10s ease;
  will-change: transform;
}
.hero:hover .hero-bg-photo { transform: scale(1.005); }

/* Velo crema muy sutil y uniforme — sin parches, solo para legibilidad del texto */
.hero-bg-veil {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(245,242,237,0.12) 0%,
    rgba(245,242,237,0.02) 30%,
    rgba(245,242,237,0.02) 60%,
    rgba(245,242,237,0.30) 100%
  );
}


/* Contenido del hero — pequeño, centrado, discreto */
.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  animation: heroReveal 1.3s var(--ease) both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 400; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 18px rgba(245,242,237,0.85);
  animation: heroReveal 1.3s 0.1s var(--ease) both;
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 400; font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--black);
  max-width: 16ch;
  margin: 0 auto 1.1rem;
  text-shadow: 0 4px 30px rgba(245,242,237,0.9);
  animation: heroReveal 1.3s 0.16s var(--ease) both;
}

.hero-sub {
  font-size: 0.78rem; letter-spacing: 0.12em;
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 12px rgba(245,242,237,0.7);
  animation: heroReveal 1.3s 0.24s var(--ease) both;
}

.hero-actions {
  display: flex; justify-content: center;
  animation: heroReveal 1.3s 0.32s var(--ease) both;
}

/* CTA principal — negro con fill oliva en hover */
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 2.2rem;
  background: var(--black); color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: color 0.38s var(--ease), box-shadow 0.3s;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(13,13,13,0.16);
}
.hero-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--olive);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.hero-cta:hover::before { transform: scaleX(1); transform-origin: left; }
.hero-cta:hover { box-shadow: 0 10px 30px rgba(13,13,13,0.2); }
.hero-cta span, .hero-cta svg { position: relative; z-index: 1; }
.hero-cta svg { transition: transform 0.3s var(--ease); }
.hero-cta:hover svg { transform: translateX(5px); }

/* ══════════════════════════════
   SECTION HEADERS
══════════════════════════════ */
.section-header { text-align: center; margin-bottom: 2rem; }
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; letter-spacing: 0.05em;
}
.section-sub {
  font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 0.5rem;
}
.section-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 1rem;
}

/* ══════════════════════════════
   FILTER BAR
══════════════════════════════ */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(13,13,13,0.18);
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: transparent; color: var(--chrome);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.2s;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--olive); color: var(--olive); transform: translateY(-2px); }
.filter-btn.active { background: var(--black); color: var(--cream); border-color: var(--black); }

/* ══════════════════════════════
   PRODUCTS GRID
══════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

.product-card {
  background: var(--white);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  position: relative;
  border: 1px solid rgba(13,13,13,0.06);
  animation: cardRise 0.55s var(--ease) both;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(122,139,111,0.3);
}

.product-img-wrap {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

/* Shimmer sweep on hover */
.product-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(125deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0.75s var(--ease);
}
.product-card:hover .product-img-wrap::after { background-position: -100% 0; }

.product-info { padding: 1rem 1rem 0.6rem; }
.product-cat {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.3rem;
}
.product-name { font-family: 'Fraunces', serif; font-size: 1.08rem; font-weight: 300; margin-bottom: 0.6rem; }

.product-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem 0.9rem; gap: 0.5rem;
}
.product-price { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em; }

.card-cart-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--black); color: var(--cream);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background 0.28s, transform 0.18s;
  white-space: nowrap; flex-shrink: 0;
}
.card-cart-btn:hover { background: var(--olive); transform: translateY(-1px); }
.card-cart-btn:active { transform: scale(0.97); }
.card-cart-btn svg { flex-shrink: 0; }
.card-cart-btn.disabled { background: var(--sand); color: var(--text-muted); cursor: not-allowed; pointer-events: none; }

/* Quick-add panel */
.quick-add-panel {
  display: none; padding: 0.8rem 1rem 1rem;
  border-top: 1px solid rgba(13,13,13,0.07);
  background: var(--cream); animation: quickFade 0.22s var(--ease);
}
.quick-add-panel.open { display: block; }
@keyframes quickFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.qa-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 0.45rem; }
.qa-options { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.qa-opt {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(13,13,13,0.2);
  font-size: 0.72rem; cursor: pointer; transition: all 0.18s; background: transparent;
}
.qa-opt:hover { border-color: var(--olive); color: var(--olive); }
.qa-opt.selected { background: var(--black); color: var(--cream); border-color: var(--black); }
.qa-opt.unavailable { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.qa-confirm {
  width: 100%; margin-top: 0.5rem; padding: 0.6rem;
  background: var(--olive); color: white;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background 0.22s;
}
.qa-confirm:hover { background: var(--black); }

@keyframes cardRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════
   NOSOTROS
══════════════════════════════ */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.15; margin-bottom: 1.5rem;
}
.about-title em { font-style: italic; color: var(--olive); }
.about-text p { color: var(--chrome); line-height: 1.9; margin-bottom: 1rem; font-size: 0.92rem; }
.about-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.pillar {
  text-align: center; padding: 1rem 0.5rem;
  border-top: 2px solid var(--olive-light);
  transition: border-color 0.3s;
}
.pillar:hover { border-color: var(--olive); }
.pillar-icon { display: block; font-size: 1rem; color: var(--olive); margin-bottom: 0.5rem; }
.pillar strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; }
.pillar p { font-size: 0.75rem; color: var(--text-muted); margin: 0; }
.about-img-frame { aspect-ratio: 3/4; overflow: hidden; position: relative; }
.about-img-frame::before { content: ''; position: absolute; inset: -8px; z-index: -1; border: 1px solid var(--olive-light); }
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════
   ENVÍOS + PAGOS
══════════════════════════════ */
.info-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.info-title { font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 300; margin-bottom: 2.5rem; }
.info-lead { max-width: 660px; margin: -1.2rem auto 2.2rem; color: var(--chrome); font-size: 0.92rem; line-height: 1.9; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }

/* Shared card style for hover lift + top line reveal */
.info-card,
.payment-card,
.guarantee-item,
.size-table-card {
  position: relative; overflow: hidden;
}
.info-card::before,
.payment-card::before,
.guarantee-item::before,
.size-table-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--olive), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.38s var(--ease);
}

.info-card {
  background: white; padding: 2rem 1.5rem; border: 1px solid rgba(13,13,13,0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.info-card:hover,
.payment-card:hover,
.guarantee-item:hover,
.size-table-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(122,139,111,0.22);
}
.info-card:hover::before,
.payment-card:hover::before,
.guarantee-item:hover::before,
.size-table-card:hover::before { transform: scaleX(1); }

.info-icon { font-size: 2rem; margin-bottom: 1rem; }
.info-card h3 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.info-days { font-family: 'Fraunces', serif; font-size: 1.35rem; color: var(--olive); margin-bottom: 0.7rem; }
.info-card p { font-size: 0.82rem; color: var(--chrome); line-height: 1.7; }
.info-note { font-size: 0.8rem; color: var(--text-muted); padding: 1rem; background: var(--sand); border-left: 3px solid var(--olive); text-align: left; }

.payment-block { margin-top: 3rem; }
.payment-title { font-family: 'Fraunces', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; margin-bottom: 2rem; }
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.payment-card {
  background: white; padding: 2rem 1rem; border: 1px solid rgba(13,13,13,0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.payment-logo { font-size: 2rem; margin-bottom: 1rem; }
.payment-card strong { display: block; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.payment-card p { font-size: 0.78rem; color: var(--text-muted); }

/* ══════════════════════════════
   GUÍA DE TALLAS
══════════════════════════════ */
.size-guide-inner { max-width: 980px; margin: 0 auto; }
.size-guide-title { font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; margin-bottom: 1rem; }
.size-guide-sub { max-width: 680px; color: var(--chrome); line-height: 1.9; font-size: 0.92rem; margin-bottom: 2rem; }
.size-table-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }

.size-table-card {
  background: var(--white); border: 1px solid rgba(13,13,13,0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.size-table-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 1.2rem 1.2rem 0.8rem; border-bottom: 1px solid rgba(13,13,13,0.07);
}
.size-table-head span { font-family: 'Fraunces', serif; font-weight: 300; font-size: 1.25rem; }
.size-table-head small { color: var(--text-muted); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; min-width: 430px; }
.size-table th, .size-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid rgba(13,13,13,0.06); font-size: 0.82rem; }
.size-table th { color: var(--text-muted); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.size-table td:first-child { font-weight: 600; color: var(--olive); }
.size-table tbody tr { transition: background 0.18s; }
.size-table tbody tr:hover { background: rgba(122,139,111,0.07); }
.measure-note { margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--sand); border-left: 3px solid var(--olive); color: var(--chrome); display: grid; gap: 0.25rem; font-size: 0.86rem; }

/* ══════════════════════════════
   GARANTÍAS
══════════════════════════════ */
.guarantee-inner { max-width: 900px; margin: 0 auto; }
.guarantee-title { font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 300; margin-bottom: 2.5rem; }
.guarantee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.guarantee-item {
  background: white; padding: 1.8rem; border: 1px solid rgba(13,13,13,0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.guarantee-item h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; color: var(--olive-dark); }
.guarantee-item p { font-size: 0.82rem; color: var(--chrome); line-height: 1.8; }

/* ══════════════════════════════
   CONTACTO
══════════════════════════════ */
.contact-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-title { font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; margin-bottom: 1rem; }
.contact-sub { font-size: 0.9rem; color: var(--chrome); margin-bottom: 2.5rem; }
.contact-channels { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.contact-channel {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  padding: 2rem 2.5rem; border: 1px solid rgba(13,13,13,0.12); background: white;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.3s, color 0.3s, border-color 0.3s;
}
.contact-channel:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.wa-channel:hover { background: #25D366; color: white; border-color: #25D366; }
.ig-channel:hover { background: var(--text-muted); color: white; border-color: var(--text-muted); }
.tt-channel:hover { background: var(--chrome); color: white; border-color: var(--chrome); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer { background: var(--black); color: var(--cream); padding: 3rem 1.5rem; text-align: center; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; letter-spacing: 0.3em; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,242,237,0.45); margin-bottom: 0.5rem; }
.footer-copy { font-size: 0.72rem; color: rgba(245,242,237,0.25); }

/* ══════════════════════════════
   MODAL PRODUCTO
══════════════════════════════ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; }
.modal.open { display: flex; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(13,13,13,0.62); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.modal-box {
  position: relative; z-index: 1;
  background: var(--cream); width: 90vw; max-width: 860px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.4s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(22px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  font-size: 1.1rem; color: var(--text-muted); transition: color 0.2s, transform 0.2s;
  background: rgba(245,242,237,0.9); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.modal-close:hover { color: var(--black); transform: rotate(90deg); }

.modal-content { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }
.modal-gallery { background: var(--sand); }
.modal-main-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: opacity 0.2s; }
.modal-thumbs { display: flex; gap: 0.4rem; padding: 0.6rem; overflow-x: auto; }
.modal-thumb {
  width: 56px; height: 70px; object-fit: cover; cursor: pointer;
  opacity: 0.55; transition: opacity 0.2s, border-color 0.2s; flex-shrink: 0; border: 2px solid transparent;
}
.modal-thumb.active { opacity: 1; border-color: var(--olive); }
.modal-thumb:hover { opacity: 0.85; }

.modal-details { padding: 2rem 1.8rem; overflow-y: auto; }
.modal-cat { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.modal-name { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 300; margin-bottom: 0.7rem; }
.modal-price { font-size: 1.4rem; font-weight: 500; margin-bottom: 1rem; }
.modal-desc { font-size: 0.86rem; line-height: 1.8; color: var(--chrome); margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(13,13,13,0.1); }

.selector-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.7rem; display: block; }
.color-options, .size-options { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.color-option, .size-option {
  padding: 0.5rem 1rem; border: 1px solid rgba(13,13,13,0.2);
  font-size: 0.78rem; cursor: pointer; transition: all 0.2s; background: transparent;
}
.color-option:hover:not(.unavailable), .size-option:hover:not(.unavailable),
.color-option.selected, .size-option.selected { background: var(--black); color: var(--cream); border-color: var(--black); }
.color-option.unavailable, .size-option.unavailable { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

.add-to-cart-btn {
  width: 100%; padding: 1.1rem;
  background: var(--black); color: var(--cream);
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.3s; margin-top: 0.5rem; border: none; cursor: pointer;
}
.add-to-cart-btn:hover { background: var(--olive); }
.add-to-cart-btn:disabled { background: var(--text-muted); cursor: not-allowed; }

/* ══════════════════════════════
   CARRITO LATERAL
══════════════════════════════ */
.cart-panel {
  position: fixed; top: 0; right: 0; height: 100vh; width: 340px;
  background: var(--cream); z-index: 150;
  transform: translateX(100%); transition: transform var(--transition);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(13,13,13,0.12);
}
.cart-panel.open { transform: translateX(0); }

.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid rgba(13,13,13,0.09); }
.cart-header h3 { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 300; }
.cart-header button { font-size: 1.2rem; color: var(--text-muted); transition: color 0.2s, transform 0.2s; }
.cart-header button:hover { color: var(--black); transform: rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-item {
  display: grid; grid-template-columns: 70px 1fr auto;
  gap: 0.8rem; padding: 1rem 0;
  border-bottom: 1px solid rgba(13,13,13,0.07);
  animation: cartSlide 0.3s var(--ease);
}
@keyframes cartSlide {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item-img { width: 70px; height: 88px; object-fit: cover; }
.cart-item-name { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 300; margin-bottom: 0.3rem; }
.cart-item-details { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }
.cart-item-price { font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.cart-remove { display: block; font-size: 0.7rem; color: var(--text-muted); text-decoration: underline; cursor: pointer; margin-top: 0.3rem; background: none; border: none; font-family: inherit; transition: color 0.2s; }
.cart-remove:hover { color: var(--black); }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); font-size: 0.85rem; }

.cart-footer { padding: 1.5rem; border-top: 1px solid rgba(13,13,13,0.09); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-total span { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cart-total strong { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 300; }
.cart-note { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 1rem; padding: 0.6rem; background: var(--sand); text-align: center; }
.checkout-btn {
  width: 100%; padding: 1rem;
  background: var(--black); color: var(--cream);
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.3s; border: none; cursor: pointer;
}
.checkout-btn:hover { background: var(--olive); }

/* ══════════════════════════════
   CHECKOUT MODAL
══════════════════════════════ */
.checkout-box { padding: 0; max-width: 500px; border-radius: 4px; }
.checkout-title { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 300; padding: 2rem 2rem 0; letter-spacing: 0.05em; }
.checkout-note { font-size: 0.78rem; color: var(--text-muted); padding: 0.8rem 2rem; border-left: 3px solid var(--olive); margin: 1rem 2rem; background: var(--sand); }
.checkout-summary { padding: 0 2rem 1.5rem; border-bottom: 1px solid rgba(13,13,13,0.1); max-height: 200px; overflow-y: auto; }
.checkout-summary-item { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(13,13,13,0.05); }
.checkout-total-row { display: flex; justify-content: space-between; font-weight: 500; font-size: 0.9rem; padding-top: 0.8rem; margin-top: 0.5rem; border-top: 1px solid rgba(13,13,13,0.12); }
.checkout-form { padding: 1.5rem 2rem 2rem; }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.75rem;
  border: 1px solid rgba(13,13,13,0.2); background: transparent;
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
  font-size: 0.88rem; color: var(--black); border-radius: 0;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(122,139,111,0.12);
}
.form-row textarea { min-height: 80px; resize: vertical; }
.wpp-send-btn {
  width: 100%; padding: 1.1rem;
  background: #25D366; color: white;
  font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  transition: background 0.3s; border: none; cursor: pointer;
}
.wpp-send-btn:hover { background: #1da851; }

/* ══════════════════════════════
   FLOATING WHATSAPP — LUXURY
   Redondeado, con sombras suaves y animaciones sutiles
══════════════════════════════ */
.floating-wa {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 90;
  display: flex; align-items: center;
  background: var(--cream);
  border: 1px solid var(--olive-light);
  border-radius: 50px;
  box-shadow: 0 10px 28px rgba(13,13,13,0.14), 0 2px 6px rgba(13,13,13,0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  overflow: hidden;
  animation: floatIn 1s 1.2s var(--ease) both, floatBob 4s 2.2s ease-in-out infinite;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.floating-wa:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 40px rgba(13,13,13,0.2), 0 4px 10px rgba(122,139,111,0.18);
  border-color: var(--olive);
  animation-play-state: paused;
}
.floating-wa:active { transform: translateY(-2px) scale(0.98); }

/* Círculo verde con ícono */
.floating-wa-icon {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  margin: 2px;
  border-radius: 50%;
  background: var(--olive); color: white;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.floating-wa:hover .floating-wa-icon { background: var(--olive-dark); transform: rotate(8deg) scale(1.06); }

/* Texto central */
.floating-wa-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 1.2rem 0 0.85rem; gap: 1px;
}
.floating-wa-label {
  font-size: 0.55rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.floating-wa-text {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--black); font-weight: 500; white-space: nowrap;
}

/* Punto "online" parpadeante con halo */
.floating-wa-dot {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%;
  background: #25D366; margin-right: 1.1rem; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
  animation: dotPulse 2s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
.toast {
  position: fixed; bottom: 5.5rem; left: 50%; transform: translateX(-50%) translateY(14px);
  background: var(--black); color: var(--cream);
  padding: 0.8rem 1.6rem; font-size: 0.82rem; letter-spacing: 0.1em;
  z-index: 300; opacity: 0; transition: all 0.3s var(--ease); white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════
   SCROLLBAR
══════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--olive-light); border-radius: 2px; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .modal-content { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-img { display: none; }
  .about-pillars { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .size-table-grid { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
}
@media (max-width: 480px) {
  .floating-wa-body { display: none; }
  .floating-wa-dot { display: none; }
  .floating-wa-icon { margin: 3px; width: 50px; height: 50px; }
  .cart-panel { width: 100%; }
  .checkout-box { border-radius: 12px 12px 0 0; }
  .checkout-form { padding: 1rem; }
  .checkout-title, .checkout-note { padding-left: 1rem; padding-right: 1rem; }
  .checkout-summary { padding: 0 1rem 1rem; }
  .product-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .card-cart-btn { width: 100%; justify-content: center; }
  .size-table-head { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
