/* ══════════════════════════════════════════════════
   la Mona — styles.css
   Glassmorphism Modern — Rose / Cream / Gold
══════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────── */
:root {
  --bg:           #faf5f0;
  --bg-alt:       #f5ede6;
  --accent:       #c07890;
  --accent-dark:  #a05c72;
  --gold:         #c8a060;
  --gold-light:   #e8c88a;
  --text:         #1a1012;
  --text-muted:   #6b5058;
  --text-light:   #9c7880;
  --glass:        rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.40);
  --glass-shadow: 0 8px 32px rgba(160, 92, 114, 0.12);
  --wa:           #25d366;
  --wa-dark:      #128c7e;
  --nav-h:        90px;
  --radius:       18px;
  --radius-sm:    10px;
  --radius-pill:  999px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t:            0.3s;
  --font-d:       'Cormorant Garamond', Georgia, serif;
  --font-b:       'Inter', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.15; }
section, footer { scroll-margin-top: var(--nav-h); }

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ── Skip link ─────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── Container ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 720px)  { .container { padding: 0 2rem; } }
@media (min-width: 1280px) { .container { padding: 0 3rem; } }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(192, 120, 144, 0.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 24px rgba(192, 120, 144, 0.50);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
}
.btn-wa:hover {
  background: var(--wa-dark);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.42);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.nav.scrolled {
  background: rgba(253, 240, 243, 0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(192, 120, 144, 0.14),
              0 4px 24px rgba(160, 92, 114, 0.10);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 720px)  { .nav-inner { padding: 0 2rem; } }
@media (min-width: 1280px) { .nav-inner { padding: 0 3rem; } }

.nav-logo { flex-shrink: 0; }
.nav-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 0;
  object-fit: cover;
  display: block;
  transition: opacity var(--t), transform var(--t);
  mask-image: radial-gradient(ellipse 80% 76% at 50% 50%,
    black 28%, rgba(0,0,0,0.9) 46%, rgba(0,0,0,0.4) 64%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 76% at 50% 50%,
    black 28%, rgba(0,0,0,0.9) 46%, rgba(0,0,0,0.4) 64%, transparent 80%);
}
.nav-logo-img:hover { opacity: 0.88; transform: scale(1.04); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--t);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta { margin-left: auto; }

.nav-hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--t);
}
.nav-hamburger:hover { background: rgba(192, 120, 144, 0.08); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(253, 242, 245, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.25rem 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(192, 120, 144, 0.14);
  box-shadow: 0 8px 32px rgba(160, 92, 114, 0.12);
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-muted);
  transition: background var(--t), color var(--t);
}
.nav-mobile a:hover { background: rgba(192, 120, 144, 0.08); color: var(--accent); }
.nav-mobile .btn-wa { justify-content: center; margin-top: 0.5rem; }

@media (min-width: 720px) {
  .nav-links   { display: flex; }
  .nav-hamburger { display: none; }
  .nav-cta     { margin-left: 0; }
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  overflow: clip;
  background: #fdf2f5;
}

/* Background lifestyle photo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* Gradient overlay: rose-cream left (text area) → semi-transparent right (shows photo) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    #fdf2f5 0%,
    #fdf2f5 28%,
    rgba(253, 242, 245, 0.90) 42%,
    rgba(253, 235, 242, 0.60) 58%,
    rgba(248, 225, 235, 0.25) 75%,
    rgba(245, 218, 230, 0.08) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 720px)  { .hero-inner { padding: 3rem 2rem 4rem; } }
@media (min-width: 960px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding: 2rem 3rem 3rem;
    justify-content: center;
  }
}

/* ── Hero brand copy ─────────────────────────────── */
.hero-brand {
  flex: 0 0 auto;
  max-width: 500px;
  width: 100%;
}
/* ✦ sparkle before h1 */
.hero-sparkle {
  font-size: 1.2rem;
  color: var(--gold);
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: middle;
  line-height: 1;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  display: block;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 420px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

/* Outlined button */
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(192, 120, 144, 0.08);
  transform: translateY(-2px);
}

