/* Kaifoods Market — estilos */
:root {
  --ink: #191209;
  --ink-2: #2a2117;
  --ink-soft: #4b423a;
  --muted: #7a7067;
  --line: #e7e1d8;
  --cream: #fffff2;
  --paper: #ffffff;
  --sun: #dca335;
  --sun-dark: #c48d22;
  --gold: #a0840d;
  --green: #1a3d1f;
  --maroon: #600909;
  --terra: #a53a24;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(25, 18, 9, .08);
  --shadow-lg: 0 20px 50px rgba(25, 18, 9, .16);
  --container: 1240px;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section-alt { background: var(--cream); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero .kicker, .wholesale-card .kicker { color: #fff; }
.hero .kicker::before { background: var(--sun); }
.section-title { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 0; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 18px 0; transition: background .3s, padding .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(25, 18, 9, .96); padding: 10px 0; box-shadow: 0 6px 24px rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand img { width: 168px; height: auto; }
.main-nav {
  display: flex; align-items: center; gap: 4px; margin: 0 auto;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); padding: 6px; border-radius: 999px;
}
.main-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px; transition: color .2s, background .2s; }
.main-nav a:hover { background: rgba(255,255,255,.1); }
.main-nav a.active { color: var(--sun); }
.main-nav .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.lang-switch button { border: 0; background: transparent; color: #fff; font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.cart-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); }
.cart-link:hover { background: rgba(255,255,255,.2); }
.cart-link svg { width: 23px; height: 23px; }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--ink);
  padding: 190px 0 150px; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 68% 100%, 64% calc(100% - 38px), 0 calc(100% - 38px));
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: url("../img/waves.svg") center / 900px repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 85% 40%, rgba(220,163,53,.22), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 800; text-transform: uppercase; line-height: .95; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero p { font-size: 18px; max-width: 46ch; color: rgba(255,255,255,.82); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; height: 520px; }
.hero-art img { position: absolute; border-radius: 18px; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.9); }
.hero-art .a1 { width: 54%; top: 0; left: 4%; transform: rotate(-6deg); }
.hero-art .a2 { width: 50%; top: 6%; right: 0; transform: rotate(5deg); }
.hero-art .a3 { width: 48%; bottom: 0; left: 14%; transform: rotate(3deg); z-index: 2; }
.hero-art .a4 { width: 44%; bottom: 6%; right: 4%; transform: rotate(-4deg); }

.page-hero { position: relative; background: var(--ink); color: #fff; padding: 170px 0 110px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 68% 100%, 64% calc(100% - 32px), 0 calc(100% - 32px)); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .5; background: url("../img/waves.svg") center / 900px repeat; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; text-transform: uppercase; line-height: .95; max-width: 12ch; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.breadcrumb a { color: var(--sun); text-decoration: none; }

/* ---------- Beneficios ---------- */
.perks { margin-top: -40px; position: relative; z-index: 2; }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.perk { padding: 30px 28px; display: flex; gap: 16px; align-items: flex-start; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #fdf3da; color: var(--gold); display: grid; place-items: center; }
.perk-icon svg { width: 24px; height: 24px; }
.perk h3 { font-size: 16px; margin-bottom: 4px; font-weight: 700; }
.perk p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media .main { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%, 0 40px); }
.about-media .float { position: absolute; width: 46%; right: -24px; bottom: -36px; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.checklist { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.checklist svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--sun); color: var(--ink); }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none;
  background: var(--c, var(--ink)); padding: 26px; isolation: isolate;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(25,18,9,.75) 58%, rgba(25,18,9,.96)); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card h3 { font-size: 24px; text-transform: uppercase; font-weight: 800; margin-bottom: 8px; }
.cat-card span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--sun); text-transform: uppercase; letter-spacing: .08em; }
.cat-card span svg { width: 16px; height: 16px; }

