
/* ===================== ROOT — Design System v2 ===================== */
/* Inter cargado vía <link> en cada HTML con display=swap */
:root {
  /* Paleta base */
  --white:   #FFFFFF;
  --cream:   #FAF8F5;
  --sand:    #F0EBE3;
  --ink:     #1F1F1F;
  --graphite:#3A3A3A;
  --steel:   #6B7075;
  --steel-accent: #5A6066;
  --line:    #E8E5E0;

  /* CTA */
  --terracotta:      #B85C3E;
  --terracotta-hover:#A04F35;
  --terracotta-soft: rgba(184,92,62,0.08);

  /* Estado */
  --success: #2E7D32;
  --error:   #C62828;

  /* Canales */
  --wa: #25D366;

  /* Tipografía */
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Aliases backward-compat (NO eliminar hasta limpiar HTML) */
  --black:      var(--ink);
  --steel-light:#C4C8CA;
  --steel-dark: var(--graphite);
  --bg:         var(--sand);
  --bg2:        var(--cream);
  --border:     var(--line);

  /* Layout */
  --nav-h: 68px;
}

/* Escala tipográfica */
h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
p  { font-size: 1rem; line-height: 1.7; color: var(--graphite); }
small { font-size: 0.8rem; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 17px; background: var(--white); color: var(--ink); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--steel); }

/* ===================== UTILITY ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.tag { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: .75rem; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.1s}.d2{transition-delay:.2s}.d3{transition-delay:.3s}.d4{transition-delay:.4s}

/* ===================== PAGES ===================== */
/* ===================== NAV ===================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: "DM Sans", sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 0.25em; line-height: 1; white-space: nowrap; cursor: pointer; }
.logo .dot { border-radius: 50%; display: inline-block; background: #c2693a; width: 0.78em; height: 0.78em; flex-shrink: 0; margin-top: 0.04em; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-link {
  font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--steel-dark); cursor: pointer; padding: .25rem 0;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.nav-link:hover, .nav-link.active { color: var(--black); border-bottom-color: var(--black); }


.nav-right { display: flex; align-items: center; gap: 1rem; }
.cart-icon-btn {
  position: relative; background: none; border: 1px solid var(--border);
  min-width: 40px; height: 40px; padding: .4rem .7rem; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.cart-icon-btn:hover { border-color: var(--black); }
.cart-badge {
  position: absolute; top: -8px; right: -8px;
  background: var(--black); color: #fff;
  font-size: .75rem; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0); transition: all .2s; white-space: nowrap;
}
.cart-badge.show { opacity: 1; transform: scale(1); }
.btn-wa-nav {
  background: var(--wa); color: #fff; border: none;
  padding: .5rem 1.1rem; border-radius: 6px;
  font-family: inherit; font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  cursor: pointer; display: flex; align-items: center; gap: .4rem; transition: opacity .2s;
}
.btn-wa-nav:hover { opacity: .88; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--black); }

/* ===================== MOBILE MENU ===================== */
.mob-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0;
  background: #fff; z-index: 800; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
}
.mob-menu.open { display: flex; }
.mob-menu .nav-link { font-size: 1.3rem; letter-spacing: .15em; }

/* ===================== CART DRAWER ===================== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 95vw;
  background: #fff; z-index: 1001; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 1.5rem; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.cart-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--steel); transition: color .2s; line-height: 1; }
.cart-close:hover { color: var(--black); }
.cart-items-list { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.cart-empty-msg { text-align: center; color: var(--steel); padding: 3rem 1rem; font-size: .9rem; }
.cart-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: .9rem; border: 1px solid var(--border); border-radius: 8px;
}
.cart-item-img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--bg); flex-shrink: 0; }
.cart-item-body { flex: 1; }
.cart-item-name { font-size: .82rem; font-weight: 600; margin-bottom: .2rem; }
.cart-item-price { font-size: .8rem; color: var(--steel-dark); }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.qty-btn { background: var(--bg); border: none; width: 22px; height: 22px; border-radius: 4px; cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.qty-btn:hover { background: var(--border); }
.qty-num { font-size: .82rem; font-weight: 700; min-width: 20px; text-align: center; }
.cart-remove { background: none; border: none; color: var(--steel); cursor: pointer; font-size: 1rem; transition: color .2s; line-height: 1; margin-left: auto; }
.cart-remove:hover { color: #c0392b; }
.cart-foot { padding: 1.25rem; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.btn-checkout {
  width: 100%; background: var(--terracotta); color: #fff; border: none;
  padding: .9rem; border-radius: 8px; font-family: var(--font-sans); font-size: .88rem;
  font-weight: 700; letter-spacing: .05em; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .2s, box-shadow .2s;
}
.btn-checkout:hover { background: var(--terracotta-hover); box-shadow: 0 6px 16px rgba(184,92,62,.25); }

/* ===================== BUTTONS — v2 ===================== */
.btn-primary {
  background: var(--terracotta); color: #fff; border: none;
  padding: .85rem 2rem; border-radius: 8px; font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-primary:hover { background: var(--terracotta-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(184,92,62,.25); }

.btn-secondary {
  background: var(--ink); color: #fff; border: none;
  padding: .85rem 2rem; border-radius: 8px; font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.btn-secondary:hover { background: var(--graphite); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
  padding: .85rem 2rem; border-radius: 8px; font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35);
  padding: .85rem 2rem; border-radius: 8px; font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: all .2s; backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); }

.btn-wa {
  background: var(--wa); color: #fff; border: none;
  padding: .9rem 2rem; border-radius: 8px; font-family: var(--font-sans);
  font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; transition: opacity .2s;
}
.btn-wa:hover { opacity: .9; }

/* ===================== SECTION ===================== */
section { padding: 6rem 0; }
.sec-tag { font-size: .85rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: .6rem; }
.sec-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.15; letter-spacing: -.02em; }
.sec-title strong { font-weight: 700; }
.sec-sub { color: var(--steel-dark); line-height: 1.8; font-size: .93rem; margin-top: .6rem; }