/* Stats row — icon + text */
.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.stat svg {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.80;
}
.stat-n {
  display: block;
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}
.stat-l {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* ── Hero right — badge + scattered photo cluster ─── */
.hero-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 320px;
}
@media (min-width: 960px) { .hero-right { max-width: 340px; } }

/* Circular badge — CSS only */
.hero-badge-circle {
  width: 158px;
  height: 158px;
  border-radius: 50%;
  border: 1.5px solid rgba(192, 120, 144, 0.35);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 8px 28px rgba(160, 92, 114, 0.14),
              0 2px 0 rgba(255,255,255,0.8) inset;
  animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
.badge-top {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.badge-heart {
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1.2;
  display: block;
  margin: 0.15rem 0;
}
.badge-bottom {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 3 product photos — scattered polaroid cluster */
.hero-photo-row {
  position: relative;
  width: 270px;
  height: 295px;
  flex-shrink: 0;
}
.hero-photo-card {
  position: absolute;
  width: 148px;
  height: 148px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 34px rgba(100, 60, 80, 0.18),
              0 2px 0 rgba(255,255,255,0.9) inset;
  border: 4px solid #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
/* photo 1 — top left, tilted left */
.hero-photo-card:nth-child(1) {
  top: 0; left: 60px;
  transform: rotate(-6deg);
  z-index: 3;
}
/* photo 2 — middle left, tilted right */
.hero-photo-card:nth-child(2) {
  top: 72px; left: 6px;
  transform: rotate(4deg);
  z-index: 2;
}
/* photo 3 — bottom right, slightly tilted */
.hero-photo-card:nth-child(3) {
  top: 145px; left: 88px;
  transform: rotate(-2deg);
  z-index: 1;
}
.hero-photo-card:hover {
  transform: translateY(-6px) scale(1.06) rotate(0deg) !important;
  box-shadow: 0 20px 48px rgba(100, 60, 80, 0.28);
  z-index: 10;
}
.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.hero-photo-card:hover img { transform: scale(1.05); }

/* ══════════════════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════════════════ */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header .section-sub { max-width: 480px; margin: 0 auto; }

/* ══════════════════════════════════════════════════
   CATÁLOGO
══════════════════════════════════════════════════ */
.catalogo { padding: 5rem 0 6rem; }

/* ── Filter bar ──────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(192, 120, 144, 0.18);
  transition: all var(--t) var(--ease);
  cursor: pointer;
}
.filter-btn:hover {
  background: rgba(192, 120, 144, 0.10);
  color: var(--accent);
  border-color: rgba(192, 120, 144, 0.35);
}
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(192, 120, 144, 0.38);
}
.filter-count {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.70;
}
.filter-btn.active .filter-count { opacity: 0.88; }

/* ── Product grid ────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 540px)  { .product-grid { gap: 1.25rem; } }
@media (min-width: 720px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }

/* ── Product card ────────────────────────────────── */
.product-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius);
  overflow: clip;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  will-change: transform;
}
@supports (backdrop-filter: blur(12px)) {
  .product-card {
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
  }
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(160, 92, 114, 0.18);
}
.product-card.hidden        { display: none; }
.product-card.cat-collapsed { display: none; }

.catalog-expand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0 0.5rem;
}
.catalog-expand-btn {
  min-width: 220px;
}

.card-img-wrap {
  position: relative;
  overflow: clip;
  aspect-ratio: 1;
  background: var(--bg-alt);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.product-card:hover .card-img-wrap img { transform: scale(1.07); }

.card-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(200, 160, 96, 0.92);
  color: #fff;
  backdrop-filter: blur(6px);
}

.card-body { padding: 0.875rem; }
.card-cat {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.card-name {
  font-family: var(--font-d);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.card-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-price {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
}

/* ══════════════════════════════════════════════════
   PERSONALIZAR EN VIVO
══════════════════════════════════════════════════ */
.personalizar {
  position: relative;
  padding: 5rem 0;
  overflow: clip;
}
.personalizar-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 60% at 85% 40%, rgba(232, 200, 138, 0.32) 0%, transparent 70%),
    radial-gradient(ellipse 60% 55% at 10% 60%, rgba(212, 160, 180, 0.36) 0%, transparent 70%),
    var(--bg-alt);
}
.personalizar .container { position: relative; z-index: 1; }

/* Grid: stage izquierda · controles derecha */
.perso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .perso-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
  }
}