/* ---------- Tarjetas de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-media { position: relative; display: block; aspect-ratio: 1; background: var(--cream); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--sun); color: var(--ink); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0; }
.product-name a { text-decoration: none; }
.product-name a:hover { color: var(--gold); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fdf0cf; color: #7a5a00; }
.specs { margin: 0 0 12px; display: grid; gap: 4px; font-size: 14px; }
.specs div { display: flex; justify-content: space-between; gap: 10px; }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--ink-soft); text-align: right; }
.product-short { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.product-actions { display: flex; gap: 8px; }

/* ---------- Mayoristas ---------- */
.wholesale { position: relative; background: var(--sun); overflow: hidden; }
.wholesale-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.wholesale .kicker { color: var(--ink); }
.wholesale .lead { color: var(--ink-2); }
.wholesale .checklist svg { background: var(--ink); color: var(--sun); }
.wholesale-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-lg); position: relative; }
.wholesale-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .35; background: url("../img/waves.svg") center / 700px; }
.wholesale-card > * { position: relative; }
.wholesale-card h3 { font-size: 30px; text-transform: uppercase; margin-bottom: 14px; }
.wholesale-card p { color: rgba(255,255,255,.78); }
.wholesale-card .btn { margin-top: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ---------- Formularios ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-info { display: grid; gap: 18px; margin-top: 30px; }
.contact-info a, .contact-info span { display: flex; gap: 14px; align-items: center; text-decoration: none; font-weight: 600; font-size: 17px; }
.contact-info .ci-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; flex: none; }
.contact-info .ci-icon svg { width: 22px; height: 22px; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field label .req { color: var(--terra); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(220,163,53,.2); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-weight: 600; font-size: 15px; }
.form-status.ok { color: #1a7a3a; }
.form-status.err { color: var(--terra); }
.form-status a { color: inherit; }

/* ---------- Catálogo ---------- */
.catalog { padding: 70px 0 110px; }
.search-bar { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px; }
.search-bar input { flex: 1; border: 0; padding: 16px 20px; min-width: 0; }
.search-bar input:focus { outline: none; }
.search-bar button { border: 0; background: var(--sun); color: var(--ink); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; padding: 0 26px; cursor: pointer; }
.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 26px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 100px; }
.filters > h2 { font-size: 20px; margin-bottom: 8px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "+"; font-size: 20px; line-height: 1; }
.filter-group[open] summary::after { content: "−"; }
.filter-group label { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; cursor: pointer; }
.filter-group label .n { margin-left: auto; font-size: 12px; color: var(--muted); }
.filter-group input { width: 17px; height: 17px; accent-color: var(--sun-dark); }
.filters .btn { margin-top: 20px; }
.toolbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin-bottom: 20px; font-size: 14px; }
.toolbar .count { font-weight: 600; }
.toolbar label { font-weight: 700; }
.toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.toolbar .views { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.toolbar .views button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.toolbar .views button[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); }
.toolbar .views svg { width: 16px; height: 16px; }
.filters-toggle { display: none; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

.product-grid.list { grid-template-columns: 1fr; }
.product-grid.list .product-card { flex-direction: row; }
.product-grid.list .product-media { width: 230px; flex: none; }
.product-grid.list .product-body { padding: 22px 26px; }

/* ---------- Ficha de producto ---------- */
.pdp { padding: 70px 0 100px; }
.pdp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: start; }
.pdp-gallery { position: sticky; top: 100px; }
.pdp-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); border: 1px solid var(--line); aspect-ratio: 1; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp-thumbs button { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); padding: 0; cursor: pointer; background: var(--cream); }
.pdp-thumbs button[aria-pressed="true"] { border-color: var(--sun); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(34px, 4.5vw, 56px); text-transform: uppercase; font-weight: 800; margin-bottom: 16px; }
.pdp-price { font-family: var(--font-head); font-size: 40px; font-weight: 800; margin: 10px 0 20px; }
.pdp-price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.pdp-desc { font-size: 17px; color: var(--ink-soft); }
.pdp-specs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 24px 0; font-size: 15px; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 48px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--cream); }
.qty input { width: 48px; text-align: center; border: 0; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 34px; height: 38px; font-size: 17px; }
.qty.sm input { width: 38px; }
.pdp-wholesale { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); background: var(--cream); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.pdp-wholesale strong { display: block; }
.pdp-wholesale a { color: var(--gold); font-weight: 700; }
.related { padding-top: 90px; }

