/* =========================================================
   M&M Muebles de Mimbre y Rattan — Hoja de estilos pública
   ========================================================= */
:root {
  --wine: #6b1f2e;
  --wine-deep: #4b1420;
  --gold: #b8924f;
  --gold-soft: #dcc59a;
  --espresso: #2a1d17;
  --ink: #3a2c25;
  --muted: #7a6a60;
  --sand: #f2ebdf;
  --sand-2: #e9dfcd;
  --line: #e4d9c7;
  --white: #ffffff;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 10px 30px -12px rgba(42, 29, 23, .28);
  --shadow-lg: 0 24px 50px -20px rgba(42, 29, 23, .38);
  --serif: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --header-h: 84px;
  --tab-h: 64px;
  --container: 1220px;
  --cane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23b8924f' stroke-opacity='.22' stroke-width='1.1'%3E%3Cpath d='M0 22h44M22 0v44M0 0l44 44M44 0L0 44'/%3E%3Ccircle cx='22' cy='22' r='7'/%3E%3Ccircle cx='0' cy='0' r='7'/%3E%3Ccircle cx='44' cy='0' r='7'/%3E%3Ccircle cx='0' cy='44' r='7'/%3E%3Ccircle cx='44' cy='44' r='7'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; font-size: 16px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--espresso); font-weight: 800; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ic { width: 20px; height: 20px; flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 4px; border: 1px solid transparent;
  font-weight: 500; font-size: 15.5px; letter-spacing: .02em; line-height: 1.2;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn .ic { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-deep); box-shadow: 0 12px 24px -12px rgba(107, 31, 46, .7); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a27e40; }
.btn-outline { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn-outline:hover { background: var(--wine); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--wine); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); box-shadow: 0 12px 24px -12px rgba(29, 168, 81, .8); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }

/* ---------- Títulos de sección (línea decorativa debajo) ---------- */
.sec { padding: 100px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head h2, .sec-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 0; }
.sec-head h2::after, .sec-title::after {
  content: ''; display: block; width: 64px; height: 2px; background: var(--gold);
  margin: 22px auto 0;
}
.sec-title.left::after { margin-left: 0; }
.sec-head p { color: var(--muted); margin: 18px auto 0; max-width: 60ch; }
.bg-sand { background: var(--sand); }
.bg-wine { background-color: var(--wine-deep); background-image: var(--cane); color: #f3e9dc; }
.bg-wine h2, .bg-wine h3 { color: #fff; }
.bg-wine .sec-head p { color: #e2d2c2; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--espresso); color: #e9dccb; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 20px; }
.topbar-info { display: flex; gap: 26px; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ic { width: 15px; height: 15px; color: var(--gold-soft); }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.topbar-social a:hover { background: rgba(255, 255, 255, .1); }
.topbar-social .ic { width: 16px; height: 16px; color: #e9dccb; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(42, 29, 23, .35); border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 28px; transition: height .3s; }
.site-header.scrolled .header-in { height: 70px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 66px; width: auto; transition: height .3s; }
.site-header.scrolled .brand img { height: 54px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 20px; color: var(--wine); font-weight: 600; }
.brand-text small { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 6px; height: 100%; }
.main-nav > a, .nav-drop > a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  font-size: 15.5px; font-weight: 500; color: var(--espresso); height: 100%;
}
.main-nav > a::after, .nav-drop > a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 22px; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.site-header.scrolled .main-nav > a::after, .site-header.scrolled .nav-drop > a::after { bottom: 16px; }
.main-nav > a:hover::after, .main-nav > a.active::after, .nav-drop:hover > a::after, .nav-drop > a.active::after { transform: scaleX(1); }
.main-nav > a.active, .nav-drop > a.active { color: var(--wine); }
.nav-drop { position: relative; height: 100%; display: flex; align-items: center; }
.nav-drop .ic { width: 15px; height: 15px; transition: transform .3s; }
.nav-drop:hover .ic { transform: rotate(180deg); }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px); width: min(860px, 92vw);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 30px;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.nav-drop:hover .mega, .nav-drop:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega h4 { font-size: 17px; color: var(--wine); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; color: var(--ink); transition: color .2s, padding .2s; }
.mega li a span { color: var(--muted); font-size: 13px; }
.mega li a:hover { color: var(--wine); padding-left: 4px; }
.mega-all { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 6px; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.order-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 4px;
  border: 1px solid var(--line); color: var(--espresso); font-weight: 500; font-size: 15px; transition: border-color .2s, color .2s;
}
.order-btn:hover { border-color: var(--wine); color: var(--wine); }
.order-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--wine); color: #fff;
  font-size: 12.5px; font-weight: 600; display: inline-grid; place-items: center; line-height: 1;
}
.order-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Slider (imagen completa, altura dinámica) ---------- */
.hero { position: relative; overflow: hidden; background: var(--espresso); transition: height .5s ease; }
.hero-track { display: flex; align-items: flex-start; transition: transform .8s cubic-bezier(.65, .05, .25, 1); }
.hero-slide { flex: none; position: relative; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: auto; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(42, 29, 23, .78) 0%, rgba(42, 29, 23, .45) 42%, rgba(42, 29, 23, 0) 72%);
}
.hero-caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-caption .container { color: #fff; }
.hero-text { max-width: 560px; }
.hero-text h1, .hero-text h2 { color: #fff; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.08; margin-bottom: 20px; }
.hero-text p { font-size: 19px; color: #f1e6d8; max-width: 46ch; margin-bottom: 30px; }
.hero-slide .hero-text > * { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.hero-slide.is-active .hero-text > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-text > *:nth-child(2) { transition-delay: .15s; }
.hero-slide.is-active .hero-text > *:nth-child(3) { transition-delay: .3s; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-nav { position: absolute; z-index: 5; bottom: 34px; right: 0; left: 0; }
.hero-nav .container { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 3px; padding: 0; border: 0; background: rgba(255, 255, 255, .45); transition: background .3s, width .3s; }
.hero-dots button.on { background: var(--gold); width: 54px; }
.hero-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(42, 29, 23, .25); color: #fff; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.hero-arrow:hover { background: var(--wine); border-color: var(--wine); }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero {
  position: relative; background-size: cover; background-position: center; color: #fff;
  padding: 120px 0 110px; text-align: center; overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 60px); margin-bottom: 14px; }
.page-hero p { font-size: 19px; color: #f1e6d8; max-width: 620px; margin: 0 auto; }
.crumbs { display: flex; justify-content: center; gap: 10px; margin-top: 24px; font-size: 14.5px; color: #e8d9c6; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs span.sep { color: var(--gold-soft); }

/* ---------- Bloque texto + imagen ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-text p { color: var(--ink); }
.split-text .sec-title { margin-bottom: 30px; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.split-media::before {
  content: ''; position: absolute; inset: 26px -26px -26px 26px; border: 1.5px solid var(--gold); border-radius: var(--radius);
  background-image: var(--cane); background-color: var(--sand);
}
.split.reverse .split-media::before { inset: 26px 26px -26px -26px; }
.split-text .btn { margin-top: 12px; }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; display: block; background: var(--sand-2); box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 29, 23, 0) 40%, rgba(42, 29, 23, .85) 100%); transition: background .4s; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card:hover::after { background: linear-gradient(180deg, rgba(75, 20, 32, .1) 20%, rgba(75, 20, 32, .9) 100%); }
.cat-card .cat-info { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.cat-card h3 { color: #fff; font-size: 23px; margin-bottom: 4px; }
.cat-card .cat-info span { font-size: 14px; color: #ecdcc8; display: inline-flex; align-items: center; gap: 6px; }
.cat-card .cat-info .ic { width: 16px; height: 16px; transition: transform .3s; }
.cat-card:hover .cat-info .ic { transform: translateX(5px); }

/* ---------- Tarjetas de producto (solo foto) ---------- */
.masonry { column-count: 4; column-gap: 22px; }
.p-card {
  break-inside: avoid; position: relative; margin-bottom: 22px; border-radius: var(--radius); overflow: hidden;
  background: var(--sand-2); box-shadow: var(--shadow); display: block; transform: translateZ(0);
}
.p-card > a { display: block; position: relative; }
.p-card img { width: 100%; height: auto; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.p-card:hover img { transform: scale(1.05); }
.p-card > a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 29, 23, 0) 60%, rgba(42, 29, 23, .55)); opacity: 0; transition: opacity .35s; }
.p-card:hover > a::after { opacity: 1; }
.p-code {
  position: absolute; z-index: 2; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); color: var(--espresso);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 3px;
}
.p-soldout { position: absolute; z-index: 2; top: 12px; right: 12px; background: var(--espresso); color: #fff; font-size: 12.5px; padding: 4px 10px; border-radius: 3px; }
.p-add {
  position: absolute; z-index: 3; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px 0 13px; border-radius: 21px; border: 0; background: #fff; color: var(--wine);
  font-weight: 500; font-size: 14.5px; box-shadow: 0 8px 18px -8px rgba(42, 29, 23, .5); transition: background .25s, color .25s, transform .25s;
}
.p-add .ic { width: 18px; height: 18px; }
.p-add:hover { background: var(--wine); color: #fff; }
.p-add.added { background: var(--wine); color: #fff; }
.p-view { position: absolute; z-index: 2; left: 12px; bottom: 16px; color: #fff; font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.p-card:hover .p-view { opacity: 1; transform: none; }
.p-card .p-view { left: 14px; bottom: 14px; display: inline-flex; align-items: center; }
.center-cta { text-align: center; margin-top: 30px; }

/* ---------- Recuadros con ícono (sin fondo, centrados) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feat {
  text-align: center; padding: 40px 28px; border: 1px solid rgba(220, 197, 154, .35); border-radius: var(--radius-lg);
  transition: transform .35s, border-color .35s, background .35s;
}
.feat:hover { transform: translateY(-6px); border-color: var(--gold-soft); background: rgba(255, 255, 255, .04); }
.feat .ic { width: 46px; height: 46px; color: var(--gold-soft); margin: 0 auto 20px; stroke-width: 1.2; }
.feat h3 { font-size: 22px; margin-bottom: 10px; }
.feat p { font-size: 15.5px; margin: 0; color: #e2d2c2; }
.feat.light { background: #fff; border-color: var(--line); }
.feat.light .ic { color: var(--wine); }
.feat.light p { color: var(--muted); }
.feat.light:hover { box-shadow: var(--shadow); border-color: var(--gold-soft); background: #fff; }

/* Pasos (secuencia real: numerados) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative; text-align: center; padding: 44px 26px 34px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); transition: transform .35s, box-shadow .35s, border-color .35s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.step-num { position: absolute; top: 16px; right: 20px; font-family: var(--serif); font-size: 30px; color: var(--sand-2); line-height: 1; }
.step .ic { width: 42px; height: 42px; color: var(--wine); margin: 0 auto 18px; stroke-width: 1.3; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Negocios */
.biz { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.biz-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--sand-2); }
.biz-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.biz-item:hover img { transform: scale(1.06); }
.biz-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(42, 29, 23, .85)); }
.biz-item div { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.biz-item h3 { color: #fff; font-size: 19px; margin-bottom: 2px; }
.biz-item p { font-size: 13.5px; margin: 0; color: #eadbc8; line-height: 1.45; }

/* CTA de ancho completo con imagen y degradado */
.cta-full { background-size: cover; background-position: center; color: #fff; padding: 130px 0; text-align: center; }
.cta-full h2 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); max-width: 820px; margin: 0 auto 18px; }
.cta-full p { color: #f1e6d8; font-size: 19px; max-width: 600px; margin: 0 auto 34px; }

/* Misión / Visión */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 46px 42px; text-align: center; transition: transform .35s, box-shadow .35s; }
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mv-card .ic { width: 44px; height: 44px; color: var(--wine); margin: 0 auto 18px; stroke-width: 1.3; }
.mv-card h3 { font-size: 28px; }
.mv-card p { color: var(--muted); margin: 0; }
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* ---------- Catálogo ---------- */
.cat-layout { display: grid; grid-template-columns: 270px 1fr; gap: 44px; align-items: start; }
.cat-layout > * { min-width: 0; }
.cat-side { position: sticky; top: 100px; }
.cat-side h3 { font-size: 21px; margin-bottom: 14px; }
.cat-group { margin-bottom: 18px; }
.cat-group-title { font-size: 13.5px; color: var(--gold); font-weight: 600; letter-spacing: .03em; margin: 0 0 6px; }
.cat-side a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 4px; font-size: 15.5px; color: var(--ink); transition: background .2s, color .2s; }
.cat-side a span { font-size: 13px; color: var(--muted); }
.cat-side a:hover { background: var(--sand); color: var(--wine); }
.cat-side a.on { background: var(--wine); color: #fff; }
.cat-side a.on span { color: #f0d8dc; }
.cat-chips { display: none; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 18px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a { flex: none; padding: 8px 16px; border-radius: 20px; border: 1px solid var(--line); font-size: 14.5px; white-space: nowrap; background: #fff; }
.cat-chips a.on { background: var(--wine); color: #fff; border-color: var(--wine); }
.cat-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cat-top h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0; }
.cat-top p { margin: 6px 0 0; color: var(--muted); }
.cat-count { color: var(--muted); font-size: 15px; white-space: nowrap; }
.catalog .masonry { column-count: 3; }
.empty-box { text-align: center; padding: 70px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sand); }
.empty-box > .ic { width: 50px; height: 50px; color: var(--gold); margin: 0 auto 16px; stroke-width: 1.2; }
.empty-box h3 { font-size: 26px; }
.empty-box p { color: var(--muted); max-width: 480px; margin: 0 auto 26px; }

/* ---------- Página de producto ---------- */
.product { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: var(--shadow-lg); }
.gallery-main img { width: 100%; height: auto; }
.gallery-main .p-code { top: 16px; left: 16px; font-size: 13.5px; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery-thumbs button { width: 88px; height: 88px; padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; background: var(--sand); transition: border-color .2s; }
.gallery-thumbs button.on { border-color: var(--wine); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-panel { position: sticky; top: 104px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; background: #fff; box-shadow: var(--shadow); }
.p-panel .p-title { font-size: 34px; margin-bottom: 10px; }
.p-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.p-cats a { font-size: 13.5px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); transition: color .2s, border-color .2s; }
.p-cats a:hover { color: var(--wine); border-color: var(--wine); }
.p-panel .note-help { color: var(--muted); font-size: 15.5px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14.5px; font-weight: 500; color: var(--espresso); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 79, .18); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.qty button { width: 44px; height: 46px; border: 0; background: var(--sand); color: var(--espresso); display: grid; place-items: center; transition: background .2s; }
.qty button:hover { background: var(--sand-2); }
.qty input { width: 56px; height: 46px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.p-actions { display: grid; gap: 12px; margin-top: 24px; }
.p-help { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 14px; }
.p-help .ic { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.3; }
.p-help h4 { font-size: 18px; margin-bottom: 4px; }
.p-help p { font-size: 15px; color: var(--muted); margin: 0; }

/* Carrusel infinito */
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: none; width: 260px; height: 300px; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--sand-2); box-shadow: var(--shadow); }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.marquee-item:hover img { transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Pedido ---------- */
.order-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.order-list { display: grid; gap: 16px; }
.o-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: box-shadow .3s; }
.o-item:hover { box-shadow: var(--shadow); }
.o-item img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius); }
.o-item h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: .03em; margin-bottom: 10px; }
.o-item h3 a:hover { color: var(--wine); }
.o-item .o-note { width: 100%; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; }
.o-item .o-note:focus { outline: none; border-color: var(--gold); }
.o-remove { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; transition: color .2s, border-color .2s; align-self: start; }
.o-remove:hover { color: var(--wine); border-color: var(--wine); }
.o-remove .ic { width: 17px; height: 17px; }
.order-form { position: sticky; top: 104px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sand); }
.order-form h2 { font-size: 28px; }
.order-form > p { color: var(--muted); font-size: 15.5px; }
.order-summary { display: flex; justify-content: space-between; padding: 14px 0; margin-bottom: 18px; border-top: 1px solid var(--sand-2); border-bottom: 1px solid var(--sand-2); font-size: 15.5px; }
.order-summary strong { color: var(--wine); }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 4px; font-size: 15px; }
.form-msg.err { display: block; background: #fbeaea; color: #8a1c1c; border: 1px solid #f0caca; }
.order-done { text-align: center; padding: 60px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.order-done > .ic { width: 56px; height: 56px; color: var(--wa-dark); margin: 0 auto 14px; }

/* Vista pública del pedido */
.ov-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.ov-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.ov-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ov-card div { padding: 16px 18px; }
.ov-card strong { display: block; color: var(--espresso); letter-spacing: .03em; }
.ov-card span { color: var(--muted); font-size: 15px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.info-card { text-align: center; padding: 30px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .3s, box-shadow .3s, border-color .3s; background: #fff; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.info-card .ic { width: 34px; height: 34px; color: var(--wine); margin: 0 auto 12px; stroke-width: 1.4; }
.info-card .ic.wa { color: var(--wa-dark); }
.info-card h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em; }
.info-card p, .info-card a { margin: 0; font-size: 16.5px; color: var(--espresso); word-break: break-word; }
.contact-form { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sand); }
.contact-form h2 { font-size: 30px; }
.contact-form .note { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }
.map { margin-top: 60px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--espresso); color: #d9cbbb; padding-top: 80px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 50%; padding: 10px; margin-bottom: 20px; }
.footer-logo img { width: 110px; height: auto; }
.site-footer h4 { color: #fff; font-size: 20px; margin-bottom: 20px; }
.site-footer h4::after { content: ''; display: block; width: 36px; height: 2px; background: var(--gold); margin-top: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { transition: color .2s, padding .2s; }
.site-footer li a:hover { color: #fff; padding-left: 4px; }
.f-contact li { display: flex; gap: 12px; align-items: flex-start; }
.f-contact .ic { width: 18px; height: 18px; color: var(--gold-soft); margin-top: 4px; }
.f-social { display: flex; gap: 10px; margin-top: 22px; }
.f-social a { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.f-social a:hover { background: var(--wine); border-color: var(--wine); }
.f-social .ic { width: 17px; height: 17px; color: #fff; }
.f-book { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 10px 16px 10px 12px; border: 1px solid rgba(220, 197, 154, .45); border-radius: 6px; transition: border-color .25s, background .25s; }
.f-book:hover { border-color: var(--gold-soft); background: rgba(255, 255, 255, .05); }
.f-book .ic { width: 30px; height: 30px; color: var(--gold-soft); stroke-width: 1.3; }
.f-book strong { display: block; color: #fff; font-weight: 500; font-size: 15px; line-height: 1.3; }
.f-book small { display: block; color: #b8a796; font-size: 13px; line-height: 1.3; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: 14px; color: #a8998a; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 26px; z-index: 70; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 28px -10px rgba(29, 168, 81, .75);
  transition: transform .3s, background .3s, bottom .35s;
}
.wa-float .ic { width: 31px; height: 31px; }
.wa-float:hover { transform: scale(1.08); background: var(--wa-dark); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
body.has-orderbar .wa-float { bottom: 104px; }

/* ---------- Barra inferior del pedido ---------- */
.orderbar {
  position: fixed; left: 50%; bottom: 22px; z-index: 65; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 24px; padding: 12px 12px 12px 24px; background: var(--espresso); color: #fff;
  border-radius: 10px; box-shadow: 0 20px 40px -14px rgba(42, 29, 23, .6); transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility .45s; visibility: hidden;
  width: max-content; max-width: calc(100% - 32px);
}
.orderbar.show { transform: translate(-50%, 0); visibility: visible; }
.orderbar-text { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.orderbar-text .ic { color: var(--gold-soft); }
.orderbar-text strong { color: var(--gold-soft); }

/* ---------- Menú móvil tipo app ---------- */
.tabbar { display: none; }

/* ---------- Animaciones al hacer scroll ---------- */
[data-anim] { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
[data-anim="left"] { transform: translateX(-40px); }
[data-anim="right"] { transform: translateX(40px); }
[data-anim="zoom"] { transform: scale(.94); }
[data-anim].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation-duration: 120s; }
  .wa-float::before { animation: none; }
}

/* Aviso breve */
.toast { width: max-content; max-width: calc(100% - 32px); position: fixed; left: 50%; top: 22px; z-index: 90; transform: translate(-50%, -200%); visibility: hidden; background: var(--wine); color: #fff; padding: 12px 22px; border-radius: 6px; box-shadow: var(--shadow-lg); font-size: 15px; display: flex; gap: 10px; align-items: center; transition: transform .4s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .brand-text { display: none; }
  .main-nav > a, .nav-drop > a { padding: 10px 12px; }
}
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 3; }
  .catalog .masonry { column-count: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .biz { grid-template-columns: 1fr; }
  .product { gap: 40px; }
}
@media (max-width: 920px) {
  :root { --header-h: 70px; }
  .topbar, .main-nav, .header-actions .btn-wa, .order-btn .lbl { display: none; }
  .site-header.scrolled .header-in { height: 64px; }
  .brand img, .site-header.scrolled .brand img { height: 52px; }
  .brand-text { display: flex; }
  .brand-text strong { font-size: 17px; }
  .order-btn { padding: 10px 12px; }
  .sec { padding: 72px 0; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 56px; }
  .split.reverse .split-media { order: 0; }
  .split-media { margin-right: 26px; }
  .split.reverse .split-media { margin: 0 0 0 26px; }
  .cat-layout { grid-template-columns: 1fr; }
  .cat-side { display: none; }
  .cat-chips { display: flex; }
  .product, .order-layout, .contact-grid { grid-template-columns: 1fr; }
  .p-panel, .order-form { position: static; }
  .mv { grid-template-columns: 1fr; }
  .val-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 84px 0 76px; }

  /* Slider en móvil: texto debajo de la imagen completa */
  .hero-media::after { background: linear-gradient(180deg, rgba(42, 29, 23, 0) 60%, rgba(42, 29, 23, .35)); }
  .hero-caption { position: static; background: var(--wine-deep); background-image: var(--cane); padding: 30px 0 76px; }
  .hero-text h1, .hero-text h2 { font-size: 30px; margin-bottom: 12px; }
  .hero-text p { font-size: 16px; margin-bottom: 22px; }
  .hero-nav { bottom: 24px; }
  .hero-nav .container { justify-content: space-between; }
  .hero-arrow { width: 40px; height: 40px; }

  /* Menú inferior tipo app */
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(42, 29, 23, .4);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--muted); position: relative; }
  .tabbar a .ic { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--wine); }
  .tabbar a.on::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2.5px; border-radius: 0 0 3px 3px; background: var(--wine); }
  .wa-float { right: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .wa-float .ic { width: 28px; height: 28px; }
  body.has-orderbar .wa-float { bottom: calc(var(--tab-h) + 90px + env(safe-area-inset-bottom)); }
  .orderbar { bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); width: calc(100% - 24px); justify-content: space-between; gap: 12px; padding-left: 18px; }
  .toast { top: 12px; }
  [data-anim="left"], [data-anim="right"] { transform: translateY(30px); }
  .product > *, .contact-grid > *, .order-layout > * { min-width: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cat-card h3 { font-size: 18px; }
  .cat-card .cat-info { left: 14px; right: 14px; bottom: 14px; }
  .masonry, .catalog .masonry { column-count: 2; column-gap: 12px; }
  .p-card { margin-bottom: 12px; }
  .p-add { height: 36px; padding: 0 11px; right: 8px; bottom: 8px; }
  .p-add .lbl { display: none; }
  .p-code { top: 8px; left: 8px; font-size: 11px; padding: 3px 7px; }
  .p-view { display: none; }
  .feat-grid, .steps, .val-grid, .info-cards { grid-template-columns: 1fr; }
  .biz-grid { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .o-item { grid-template-columns: 84px 1fr auto; gap: 14px; padding: 12px; }
  .o-item img { width: 84px; height: 84px; }
  .order-form, .contact-form, .p-panel { padding: 26px 20px; }
  .cta-full { padding: 90px 0; }
  .marquee-item { width: 190px; height: 230px; }
  .sec-head { margin-bottom: 40px; }
  .orderbar-text { font-size: 14.5px; }
  .orderbar .btn { padding: 11px 16px; }
  .cat-top { flex-direction: column; align-items: flex-start; }
}

/* Paginación */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.pager a:hover { border-color: var(--wine); color: var(--wine); }
.pager a.on { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ---------- Libro de reclamaciones ---------- */
.lr-wrap { max-width: 920px; margin: 0 auto; }
.lr-intro { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 36px; }
.lr-form, .lr-sheet { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.lr-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 30px; background: var(--sand); border-bottom: 1px solid var(--line); }
.lr-head h2 { font-size: 24px; margin: 0; display: flex; align-items: center; gap: 12px; }
.lr-head h2 .ic { width: 30px; height: 30px; color: var(--wine); stroke-width: 1.3; }
.lr-head p { margin: 0; font-size: 14.5px; color: var(--muted); text-align: right; line-height: 1.5; }
.lr-block { padding: 26px 30px; border-bottom: 1px solid var(--line); }
.lr-block:last-child { border-bottom: 0; }
.lr-block h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--wine); margin: 0 0 16px; }
.lr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.lr-grid .full { grid-column: 1 / -1; }
.lr-biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; font-size: 15px; }
.lr-biz span { display: block; font-size: 13px; color: var(--muted); }
.field select { appearance: auto; }
.radio-row { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-card { flex: 1 1 220px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s; }
.radio-card:has(input:checked) { border-color: var(--wine); background: #fbf6f4; }
.radio-card input { margin-top: 5px; accent-color: var(--wine); width: 17px; height: 17px; }
.radio-card strong { display: block; color: var(--espresso); }
.radio-card small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; margin-bottom: 12px; }
.check-line input { margin-top: 5px; accent-color: var(--wine); width: 17px; height: 17px; flex: none; }
.lr-legal { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.lr-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding: 22px 30px; background: var(--sand); }
.lr-ok { display: flex; gap: 14px; align-items: center; padding: 16px 20px; margin-bottom: 24px; border: 1px solid #c6e6d3; background: #eef8f2; color: #1d6b40; border-radius: var(--radius); }
.lr-ok .ic { width: 26px; height: 26px; }
.lr-dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 20px; margin: 0; font-size: 15.5px; }
.lr-dl dt { color: var(--muted); }
.lr-dl dd { margin: 0; color: var(--espresso); word-break: break-word; }
@media (max-width: 640px) {
  .lr-grid, .lr-biz { grid-template-columns: 1fr; }
  .lr-head, .lr-block, .lr-actions { padding-left: 20px; padding-right: 20px; }
  .lr-head p { text-align: left; }
  .lr-dl { grid-template-columns: 1fr; gap: 2px; }
  .lr-dl dd { margin-bottom: 10px; }
}
@media print {
  .topbar, .site-header, .site-footer, .tabbar, .orderbar, .wa-float, .toast, .page-hero, .no-print { display: none !important; }
  body { padding: 0 !important; font-size: 13px; }
  .sec { padding: 0 !important; }
  .lr-sheet { box-shadow: none; border-color: #999; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
}