/* ── Stage (preview del colgante) ───────────────── */
.perso-stage {
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border: 1px solid rgba(192,120,144,0.18);
  box-shadow: 0 30px 60px -20px rgba(160,92,114,0.18);
  position: relative;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.perso-corner,
.perso-corner-r {
  position: absolute;
  top: 14px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-b);
  z-index: 2;
}
.perso-corner   { left: 16px; }
.perso-corner-r { right: 16px; }
.perso-chain-svg {
  position: absolute;
  top: 0; left: 50%;
  width: 280px;
  height: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}
.perso-chain {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.perso-pendant {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FBF1E0 0%, #E2C595 38%, #B8985F 70%, #8C6E3F 100%);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 -6px 18px rgba(105, 78, 39, 0.38),
    inset 0 4px 12px rgba(255, 240, 200, 0.50),
    0 20px 40px -8px rgba(140, 110, 63, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.perso-pendant::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 240, 200, 0.40);
  pointer-events: none;
}
.perso-name {
  font-family: var(--font-d);
  font-style: italic;
  font-weight: 500;
  color: #4A371C;
  font-size: 56px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.55);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

/* ── Controls (derecha) ──────────────────────────── */
.perso-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.perso-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
}
.perso-title em { font-style: italic; color: var(--accent); }
.perso-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 430px;
}

/* Fields */
.perso-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.perso-field-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.perso-field-input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--text);
  padding: 0.6rem 0;
  font-family: var(--font-d);
  font-style: italic;
  font-size: 2rem;
  color: var(--text);
  outline: none;
  width: 100%;
  letter-spacing: -0.01em;
  transition: border-color 0.25s;
}
.perso-field-input:focus { border-color: var(--accent); }
.perso-field-input::placeholder { color: var(--text-muted); opacity: 0.45; }

/* Chips (material & cadena) */
.perso-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.perso-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid rgba(192,120,144,0.30);
  background: transparent;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-b);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.perso-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.perso-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.perso-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

/* Price + CTA */
.perso-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(192,120,144,0.18);
}
.perso-price-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}
.perso-price-amt {
  font-family: var(--font-d);
  font-size: 2.2rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.perso-price-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Pendant shapes ──────────────────────────────── */
.perso-pendant.dije-circulo {
  border-radius: 50%;
  width: 200px;
  height: 200px;
}
.perso-pendant.dije-corazon {
  border-radius: 0;
  width: 200px;
  height: 200px;
  clip-path: path("M100,175 C20,135 5,80 5,65 Q5,20 50,20 Q78,20 100,55 Q122,20 150,20 Q195,20 195,65 C195,80 180,135 100,175 Z");
}
.perso-pendant.dije-ovalo {
  border-radius: 50%;
  width: 162px;
  height: 210px;
}

/* ── Pendant shape for anillo / pulsera ─────────── */
.perso-stage[data-joya="anillo"] .perso-pendant {
  width: 240px !important;
  height: 58px !important;
  border-radius: 30px !important;
  clip-path: none !important;
}
.perso-stage[data-joya="pulsera"] .perso-pendant {
  width: 280px !important;
  height: 52px !important;
  border-radius: 26px !important;
  clip-path: none !important;
}
.perso-stage[data-joya="anillo"] .perso-chain-svg,
.perso-stage[data-joya="pulsera"] .perso-chain-svg { display: none; }

/* ── Fuente imprenta override ────────────────────── */
.perso-name.fuente-imprenta {
  font-family: var(--font-b);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── Hide fields based on joya type ─────────────── */
.perso-controls[data-joya="anillo"] .perso-field-dije,
.perso-controls[data-joya="anillo"] .perso-field-cadena,
.perso-controls[data-joya="pulsera"] .perso-field-dije,
.perso-controls[data-joya="pulsera"] .perso-field-cadena { display: none; }

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 640px) {
  .perso-pendant { width: 155px; height: 155px; }
  .perso-name    { font-size: 42px; }
  .perso-title   { font-size: 2rem; }
  .perso-price-amt { font-size: 1.75rem; }
  .perso-field-input { font-size: 1.6rem; }
  .perso-stage[data-joya="anillo"] .perso-pendant { width: 200px !important; height: 50px !important; }
  .perso-stage[data-joya="pulsera"] .perso-pendant { width: 220px !important; height: 45px !important; }
}

/* ══════════════════════════════════════════════════
   NOSOTROS
══════════════════════════════════════════════════ */
.nosotros {
  padding: 5rem 0;
  background: #fff;
}
.nosotros-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: flex-start;
}
@media (min-width: 960px) {
  .nosotros-inner {
    flex-direction: row;
    gap: 5rem;
    align-items: center;
  }
}