/* ---------- Carrito ---------- */
.cart-page { padding: 70px 0 110px; }
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.cart-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.cart-box + .cart-box { margin-top: 24px; }
.cart-box h2 { font-size: 22px; text-transform: uppercase; margin-bottom: 18px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.cart-line:first-of-type { border-top: 0; }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.cart-line h3 { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.cart-line h3 a { text-decoration: none; }
.cart-line .meta { font-size: 13px; color: var(--muted); }
.cart-line .line-total { font-weight: 800; min-width: 80px; text-align: right; }
.link-btn { border: 0; background: none; padding: 0; color: var(--terra); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: underline; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.summary-row.total { border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 16px; font-size: 20px; font-weight: 800; font-family: var(--font-head); }
.summary-row .note { color: var(--muted); font-size: 13px; text-align: right; }
.cart-summary { position: sticky; top: 100px; }
.how { font-size: 13px; color: var(--muted); background: var(--cream); border-radius: 10px; padding: 14px; margin: 16px 0; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { flex: 1 1 160px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 14px; font-weight: 600; }
.radio-row input { accent-color: var(--sun-dark); }
.radio-row label:has(input:checked) { border-color: var(--sun); background: #fffaf0; }
.success { text-align: center; max-width: 620px; margin: 0 auto; padding: 50px 30px; }
.success .ok-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; margin: 0 auto 22px; }
.success .ok-icon svg { width: 40px; height: 40px; }
.success h2 { font-size: 38px; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- Políticas ---------- */
.legal { padding: 70px 0 110px; }
.legal article { max-width: 820px; }
.legal h2 { font-size: 28px; text-transform: uppercase; margin: 40px 0 14px; scroll-margin-top: 110px; }
.legal p, .legal li { color: var(--ink-soft); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 110px 0 30px; position: relative; clip-path: polygon(0 32px, 30% 32px, 33% 0, 100% 0, 100% 100%, 0 100%); margin-top: -32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand img { width: 220px; margin-bottom: 20px; }
.footer-brand p { font-size: 15px; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--sun); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-phone { color: #fff !important; font-family: var(--font-head); font-size: 24px !important; font-weight: 700; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.social a:hover { background: var(--sun); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 60px; padding-top: 24px; font-size: 14px; }
.footer-bottom a { color: var(--sun); text-decoration: none; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); z-index: 70; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .burger { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 auto 0; top: 0; margin: 0; padding: 96px 24px 30px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--ink); border: 0; border-radius: 0 0 22px 22px;
    transform: translateY(-105%); transition: transform .35s ease; z-index: -1;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
  }
  .nav-open .main-nav { transform: none; }
  .main-nav a { font-size: 18px; padding: 14px 16px; }
  .main-nav .nav-cta-mobile { display: inline-flex; margin-top: 14px; color: var(--ink); }
  .brand { position: relative; z-index: 2; }
  .header-actions { margin-left: auto; position: relative; z-index: 2; }
  .hero { padding: 150px 0 120px; }
  .hero-grid, .about-grid, .wholesale-grid, .contact-grid, .pdp-grid, .cart-layout { grid-template-columns: 1fr; }
  .hero-art { height: 420px; max-width: 560px; }
  .perks-grid { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .about-media { max-width: 560px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .pdp-gallery, .cart-summary { position: static; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .brand img { width: 128px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .lang-switch button { padding: 6px 8px; }
  .cart-link, .burger { width: 42px; height: 42px; }
  .hero { padding: 130px 0 100px; clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%, 54% calc(100% - 24px), 0 calc(100% - 24px)); }
  .hero p { font-size: 16px; }
  .hero-art { height: 300px; }
  .page-hero { padding: 140px 0 80px; }
  .perks { margin-top: -20px; }
  .perks-grid { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 260px; }
  .about-media .float { right: -6px; bottom: -24px; }
  .form-card, .wholesale-card { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar .views { display: none; }
  .product-grid.list .product-card { flex-direction: column; }
  .product-grid.list .product-media { width: 100%; }
  .cart-line { grid-template-columns: 64px 1fr auto; }
  .cart-line img { width: 64px; height: 64px; }
  .cart-line .line-total { grid-column: 2 / -1; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { clip-path: polygon(0 24px, 30% 24px, 36% 0, 100% 0, 100% 100%, 0 100%); }
  .btn { padding: 14px 22px; }
}

/* Bloques de texto por idioma (páginas largas) */
html[lang="es"] [data-only="en"], html[lang="en"] [data-only="es"] { display: none; }

/* Cómo trabajamos */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 26px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--sun); margin-bottom: 18px; }
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -14px; width: 8px; height: 8px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
.route { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 800; font-size: 15px; }
.route .flag { font-size: 22px; }
.route .line { flex: 1; min-width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); }
@media (max-width: 980px) { .process-grid { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 640px) { .process-grid { grid-template-columns: 1fr; } }

/* Foto de portada */
.hero-art .hero-photo { position: static; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; border: 0; transform: none; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.about-media .float { background: #fff; }

/* Información para importadores */
.key-info { margin-top: 70px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 44px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.key-info .kicker { color: #fff; }
.key-info .kicker::before { background: var(--sun); }
.key-head h3 { font-size: 32px; text-transform: uppercase; margin-bottom: 12px; }
.key-head p { color: rgba(255,255,255,.75); }
.key-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 30px; margin: 0; }
.key-grid dt { font-weight: 800; color: var(--sun); margin-bottom: 6px; }
.key-grid dd { margin: 0; font-size: 15px; color: rgba(255,255,255,.82); }
@media (max-width: 1120px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .key-info { grid-template-columns: 1fr; } .key-grid { grid-template-columns: 1fr 1fr; } .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .key-info { padding: 28px 20px; } .key-grid { grid-template-columns: 1fr; } .cat-grid { grid-template-columns: 1fr; } }
.price-quote { font-size: 15px; color: var(--ink-soft); }

/* ===== Mejoras v2 ===== */
body.lock { overflow: hidden; }
.site-header { padding-top: 0; }
.topbar { background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 700; transition: margin .3s, opacity .3s; margin-bottom: 14px; }
.topbar-inner { display: flex; justify-content: center; align-items: center; gap: 28px; min-height: 34px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar svg { width: 15px; height: 15px; }
.site-header.scrolled .topbar { margin-top: -34px; margin-bottom: 10px; opacity: 0; }
.site-header.scrolled { padding-top: 0; }
.icon-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; padding: 0; }
.icon-btn:hover { background: rgba(255,255,255,.2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-link.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }

/* Buscador */
.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(25,18,9,.6); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 90px 16px 16px; }
.search-panel { width: 100%; max-width: 640px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.search-field > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-field input { flex: 1; border: 0; font-size: 18px; padding: 10px 0; min-width: 0; }
.search-field input:focus { outline: none; }
.search-field .icon-btn { background: var(--cream); color: var(--ink); width: 40px; height: 40px; }
.search-results { padding: 14px 16px 18px; max-height: 65vh; overflow: auto; }
.search-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 4px 8px; }
.search-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; }
.search-item:hover, .search-item:focus-visible { background: var(--cream); }
.search-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.search-item strong { display: block; font-size: 15px; }
.search-item small { color: var(--muted); }
.search-item em { font-style: normal; font-weight: 800; }
.search-empty { color: var(--muted); padding: 16px 4px; }
.search-all { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.chip:hover { border-color: var(--sun); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chips { margin-bottom: 16px; }

/* Carrito lateral */
.drawer { position: fixed; inset: 0; z-index: 95; background: rgba(25,18,9,0); transition: background .25s; }
.drawer.open { background: rgba(25,18,9,.55); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s ease; box-shadow: -20px 0 50px rgba(0,0,0,.2); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; text-transform: uppercase; }
.drawer-head .icon-btn { background: var(--cream); color: var(--ink); width: 40px; height: 40px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer-empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.drawer-empty svg { width: 54px; height: 54px; margin-bottom: 10px; }
.d-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.d-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.d-info a { font-weight: 700; text-decoration: none; display: block; line-height: 1.3; }
.d-info small { color: var(--muted); display: block; margin: 2px 0 8px; }
.d-info .qty span { min-width: 30px; text-align: center; font-weight: 700; }
.d-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--cream); }
.drawer-foot .summary-row { font-size: 18px; padding: 0; }
.drawer-note { margin: 0; font-size: 13px; color: var(--muted); }
.btn-wa svg { width: 18px; height: 18px; }

/* Volver arriba */
.to-top { position: fixed; right: 26px; bottom: 92px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* Portada: cifras */
.hero-stats { display: flex; gap: 34px; margin: 42px 0 0; flex-wrap: wrap; }
.hero-stats div { border-left: 2px solid var(--sun); padding-left: 14px; max-width: 170px; }
.hero-stats dt { font-size: 34px; font-weight: 800; line-height: 1; color: #fff; }
.hero-stats dd { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.4; }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center; }
.btn-ig { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; margin-top: 10px; }
.btn-ig:hover { filter: brightness(1.08); }
.btn-ig svg { width: 20px; height: 20px; }
.ig-photos { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 380px; }
.ig-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); transition: transform .4s; }
.ig-photos img:first-child { grid-row: span 2; }
.ig-photos:hover img { transform: scale(1.02); }

/* Ficha: compartir y barra fija */
.share-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; color: #1a8a47; text-decoration: none; }
.share-link svg { width: 20px; height: 20px; }
.buy-sticky { display: none; }
@media (max-width: 980px) {
  .buy-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); padding: 10px 16px; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .25s; }
  .buy-sticky.show { transform: none; }
  .buy-sticky img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
  .buy-sticky div { flex: 1; min-width: 0; }
  .buy-sticky strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-sticky span { font-weight: 800; }
  .ig-grid { grid-template-columns: 1fr; }
  .topbar-inner span:nth-child(2) { display: none; }
}
@media (max-width: 640px) {
  .topbar-inner { gap: 14px; font-size: 12px; }
  .topbar-inner span:first-child { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  .search-btn { display: none; }
  .hero-stats { gap: 18px; }
  .hero-stats dt { font-size: 26px; }
  .ig-photos { height: 260px; }
  .to-top { right: 22px; bottom: 90px; width: 42px; height: 42px; }
}
@media (max-width: 980px) {
  .wa-float, .to-top { transition: bottom .25s, opacity .25s, transform .25s; }
  body.has-sticky .wa-float { bottom: 86px; }
  body.has-sticky .to-top { bottom: 154px; }
}