/* ===================================================
   PAGE: INICIO
   =================================================== */

/* HERO */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: var(--black);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 0 5%;
}
/* Sutil patrón de líneas CSS — sin imagen */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(138,143,146,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,143,146,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(138,143,146,.08) 0%, transparent 60%);
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; width: 100%; position: relative; z-index: 2; min-height: calc(100vh - var(--nav-h)); }
.hero-content { max-width: 500px; flex-shrink: 0; }
.hero-img-wrap { width: 45%; max-width: 520px; flex-shrink: 0; opacity: 0; animation: fadeIn 1s .6s forwards; overflow: hidden; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.hero-img-wrap img { width: 100%; height: 420px; object-fit: cover; object-position: center; display: block; }
@media(max-width:900px){ .hero-img-wrap { display: none; } .hero-content { max-width: 100%; } }

/* Botón WA flotante */
.wa-float {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 950;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }

/* ¿Cómo funciona? */
.pasos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.paso { text-align: center; padding: 2rem 1.5rem; }
.paso-num { font-size: 2.8rem; font-weight: 800; color: var(--black); letter-spacing: -.05em; opacity: .08; line-height: 1; margin-bottom: .5rem; }
.paso-icon { font-size: 2rem; margin-bottom: .75rem; }
.paso-title { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.paso-desc { font-size: .9rem; color: var(--steel-dark); line-height: 1.7; }
@media(max-width:600px){ .pasos-grid { grid-template-columns: 1fr; } }
.hero-eyebrow {
  font-size: .7rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .7s .2s forwards;
}
.hero-h1 {
  font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 300; line-height: 1.05;
  letter-spacing: -.03em; color: #fff; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .7s .4s forwards;
}
.hero-h1 strong { font-weight: 800; }
.hero-sub {
  font-size: 1rem; color: var(--steel-light); line-height: 1.8; max-width: 480px;
  margin-bottom: 2.5rem; opacity: 0; animation: fadeUp .7s .6s forwards;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp .7s .8s forwards; }
.btn-hero-primary {
  background: #fff; color: var(--black); border: none;
  padding: .9rem 2.2rem; border-radius: 6px; font-family: inherit;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.btn-hero-primary:hover { background: var(--bg); transform: translateY(-2px); }
.btn-hero-outline {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3);
  padding: .9rem 2.2rem; border-radius: 6px; font-family: inherit;
  font-size: .85rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.07); }
/* numero flotante derecha */
.hero-contact-float {
  position: absolute; right: 5%; bottom: 10%;
  z-index: 2; color: rgba(255,255,255,.35); font-size: .72rem;
  letter-spacing: .15em; text-align: right;
  opacity: 0; animation: fadeIn 1s 1s forwards;
}
.hero-contact-float a { color: rgba(255,255,255,.6); display: block; margin-top: .3rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; }

/* STATS */
.stats-bar { background: var(--black); display: flex; border-top: 1px solid rgba(255,255,255,.07); }
.stat-it { flex: 1; padding: 1.75rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.07); }
.stat-it:last-child { border-right: none; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.stat-lbl { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-top: .25rem; }

/* POR QUÉ */
.porque-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.porque-card {
  background: var(--bg); border-radius: 10px; padding: 1.75rem;
  border: 1px solid var(--border); transition: all .3s;
}
.porque-card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.07); }
.porque-icon { font-size: 1.6rem; margin-bottom: .9rem; }
.porque-title { font-size: .9rem; font-weight: 700; margin-bottom: .4rem; }
.porque-desc { font-size: .9rem; color: var(--steel-dark); line-height: 1.7; }

/* ===================================================
   PAGE: TIENDA
   =================================================== */
.tienda-header { background: var(--black); padding: 4rem 5% 3rem; }
.tienda-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; color: #fff; letter-spacing: -.02em; }
.tienda-header h1 strong { font-weight: 800; }
.tienda-header p { color: var(--steel); font-size: .9rem; margin-top: .6rem; max-width: 480px; }