.nosotros-img {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  max-width: 420px;
  padding-bottom: 1.5rem;
  padding-right: 1.5rem;
}
.nosotros-img > img:first-child {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(160, 92, 114, 0.14);
}
.nosotros-img-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 4px solid #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.nosotros-text { flex: 1; }
.nosotros-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 1rem;
}
.nosotros-text p strong { color: var(--text); font-weight: 500; }

.nosotros-valores {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(192, 120, 144, 0.14);
  border-bottom: 1px solid rgba(192, 120, 144, 0.14);
}
.valor { text-align: left; }
.valor strong {
  display: block;
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.valor span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nosotros-redes {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.red-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(192, 120, 144, 0.22);
  transition: all var(--t);
}
.red-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(192, 120, 144, 0.06);
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer-cta {
  position: relative;
  text-align: center;
  padding: 5rem 0 5.5rem;
  overflow: clip;
}
.footer-cta-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 85% at 50% 55%, rgba(232, 180, 200, 0.52) 0%, transparent 70%),
    linear-gradient(160deg, #faf5f0 0%, #f7ece5 100%);
}
.footer-cta .container { position: relative; z-index: 1; }

.footer-cta-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-cta-title em { font-style: italic; color: var(--accent); }
.footer-cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.footer-bottom { background: var(--text); padding: 1.5rem 0; }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
@media (min-width: 720px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  opacity: 0.90;
}
.footer-copy { font-size: 0.76rem; color: rgba(255, 255, 255, 0.48); }
.footer-social { display: flex; gap: 0.625rem; align-items: center; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--t);
}
.footer-social a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(192, 120, 144, 0.22);
}

/* ══════════════════════════════════════════════════
   REVEAL ANIMATIONS  (JS enriches with .revealed)
══════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease),
              transform 0.75s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Card stagger — set by JS via inline transition-delay */
.product-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease),
              transform 0.5s var(--ease),
              box-shadow var(--t) var(--ease);
}
.product-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* hover still needs translateY so keep it separate */
.product-card.revealed:hover {
  transform: translateY(-5px);
}

/* ══════════════════════════════════════════════════
   NAV ACTIONS + CART BUTTON
══════════════════════════════════════════════════ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  transition: background var(--t);
}
.nav-cart-btn:hover { background: var(--bg-alt); }
.nav-cart-badge {
  display: none;
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ══════════════════════════════════════════════════
   PRODUCT ADD BUTTON
══════════════════════════════════════════════════ */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(192, 120, 144, 0.3);
  border-radius: var(--radius-pill);
  font-family: var(--font-b);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t);
}
.btn-add-cart:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(192, 120, 144, 0.06);
}
.btn-add-cart.added {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ══════════════════════════════════════════════════
   CATALOG SCROLL WINDOW
══════════════════════════════════════════════════ */
.catalog-window {
  position: relative;
  height: 720px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(192, 120, 144, 0.18);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 -64px 40px -16px var(--bg),
    0 2px 20px -8px rgba(160, 92, 114, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 120, 144, 0.3) transparent;
}
.catalog-window::-webkit-scrollbar { width: 5px; }
.catalog-window::-webkit-scrollbar-track { background: transparent; }
.catalog-window::-webkit-scrollbar-thumb {
  background: rgba(192, 120, 144, 0.3);
  border-radius: 3px;
}
.catalog-window::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.catalog-hint {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}
.catalog-hint-count { color: var(--accent); }
@media (max-width: 640px) {
  .catalog-window { height: 520px; padding: 12px; }
}

/* ══════════════════════════════════════════════════
   CART OVERLAY
══════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.cart-overlay[hidden] { display: none !important; }
.cart-footer[hidden]  { display: none !important; }
.cart-overlay:focus { outline: none; }

.cart-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(192, 120, 144, 0.14);
}
.cart-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.cart-back {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-b);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color var(--t);
  flex: none;
}
.cart-back:hover { color: var(--text); }

.cart-title {
  flex: 1;
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-count-badge {
  display: none;
  min-width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 700;
  font-style: normal;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.cart-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  transition: color var(--t);
  flex: none;
  visibility: hidden;
}
.cart-clear:hover { color: var(--accent); }

.cart-body {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}
.cart-empty-serif {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 2rem;
  color: var(--text);
  margin: 0;
}
.cart-empty p { margin: 0; font-size: 0.95rem; }

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(192, 120, 144, 0.14);
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(192, 120, 144, 0.14);
}
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
  flex: none;
}
.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-cat {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 3px;
}
.cart-item-name {
  display: block;
  font-family: var(--font-d);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.cart-item-price {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 5px;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-qty {
  display: flex;
  align-items: center;
  border: 1px solid rgba(192, 120, 144, 0.25);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.cart-qty-btn {
  background: none;
  border: none;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.cart-qty-btn:hover { background: var(--bg-alt); }
.cart-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.cart-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--t);
}
.cart-remove:hover { color: var(--accent); background: rgba(192, 120, 144, 0.1); }

.cart-footer {
  position: sticky;
  bottom: 0;
  background: rgba(250, 245, 240, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(192, 120, 144, 0.18);
}
.cart-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}
.cart-total { display: flex; flex-direction: column; gap: 2px; }
.cart-total-lbl {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}
.cart-total-amt {
  font-family: var(--font-d);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cart-solicitar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.88rem;
}

@media (max-width: 600px) {
  .cart-footer-inner { flex-direction: column; align-items: stretch; }
  .cart-solicitar { justify-content: center; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item-actions { grid-column: 1 / -1; justify-content: space-between; }
}

/* ══════════════════════════════════════════════════
   PROCESO
══════════════════════════════════════════════════ */
.proceso {
  padding: 6rem 0;
  background: #2A1F1B;
  color: #e8ddd6;
}

.proceso-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 800px) {
  .proceso-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
  }
}

.proceso-eyebrow {
  font-family: var(--font-b);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 180, 200, 0.55);
  margin: 0 0 0.75rem;
}
.proceso-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #f5ede8;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.proceso-title em { font-style: italic; color: #e8a8b8; }

.proceso-sub {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(232, 221, 214, 0.65);
  max-width: 38ch;
  margin: 0;
  flex-shrink: 0;
}
@media (min-width: 800px) { .proceso-sub { padding-top: 0.5rem; } }

.proceso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
}
@media (min-width: 960px) {
  .proceso-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
@media (max-width: 520px) {
  .proceso-grid { grid-template-columns: 1fr; }
}

.proceso-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.proceso-num {
  font-family: var(--font-b);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 168, 184, 0.5);
}
.proceso-h {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 400;
  color: #f5ede8;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.proceso-h em { font-style: italic; color: #e8a8b8; }

.proceso-step > p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(232, 221, 214, 0.62);
  margin: 0;
}

.proceso-img {
  margin-top: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.proceso-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) saturate(0.85);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}
.proceso-step:hover .proceso-img img {
  filter: brightness(0.95) saturate(1);
  transform: scale(1.03);
}