/* Nav flotante sobre hero — sin fondo blanco, sin línea separadora */
body:has(.page-hero) { padding-top: 0; }
body:has(.page-hero) nav {
  background: rgba(20,16,12,.30);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255,255,255,.10);
}
body:has(.page-hero) .logo { color: #fff; }
body:has(.page-hero) .logo .dot { background: #d9a876; }
body:has(.page-hero) .nav-link { color: rgba(255,255,255,.75); }
body:has(.page-hero) .nav-link:hover,
body:has(.page-hero) .nav-link.active { color: #fff; border-bottom-color: #fff; }
body:has(.page-hero) .cart-icon-btn { color: #fff; }

/* ===== HERO BANNER PÁGINAS INTERNAS (45vh) ===== */
.page-hero {
  position: relative; min-height: 45vh; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--ink);
  padding-top: var(--nav-h);
}
.page-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  filter: brightness(0.72) saturate(1.1);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,.25) 0%, rgba(20,16,12,.72) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1200px; margin: 0 auto; padding: 0 5% 3rem;
}
.page-hero-breadcrumb {
  font-size: .7rem; color: rgba(255,255,255,.55); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .9rem;
  display: flex; align-items: center; gap: .4rem;
}
.page-hero-breadcrumb a { color: inherit; text-decoration: none; }
.page-hero-breadcrumb a:hover { color: rgba(255,255,255,.85); }
.page-hero-breadcrumb span { opacity: .4; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 300; line-height: 1.1;
  letter-spacing: -.03em; color: #fff; margin-bottom: .75rem; max-width: 600px;
}
.page-hero h1 strong { font-weight: 700; }
.page-hero-sub { font-size: .9rem; color: rgba(255,255,255,.65); max-width: 480px; line-height: 1.7; }

.prod-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.flt-btn {
  background: #fff; border: 1px solid var(--border); color: var(--steel-dark);
  padding: .4rem 1rem; border-radius: 4px; font-family: inherit;
  font-size: .73rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.flt-btn:hover, .flt-btn.active { background: var(--black); border-color: var(--black); color: #fff; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 1.5rem; }
#page-tienda .container { padding-left: 3%; padding-right: 3%; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: all .35s;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.10); border-color: transparent; }
.prod-card.hidden { display: none; }
.prod-img { height: 240px; overflow: hidden; background: var(--bg2); position: relative; cursor: zoom-in; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-img .zoom-hint {
  position: absolute; bottom: .6rem; right: .6rem;
  background: rgba(0,0,0,.55); color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.prod-img:hover .zoom-hint { opacity: 1; transform: scale(1); }
.prod-badge {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--black); color: #fff;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 3px;
}
.prod-badge.alt { background: var(--steel-dark); }
.prod-body { padding: 1.1rem 1.1rem 1.4rem; }
.prod-cat { font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: .3rem; }
.prod-name { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; letter-spacing: -.01em; }
.prod-color { font-size: .78rem; font-weight: 600; color: var(--terracotta); margin-bottom: .55rem; }
.prod-desc { font-size: .78rem; color: var(--steel-dark); line-height: 1.65; margin-bottom: .9rem; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .9rem; }
.prod-price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--steel-accent); }
.prod-price small { font-size: .7rem; font-weight: 500; color: var(--steel); }
.prod-msi { font-size:.68rem; color:var(--terracotta); margin-top:.15rem; font-weight:600; }
.btn-add {
  background: var(--terracotta); color: #fff; border: none;
  padding: .6rem 1.1rem; border-radius: 7px; font-family: var(--font-sans);
  font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  cursor: pointer; display: flex; align-items: center; gap: .35rem;
  transition: background .2s, transform .2s;
}
.btn-add:hover { background: var(--terracotta-hover); transform: scale(1.03); }
@media (max-width: 640px) { .btn-add { width: 100%; justify-content: center; } }

/* BANNER MEDIDA */
.banner-medida {
  margin-top: 2.5rem; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 2rem 2.5rem; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.banner-medida-txt .title { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.banner-medida-txt .sub { font-size: .82rem; color: var(--steel-dark); line-height: 1.6; max-width: 520px; }

/* ===================================================
   PAGE: GALERÍA
   =================================================== */
.galeria-header { background: var(--black); padding: 4rem 5% 3rem; }
.galeria-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; color: #fff; letter-spacing: -.02em; }
.galeria-header h1 strong { font-weight: 800; }
.galeria-header p { color: var(--steel); font-size: .9rem; margin-top: .6rem; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--bg);
}
.gal-item { overflow: hidden; position: relative; cursor: pointer; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; background: var(--bg-3); transition: transform .4s, filter .3s; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item .gal-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem .9rem .75rem;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  opacity: 0; transition: opacity .3s;
}
.gal-item:hover .gal-label { opacity: 1; }
.gal-label span { font-size: .75rem; font-weight: 600; color: #fff; letter-spacing: .05em; }
/* altura por tipo */
.gal-item.h1 { height: 300px; }
.gal-item.h2 { height: 380px; }
.gal-item.h3 { height: 260px; }
.gal-item.span2 { grid-column: span 2; }

/* ===================================================
   PAGE: COLORES
   =================================================== */
.colores-header { background: var(--black); padding: 4rem 5% 3rem; }
.colores-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; color: #fff; letter-spacing: -.02em; }
.colores-header h1 strong { font-weight: 800; }
.colores-header p { color: var(--steel); font-size: .9rem; margin-top: .6rem; max-width: 520px; }
.colores-img-wrap { padding: 4rem 5%; }
.colores-img-wrap img { width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.colores-nota { background: var(--bg); padding: 3rem 5%; }
.colores-nota-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1rem; margin-top: 2rem; }
.color-chip {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem; display: flex; align-items: center; gap: .75rem;
  position: relative; cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.color-chip:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 10px 28px rgba(0,0,0,.10); border-color: var(--steel); }
.color-swatch { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.08); transition: transform .25s; }
.color-chip:hover .color-swatch { transform: scale(1.12); }
.color-name { font-size: .8rem; font-weight: 600; }
.color-type { font-size: .7rem; color: var(--steel); margin-top: .1rem; }
/* Tooltip marketing */
.color-chip::after {
  content: attr(data-desc);
  position: absolute;
  bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--black); color: #fff;
  font-size: .71rem; line-height: 1.55;
  padding: .55rem .8rem; border-radius: 7px;
  white-space: normal; text-align: center; width: 200px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 20;
}
.color-chip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent; border-top-color: var(--black);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 20;
}
.color-chip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.color-chip:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================================================
   PAGE: CONTACTO
   =================================================== */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: calc(100vh - var(--nav-h)); }