/* ══════════════════════════════════════════════════
   CHATBOT WIDGET
══════════════════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.chat-widget > * { pointer-events: auto; }

/* Chat window */
.chat-win {
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100svh - 120px);
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(26, 16, 18, 0.18), 0 4px 16px rgba(192, 120, 144, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(192, 120, 144, 0.18);
  transform-origin: bottom right;
  animation: chatWinIn 0.28s var(--ease);
}
.chat-win[hidden] { display: none !important; }

@keyframes chatWinIn {
  from { opacity: 0; transform: scale(0.9) translateY(12px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Header */
.chat-wh {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #2A1F1B;
  flex-shrink: 0;
}
.chat-avatar-wrap { position: relative; flex-shrink: 0; }
.chat-avatar-img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232, 168, 184, 0.3);
  display: block;
}
.chat-online-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4cd964;
  border: 2px solid #2A1F1B;
}
.chat-wh-info { flex: 1; min-width: 0; }
.chat-wh-name {
  display: block;
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 500;
  color: #f5ede8;
  line-height: 1.2;
}
.chat-wh-status {
  display: block;
  font-size: 0.65rem;
  color: rgba(232, 221, 214, 0.5);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-wh-close {
  background: none; border: none; cursor: pointer;
  color: rgba(232, 221, 214, 0.5);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
  flex-shrink: 0;
}
.chat-wh-close:hover { color: #f5ede8; background: rgba(255,255,255,0.1); }

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 120, 144, 0.2) transparent;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(192, 120, 144, 0.25); border-radius: 3px; }

.chat-msg {
  display: flex;
  flex-direction: column;
  animation: chatMsgIn 0.22s var(--ease);
}
.chat-msg-bot  { align-items: flex-start; }
.chat-msg-user { align-items: flex-end; }

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

.chat-bubble {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.845rem;
  line-height: 1.55;
}
.chat-msg-bot .chat-bubble {
  background: rgba(192, 120, 144, 0.09);
  border: 1px solid rgba(192, 120, 144, 0.14);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.chat-msg-user .chat-bubble {
  background: #2A1F1B;
  border-bottom-right-radius: 4px;
  color: #f5ede8;
}

/* Typing indicator */
.chat-dots {
  display: flex; gap: 4px; align-items: center; height: 14px;
}
.chat-dots span {
  display: block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  animation: chatDot 1.2s ease-in-out infinite;
}
.chat-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Quick replies */
.chat-quick-replies {
  padding: 0 14px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.chat-quick-replies:empty { padding: 0; }
.chat-qr-btn {
  background: none;
  border: 1px solid rgba(192, 120, 144, 0.32);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s var(--ease);
}
.chat-qr-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Input composer */
.chat-composer {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(192, 120, 144, 0.14);
  background: rgba(250, 245, 240, 0.85);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border: 1px solid rgba(192, 120, 144, 0.22);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-family: var(--font-b);
  font-size: 0.82rem;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color var(--t);
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--text-light); }
.chat-send {
  width: 34px; height: 34px;
  border-radius: 50%; border: none;
  background: var(--accent); color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.chat-send:hover { opacity: 0.85; }

/* Floating action button */
.chat-fab {
  width: 54px; height: 54px;
  border-radius: 50%; border: none;
  background: var(--accent); color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(192, 120, 144, 0.42);
  position: relative;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  animation: chatFabPulse 3.5s ease-in-out 2s infinite;
}
.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(192, 120, 144, 0.55);
  animation: none;
}
@keyframes chatFabPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(192, 120, 144, 0.42); }
  50%       { box-shadow: 0 6px 24px rgba(192, 120, 144, 0.42), 0 0 0 10px rgba(192, 120, 144, 0.1); }
}
.chat-fab-icon { display: flex; align-items: center; justify-content: center; }
.chat-fab-icon[hidden]  { display: none !important; }
.chat-fab-badge {
  position: absolute; top: -1px; right: -1px;
  min-width: 19px; height: 19px;
  background: #e05050; color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-b);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
  animation: chatBadgeIn 0.3s var(--ease);
}
.chat-fab-badge[hidden] { display: none !important; }
@keyframes chatBadgeIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

@media (max-width: 420px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-win { width: calc(100vw - 32px); height: 430px; }
}

/* ── Utility ───────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