.contacto-left { background: var(--black); padding: 6rem 5%; display: flex; flex-direction: column; justify-content: center; }
.contacto-left h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; color: #fff; letter-spacing: -.02em; margin-bottom: 2.5rem; }
.contacto-left h2 strong { font-weight: 800; }
.cta-dato { margin-bottom: 2rem; }
.cta-dato .lbl { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-bottom: .4rem; }
.cta-dato .val { font-size: 1rem; color: #fff; font-weight: 500; }
.cta-dato a { color: #fff; }
.cta-dato a:hover { color: var(--steel-light); }
.contacto-right { background: var(--bg); padding: 6rem 5%; display: flex; flex-direction: column; justify-content: center; }
.contacto-right h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-label { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-dark); display: block; margin-bottom: .35rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 6px;
  padding: .7rem .85rem; font-family: inherit; font-size: .88rem; color: var(--black);
  background: #fff; transition: border-color .2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--black); }
.form-textarea { resize: vertical; min-height: 90px; }

/* ===================== FOOTER ===================== */
footer { background: var(--black); padding: 4rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: .8rem; color: var(--steel); line-height: 1.8; max-width: 260px; margin-top: .75rem; }
.footer-logo { font-family: "DM Sans", sans-serif; font-size: .95rem; font-weight: 500; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 0.25em; line-height: 1; white-space: nowrap; color: #fff; }
.footer-logo .dot { border-radius: 50%; display: inline-block; background: #d9a876; width: 0.78em; height: 0.78em; flex-shrink: 0; margin-top: 0.04em; }
.footer-col h4 { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .8rem; color: rgba(255,255,255,.45); margin-bottom: .65rem; cursor: pointer; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.75rem; font-size: .73rem; color: rgba(255,255,255,.22); }

/* ===================== LIGHTBOX ===================== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.lb-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; opacity: .7; transition: opacity .2s; }
.lb-close:hover { opacity: 1; }

/* ===================== MODAL COLOR ===================== */
.cmodal-overlay { position:fixed;inset:0;background:rgba(0,0,0,.5);backdrop-filter:blur(8px);z-index:1500; }
.cmodal-wrap { position:fixed;inset:0;z-index:1501;display:flex;align-items:center;justify-content:center;padding:1rem; }
.cmodal {
  background:#fff;border-radius:20px;width:100%;max-width:560px;
  max-height:90vh;display:flex;flex-direction:column;
  box-shadow:0 32px 80px rgba(0,0,0,.22);overflow:hidden;
}
.cmodal-head { padding:1.25rem 1.5rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0; }
.cmodal-head h3 { font-size:.95rem;font-weight:700; }
.cmodal-head small { font-size:.75rem;color:var(--steel);display:block;margin-top:.15rem; }
.cmodal-close { background:none;border:none;font-size:1.4rem;cursor:pointer;color:var(--steel);line-height:1; }
.cmodal-body { padding:1.25rem 1.5rem;overflow-y:auto;flex:1; }
.cmodal-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.6rem; }
.ccolor {
  border:2px solid var(--border);border-radius:8px;padding:.6rem .5rem;
  display:flex;align-items:center;gap:.5rem;cursor:pointer;transition:all .2s;
  background:#fff;
}
.ccolor:hover { border-color:var(--steel);transform:translateY(-2px); }
.ccolor.selected { border-color:var(--black);background:var(--bg); }
.ccolor-swatch { width:28px;height:28px;border-radius:5px;flex-shrink:0;border:1px solid rgba(0,0,0,.1); }
.ccolor-name { font-size:.72rem;font-weight:600;line-height:1.2; }
.cmodal-foot { padding:1.1rem 1.5rem;border-top:1px solid var(--border);display:flex;gap:.75rem;flex-shrink:0; }
.cmodal-foot .btn-primary { flex:1;justify-content:center;display:flex;align-items:center; }
.cmodal-nota { font-size:.75rem;color:var(--steel-dark);background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:.6rem .8rem;margin-bottom:1rem;line-height:1.5; }
.cmodal-step-label { font-size:.7rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--steel);margin-bottom:.75rem; }
.cmodal-foot .btn-outline { flex-shrink:0; padding:.75rem 1.2rem; }

/* Variantes (medida / material) */
.variant-grid { display:flex;flex-direction:column;gap:.5rem;margin-bottom:.5rem; }
.variant-opt { border:2px solid var(--border);border-radius:8px;padding:.75rem 1rem;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:all .2s;background:#fff; }
.variant-opt:hover { border-color:var(--steel); }
.variant-opt.selected { border-color:var(--black);background:var(--bg); }
.variant-opt-name { font-size:.85rem;font-weight:600; }
.variant-opt-price { font-size:.8rem;color:var(--steel-dark);font-weight:500; }

/* Placeholder imagen */
.prod-img.placeholder { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6rem;cursor:default; }
.prod-img.placeholder span { font-size:.68rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--steel);opacity:.7; }

/* ===================== CHECKOUT ===================== */
.chk-overlay { position:fixed;inset:0;background:rgba(0,0,0,.5);backdrop-filter:blur(8px);z-index:2100;display:none; }
.chk-modal {
  position:fixed;inset:0;z-index:2101;display:none;
  overflow-y:auto;
}
.chk-modal.open { display:block; }
.chk-overlay.open { display:block; }
.chk-inner {
  min-height:100vh; display:flex; flex-direction:column;
  background:#fff; max-width:700px; margin:0 auto;
  box-shadow:0 0 60px rgba(0,0,0,.2);
}
/* Progress */
.chk-progress { background:var(--black); padding:1.1rem 1.5rem; display:flex; align-items:center; justify-content:space-between; }
.chk-logo { font-family: "DM Sans", sans-serif; font-size:.85rem;font-weight:500;letter-spacing:0.08em;display:inline-flex;align-items:center;gap:0.25em;line-height:1;white-space:nowrap;color:#fff; }
.chk-logo .dot { border-radius:50%;display:inline-block;background:#d9a876;width:0.78em;height:0.78em;flex-shrink:0;margin-top:0.04em; }
.chk-steps { display:flex; align-items:center; gap:.4rem; }
.chk-step {
  font-size:.65rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:rgba(255,255,255,.35); display:flex;align-items:center;gap:.35rem;
}
.chk-step.active { color:#fff; }
.chk-step.done { color:var(--wa); }
.chk-step-dot {
  width:22px;height:22px;border-radius:50%;border:1.5px solid rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:700;
}
.chk-step.active .chk-step-dot { border-color:#fff;background:#fff;color:var(--black); }
.chk-step.done .chk-step-dot { border-color:var(--wa);background:var(--wa);color:#fff; }
.chk-sep { width:28px;height:1px;background:rgba(255,255,255,.2); }
/* Body */
.chk-body { flex:1;padding:2rem 1.5rem; }
.chk-section-title { font-size:1.1rem;font-weight:700;margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:1px solid var(--border); }
.chk-row { display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:.75rem; }
.chk-row.full { grid-template-columns:1fr; }
.chk-field { display:flex;flex-direction:column;gap:.3rem; }
.chk-label { font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--steel-dark); }
.chk-input {
  border:1.5px solid var(--line);border-radius:8px;padding:.75rem .9rem;
  font-family:var(--font-sans);font-size:.9rem;color:var(--ink);background:#fff;
  outline:none;transition:border-color .2s, box-shadow .2s;
  width:100%;
}
.chk-input:focus {
  border-color:var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-soft);
}
/* Métodos de pago */
.pay-methods { display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem; }
.pay-opt {
  border:2px solid var(--border);border-radius:10px;padding:1rem 1.1rem;
  display:flex;align-items:center;gap:.9rem;cursor:pointer;transition:all .2s;
}
.pay-opt:hover { border-color:var(--steel); }
.pay-opt.selected { border-color:var(--terracotta);background:var(--terracotta-soft); }
.pay-opt-icon { font-size:1.5rem;flex-shrink:0; }
.pay-opt-info { flex:1; }
.pay-opt-name { font-size:.88rem;font-weight:700; }
.pay-opt-desc { font-size:.75rem;color:var(--steel-dark);margin-top:.1rem; }
.pay-radio { width:18px;height:18px;border-radius:50%;border:2px solid var(--border);flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all .2s; }
.pay-opt.selected .pay-radio { border-color:var(--terracotta); }
.pay-opt.selected .pay-radio::after { content:'';width:8px;height:8px;border-radius:50%;background:var(--terracotta);display:block; }
.card-fields { background:var(--bg);border-radius:10px;padding:1.1rem;margin-bottom:1rem;display:none; }
.card-fields.show { display:block; }
.card-preview {
  background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);
  border-radius:12px;padding:1.2rem 1.4rem;margin-bottom:1rem;
  color:#fff;font-family:'Inter',monospace;
}
.card-preview-num { font-size:1.15rem;letter-spacing:.18em;margin:1rem 0 .5rem;opacity:.9; }
.card-preview-bot { display:flex;justify-content:space-between;font-size:.72rem;opacity:.6;text-transform:uppercase;letter-spacing:.1em; }
/* Resumen */
.chk-resumen { background:var(--bg);border-radius:10px;padding:1.1rem;margin-bottom:1.5rem; }
.chk-resumen-item { display:flex;justify-content:space-between;font-size:.82rem;padding:.35rem 0;border-bottom:1px solid var(--border); }
.chk-resumen-item:last-child { border:none;font-weight:700;font-size:.9rem;padding-top:.6rem; }
/* Éxito */
.chk-success { text-align:center;padding:3rem 1.5rem; }
.chk-success-icon { font-size:4rem;margin-bottom:1rem; }
.chk-success h2 { font-size:1.5rem;font-weight:800;margin-bottom:.5rem; }
.chk-success p { color:var(--steel-dark);font-size:.88rem;line-height:1.7;max-width:360px;margin:0 auto 1.5rem; }
.chk-order-num { background:var(--black);color:#fff;font-size:.8rem;font-weight:700;letter-spacing:.1em;padding:.5rem 1.2rem;border-radius:20px;display:inline-block;margin-bottom:1.5rem; }
/* Footer nav */
.chk-nav { padding:1.25rem 1.5rem;border-top:1px solid var(--border);display:flex;gap:.75rem;justify-content:space-between; }
.btn-chk-back { background:none;border:1.5px solid var(--line);color:var(--graphite);padding:.75rem 1.5rem;border-radius:8px;font-family:var(--font-sans);font-size:.82rem;font-weight:600;cursor:pointer;transition:all .2s; }
.btn-chk-back:hover { border-color:var(--ink);color:var(--ink); }
.btn-chk-next { background:var(--terracotta);color:#fff;border:none;padding:.75rem 2rem;border-radius:8px;font-family:var(--font-sans);font-size:.85rem;font-weight:700;cursor:pointer;transition:background .2s, box-shadow .2s;flex:1; }
.btn-chk-next:hover { background:var(--terracotta-hover); box-shadow:0 6px 16px rgba(184,92,62,.25); }
.btn-chk-next.green { background:var(--success); }
@media(max-width:600px){ .chk-row{grid-template-columns:1fr;} .chk-steps .chk-sep{width:14px;} }

.prod-img.agotado-img{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.55rem;cursor:default;background:#EEECEA;}
.prod-img.agotado-img svg{opacity:.15;}
.prod-img.agotado-img .ag-lbl{font-size:.65rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#9CA3AF;}
.prod-badge.agotado{background:#6B7280;}
.btn-add[disabled]{opacity:.35;cursor:not-allowed;pointer-events:none;background:var(--steel);}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }

/* ===================== RESPONSIVE ===================== */
@media(max-width:900px){
  .nav-links{display:none}
  .hamburger{display:flex}
  .porque-grid{grid-template-columns:1fr 1fr}
  .galeria-grid{grid-template-columns:repeat(2,1fr)}
  .gal-item.span2{grid-column:span 1}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
  .contacto-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .stats-bar{flex-wrap:wrap}
  .stat-it{flex:1 1 50%;border-right:none;border-bottom:1px solid rgba(255,255,255,.07)}
  .porque-grid{grid-template-columns:1fr}
  .galeria-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;gap:.4rem;text-align:center}
  .hero-btns{flex-direction:column}
  .banner-medida{flex-direction:column}
}

/* ===================== MULTIPÁGINA ===================== */
body { padding-top: var(--nav-h); }
.nav-link { text-decoration: none; }
.nav-link.active, .nav-link[aria-current="page"] { color: var(--black); border-bottom-color: var(--black); }
.logo { text-decoration: none; color: var(--black); font-family: "DM Sans", sans-serif; }
/* Blog */
.blog-header { background: var(--black); padding: 4rem 5% 3rem; }
.blog-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; color: #fff; letter-spacing: -.02em; }
.blog-header h1 strong { font-weight: 800; }
.blog-header p { color: var(--steel); font-size: .9rem; margin-top: .6rem; max-width: 520px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; padding: 4rem 5%; max-width: 1200px; margin: 0 auto; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: all .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.09); border-color: transparent; }
.blog-card-img { height: 200px; background: var(--bg2); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.4rem; }
.blog-card-tag { font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: .5rem; display: block; }
.blog-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.3; }
.blog-card-excerpt { font-size: .8rem; color: var(--steel-dark); line-height: 1.7; margin-bottom: 1rem; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: var(--steel); }
.blog-card-link { font-size: .78rem; font-weight: 700; color: var(--black); text-decoration: none; letter-spacing: .05em; }
.blog-card-link:hover { text-decoration: underline; }
/* Artículo */
.articulo-hero { background: var(--black); padding: 5rem 5% 4rem; }
.articulo-hero .art-tag { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-bottom: 1rem; display: block; }
.articulo-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; color: #fff; letter-spacing: -.02em; line-height: 1.15; max-width: 780px; }
.articulo-hero h1 strong { font-weight: 800; }
.articulo-hero .art-meta { font-size: .78rem; color: var(--steel); margin-top: 1rem; }
.articulo-body { max-width: 760px; margin: 0 auto; padding: 4rem 5%; }
.articulo-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.articulo-body h3 { font-size: 1.1rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--steel-dark); }
.articulo-body p { font-size: .93rem; color: #333; line-height: 1.9; margin-bottom: 1.2rem; }
.articulo-body ul { margin: 0 0 1.2rem 1.5rem; }
.articulo-body li { font-size: .93rem; color: #333; line-height: 1.9; margin-bottom: .4rem; }
.articulo-body .art-cta { background: var(--black); border-radius: 12px; padding: 2rem; text-align: center; margin: 3rem 0; }
.articulo-body .art-cta p { color: var(--steel-light); font-size: .9rem; margin-bottom: 1rem; }
.articulo-cta-related { background: var(--bg); padding: 4rem 5%; }
.art-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 2rem auto 0; }
@media(max-width:600px){.blog-grid{grid-template-columns:1fr;padding:2rem 5%;}}

/* ═══════════════════════════════════════════════════
   WIDGET INÉS — ai-chat.js
   ═══════════════════════════════════════════════════ */
#ai-chat-root { position:fixed; bottom:1.5rem; right:1.5rem; z-index:9999; font-family:inherit; }

/* Botón flotante */
#ai-chat-btn {
  width:56px; height:56px; border-radius:50%; border:none; cursor:pointer;
  background:var(--terracotta,#B85C3E); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(184,92,62,.45);
  transition:transform .2s, box-shadow .2s; position:relative;
}
#ai-chat-btn:hover { transform:scale(1.08); box-shadow:0 6px 28px rgba(184,92,62,.55); }
#ai-chat-btn.ai-chat-btn--open { background:var(--ink,#1F1F1F); }
.ai-chat-avatar-sm { font-size:1.3rem; font-weight:800; line-height:1; }
.ai-chat-badge {
  position:absolute; top:2px; right:2px; width:12px; height:12px;
  background:#22c55e; border-radius:50%; border:2px solid #fff;
  animation:ai-pulse 2s infinite;
}
@keyframes ai-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* Panel */
#ai-chat-panel {
  position:absolute; bottom:68px; right:0;
  width:340px; max-height:520px;
  background:#fff; border-radius:16px;
  box-shadow:0 12px 48px rgba(0,0,0,.18);
  flex-direction:column; overflow:hidden;
  animation:ai-slide-up .22s ease;
}
#ai-chat-panel:not([hidden]) { display:flex; }
@keyframes ai-slide-up { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

/* Header */
.ai-chat-head {
  background:var(--ink,#1F1F1F); color:#fff;
  padding:.85rem 1rem; display:flex; align-items:center; justify-content:space-between;
}
.ai-chat-head-info { display:flex; align-items:center; gap:.7rem; }
.ai-chat-avatar {
  width:38px; height:38px; border-radius:50%;
  background:var(--terracotta,#B85C3E);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; font-weight:800; color:#fff; flex-shrink:0;
}
.ai-chat-name { font-size:.92rem; font-weight:700; }
.ai-chat-status { font-size:.7rem; color:rgba(255,255,255,.65); display:flex; align-items:center; gap:.3rem; margin-top:1px; }
.ai-chat-dot { width:7px; height:7px; border-radius:50%; background:#22c55e; display:inline-block; }
.ai-chat-close { background:none; border:none; color:rgba(255,255,255,.6); font-size:1rem; cursor:pointer; padding:.2rem .4rem; border-radius:4px; }
.ai-chat-close:hover { color:#fff; background:rgba(255,255,255,.12); }

/* Mensajes */
.ai-chat-messages {
  flex:1; overflow-y:auto; padding:.85rem 1rem; display:flex; flex-direction:column; gap:.6rem;
  scroll-behavior:smooth;
}
.ai-msg { display:flex; }
.ai-msg-user { justify-content:flex-end; }
.ai-msg-bot  { justify-content:flex-start; }
.ai-bubble {
  max-width:80%; padding:.55rem .85rem; border-radius:14px; font-size:.84rem; line-height:1.55;
}
.ai-msg-user .ai-bubble { background:var(--terracotta,#B85C3E); color:#fff; border-bottom-right-radius:4px; }
.ai-msg-bot  .ai-bubble { background:#f3f4f6; color:#1a1a1a; border-bottom-left-radius:4px; }
.ai-wa-link { color:var(--terracotta,#B85C3E); font-weight:700; text-decoration:none; }
.ai-wa-link:hover { text-decoration:underline; }

/* Typing dots */
.ai-typing-dots { display:flex; align-items:center; gap:4px; padding:.55rem .85rem; }
.ai-typing-dots span {
  width:7px; height:7px; border-radius:50%; background:#9ca3af;
  animation:ai-dot .9s infinite both;
}
.ai-typing-dots span:nth-child(2) { animation-delay:.18s; }
.ai-typing-dots span:nth-child(3) { animation-delay:.36s; }
@keyframes ai-dot { 0%,80%,100%{transform:scale(0.6);opacity:.5} 40%{transform:scale(1);opacity:1} }

/* Chips */
.ai-chat-chips { padding:0 .85rem .55rem; display:flex; flex-wrap:wrap; gap:.4rem; }
.ai-chip {
  background:#f3f4f6; border:1px solid #e5e7eb; border-radius:20px;
  padding:.3rem .75rem; font-size:.75rem; cursor:pointer; color:#374151;
  transition:all .18s;
}
.ai-chip:hover { background:var(--terracotta,#B85C3E); border-color:var(--terracotta,#B85C3E); color:#fff; }

/* Footer input */
.ai-chat-foot {
  padding:.6rem .85rem; border-top:1px solid #f0f0f0;
  display:flex; align-items:center; gap:.5rem;
}
#ai-chat-input {
  flex:1; border:1px solid #e5e7eb; border-radius:20px;
  padding:.45rem .9rem; font-size:.83rem; outline:none;
  font-family:inherit; background:#fafafa;
  transition:border-color .2s;
}
#ai-chat-input:focus { border-color:var(--terracotta,#B85C3E); background:#fff; }
#ai-chat-send {
  width:34px; height:34px; border-radius:50%; border:none; cursor:pointer;
  background:var(--terracotta,#B85C3E); color:#fff;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:background .2s;
}
#ai-chat-send:hover  { background:#a04f34; }
#ai-chat-send:disabled { background:#d1d5db; cursor:default; }

/* Mobile */
@media(max-width:480px){
  #ai-chat-panel { width:calc(100vw - 2rem); right:-0.5rem; bottom:72px; max-height:70vh; }
}

/* ============ PRODUCT ZOOM DETAIL MODAL (B11) ============ */
.pd-zoom {
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.pd-zoom.open { display: flex; }
.pd-zoom-dialog {
  position: relative;
  background: #141414;
  color: #e8e4db;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  max-width: 1100px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.pd-zoom-close {
  position: absolute; top: 10px; right: 14px;
  background: rgba(20,20,20,.6);
  border: 1px solid #333;
  color: #e8e4db;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; line-height: 1;
  z-index: 2; transition: all .15s;
}
.pd-zoom-close:hover { background: #c2693a; border-color: #c2693a; color: #fff; }
.pd-zoom-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  max-height: 92vh;
  overflow: hidden;
}
.pd-zoom-imgwrap {
  position: relative;
  background: #0d0d0d;
  display: flex; flex-direction: column;
  min-height: 340px;
}
.pdz-stage-wrap {
  flex: 1; min-height: 260px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.pd-zoom-imgwrap img {
  max-width: 100%;
  max-height: 58vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.pdz-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 28px; line-height: 1; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: background .15s;
}
.pdz-nav-btn:hover { background: #c2693a; }
.pdz-prev { left: 8px; }
.pdz-next { right: 8px; }
.pdz-thumbstrip {
  display: flex; gap: 6px; padding: 8px 12px;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: #444 transparent;
  background: rgba(0,0,0,.35); flex-shrink: 0;
}
.pdz-thumb {
  flex-shrink: 0; width: 58px; height: 58px;
  border-radius: 5px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color .15s;
}
.pdz-thumb.active { border-color: #c2693a; }
.pdz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdz-thumb-label {
  display: block; font-size: 9px; line-height: 1.2; text-align: center;
  color: #888; margin-top: 3px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 100%;
}
.pd-zoom-medidas { margin: 12px 0 4px; }
.pdz-medidas-label { font-size: 12px; font-weight: 600; color: #555; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.pdz-medidas-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pdz-medida-btn {
  padding: 7px 14px; border: 1.5px solid #ddd; border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 500;
  color: #333; transition: border-color .15s, background .15s;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.pdz-medida-btn span { font-size: 11px; color: #777; font-weight: 400; }
.pdz-medida-btn:hover { border-color: #c2693a; }
.pdz-medida-btn.active { border-color: #c2693a; background: #fdf3ee; color: #c2693a; }
.pdz-medida-btn.active span { color: #c2693a; }
.pdz-zoom-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.94);
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.pdz-zoom-overlay.open { display: flex; }
.pdz-zoom-img {
  max-width: 95vw; max-height: 95vh;
  object-fit: contain; display: block; border-radius: 4px;
  user-select: none; pointer-events: none;
}
.pdz-zoom-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,0,0,.45); border: none; color: #fff;
  font-size: 26px; width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.pdz-zoom-close:hover { background: #c2693a; }
.pdz-zoom-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none;
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 32px; line-height: 1; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: background .15s;
}
.pdz-zoom-nav:hover { background: #c2693a; }
.pdz-zoom-prev { left: 16px; }
.pdz-zoom-next { right: 16px; }
.pdz-gallery-hint {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(20,20,20,.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(4px);
  transition: all .15s;
  z-index: 2;
}
.pdz-gallery-hint:hover { background: #c2693a; border-color: #c2693a; }
/* Agarres picker */
.agarres-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,.78);
  display: flex; align-items: center; justify-content: center;
}
.agarres-box {
  background: #1a1a1a; border: 1px solid #2e2e2e;
  border-radius: 14px; padding: 2rem 2.5rem;
  min-width: 280px; max-width: 360px; text-align: center;
}
.agarres-label {
  color: var(--steel); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; margin: 0 0 .35rem;
}
.agarres-name {
  color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 1.5rem;
}
.agarres-options { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.agarres-btn {
  padding: .65rem 1.5rem; border-radius: 8px;
  background: #252525; border: 1px solid #3a3a3a;
  color: #fff; cursor: pointer; font-size: .9rem; transition: background .15s, border-color .15s;
}
.agarres-btn:hover { background: #c2693a; border-color: #c2693a; }
.agarres-cancel {
  display: block; margin: 1.25rem auto 0;
  background: none; border: none; color: #555;
  cursor: pointer; font-size: .8rem;
}
.agarres-cancel:hover { color: #999; }
.pdz-color {
  font-family: 'DM Sans', sans-serif;
  font-size: .55em;
  font-weight: 500;
  letter-spacing: .02em;
  color: #c2693a;
  margin-left: .35em;
}
.pd-zoom-info {
  padding: 32px 32px 28px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.pd-zoom-cat {
  font-family: 'DM Sans', monospace;
  font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: #c2693a;
}
.pd-zoom-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1; margin: 0;
  color: #fff;
}
.pd-zoom-desc {
  font-size: 14.5px; line-height: 1.65;
  color: #c9c3b6;
}
.pd-zoom-priceline {
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  padding: 14px 0; margin: 6px 0;
}
.pd-zoom-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600;
  color: #fff;
}
.pd-zoom-price small {
  font-family: inherit;
  font-size: .55em;
  color: #8a8578;
  margin-left: 6px; font-weight: 400;
}
.pd-zoom-msi {
  font-size: 12.5px; color: #8a8578;
  margin-top: 4px;
}
.pd-zoom-included {
  margin: 4px 0 2px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.pd-zoom-included-title {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #c2693a; font-weight: 700; margin-bottom: 8px;
}
.pd-zoom-included ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
  font-size: 13px; color: #e6e2d9;
}
.pd-zoom-included li {
  position: relative; padding-left: 18px; line-height: 1.35;
}
.pd-zoom-included li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #c2693a; font-weight: 700;
}
@media (max-width: 820px) {
  .pd-zoom-included ul { grid-template-columns: 1fr; }
}
.pd-zoom-bullets {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: #d6d2c9;
}
.pd-zoom-add {
  margin-top: 8px;
  background: #c2693a;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  transition: all .15s;
}
.pd-zoom-add:hover { background: #a85528; transform: translateY(-1px); }
@media (max-width: 820px) {
  .pd-zoom-body { grid-template-columns: 1fr; max-height: none; overflow-y: auto; }
  .pd-zoom-dialog { max-height: 96vh; overflow-y: auto; }
  .pd-zoom-imgwrap { min-height: 220px; }
  .pdz-stage-wrap { padding: 12px; min-height: 180px; }
  .pdz-thumb { width: 48px; height: 48px; }
  .pd-zoom-info { padding: 22px 20px 24px; }
}
