/* Trigal — plataforma B2B de insumos de panificación.
   Conserva la composición del modelo: crema, amarillo trigo, morado tinta,
   Montserrat y el hero con orbe + palabra gigante. */

:root {
  --ink: #2d2058;
  --ink-soft: #5d5672;
  --purple: #5f2aa6;
  --yellow: #f4cc29;
  --yellow-soft: #f8dc77;
  --cream: #f9f4e1;
  --muted: #6f6a78;
  --line: #ece9e4;
  --card: #fffdfa;
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Montserrat, Arial, sans-serif; color: var(--ink); background: #fff; font-size: 15px; line-height: 1.55; }
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
#app:focus { outline: none; }

/* ---------- Cabecera ---------- */

.topbar { position: sticky; top: 0; z-index: 30; height: 76px; background: var(--cream); border-bottom: 1px solid rgba(45, 32, 88, .07); }
.nav-wrap { height: 100%; width: min(1180px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; font-style: italic; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-style: normal; }
.main-nav { display: flex; align-self: stretch; margin-left: auto; }
.main-nav a { position: relative; display: flex; align-items: center; padding: 0 18px; font-size: 14px; font-weight: 600; }
.main-nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transition: transform .4s var(--ease); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.nav-actions svg, .search-box svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.icon-btn:hover { background: rgba(45, 32, 88, .06); }
.nav-link, .order-link { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.order-link { padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.order-link b, .drawer b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 12px; display: grid; place-items: center; }
.sep { width: 1px; height: 24px; background: #ddd7ca; }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; margin: 6px auto; background: var(--ink); transition: transform .4s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: fixed; inset: 76px 0 0; z-index: 25; background: var(--cream); padding: 24px; overflow-y: auto; }
.drawer nav { display: grid; }
.drawer a { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; border-bottom: 1px solid rgba(45, 32, 88, .1); font-size: 22px; font-weight: 700; }

/* ---------- Búsqueda ---------- */

.search { width: min(640px, calc(100% - 32px)); margin-top: 90px; padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 80px rgba(45, 32, 88, .25); }
.search::backdrop { background: rgba(45, 32, 88, .35); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; font-size: 17px; }
.search-close { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; cursor: pointer; }
.search-results { max-height: 60vh; margin: 0; padding: 8px; overflow-y: auto; list-style: none; }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 10px; font-weight: 600; }
.search-results a:hover, .search-results a:focus-visible { background: var(--cream); }
.search-results img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.search-results small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.search-results .hint { padding: 14px; color: var(--muted); }

/* ---------- Botones y texto ---------- */

.pill-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; cursor: pointer; box-shadow: 0 10px 22px rgba(89, 38, 153, .22); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pill-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(89, 38, 153, .28); }
.pill-btn--full { width: 100%; }
.text-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--purple); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.eyebrow { margin: 0 0 10px; color: var(--purple); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lead { color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.note { color: var(--muted); font-size: 13px; }
.note a { color: var(--purple); font-weight: 700; }

/* ---------- Hero (composición del modelo) ---------- */

.hero { background: var(--cream); padding: 0 0 45px; overflow: hidden; }
.hero-inner { position: relative; height: 540px; width: min(1180px, calc(100% - 48px)); margin: auto; }
.hero-orb { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; border-radius: 50%; background: #fbe7a1; transform: translate(-50%, -48%); }
.hero h1 { position: absolute; left: 50%; top: 38%; z-index: 1; margin: 0; color: var(--yellow); font-size: 118px; font-weight: 800; letter-spacing: -5px; white-space: nowrap; transform: translate(-50%, -50%); }
.hero-bread { position: absolute; left: 50%; top: 50%; z-index: 3; width: 470px; height: 310px; object-fit: cover; border-radius: 50%; clip-path: ellipse(44% 44% at 50% 50%); transform: translate(-50%, -50%) rotate(-10deg); filter: saturate(1.05) contrast(1.04); }
.hero-copy { position: absolute; right: 0; bottom: 40px; z-index: 4; width: 290px; text-align: right; }
.hero-copy strong { font-size: 18px; }
.hero-copy p { margin: 10px 0 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.category-strip { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); width: min(1180px, calc(100% - 48px)); margin: -7px auto 0; background: #fff; box-shadow: 0 8px 22px rgba(50, 35, 20, .05); }
.cat { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 22px; border-right: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: background .3s, box-shadow .3s; }
.cat:last-child { border-right: 0; }
.cat span { color: #aaa; transition: transform .4s var(--ease); }
.cat:hover { background: var(--card); box-shadow: inset 0 -3px 0 var(--yellow); }
.cat:hover span { transform: translateX(4px); color: var(--ink); }

/* ---------- Secciones ---------- */

.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2, .page-head h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.section-head a { color: var(--purple); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.page-head { max-width: 760px; margin-bottom: 36px; }
.page-head h1 { font-size: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { margin: 0 0 14px; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; }
.split-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }

/* ---------- Productos ---------- */

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-grid--four { grid-template-columns: repeat(4, 1fr); }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #f1ece2; border-radius: var(--radius); background: var(--card); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(42, 30, 79, .09); }
.product-card__link { display: flex; flex-direction: column; flex: 1; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-body { padding: 16px 18px 0; }
.product-cat { margin: 0 0 6px; color: var(--purple); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.product-body h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; }
.product-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; margin-top: auto; }
.product-meta b { display: block; font-size: 16px; }
.product-meta small { color: var(--muted); font-size: 13px; }
.add-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 22px; font-weight: 700; cursor: pointer; transition: transform .3s var(--ease), background .3s; }
.add-btn:hover { transform: scale(1.06); background: #f0c20a; }

/* ---------- Catálogo ---------- */

.catalog { padding: 28px 0 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs strong { color: var(--ink-soft); }
.catalog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.catalog-head h1 { margin: 0; font-size: 34px; letter-spacing: -.02em; }
.catalog-tools { display: flex; flex-wrap: wrap; gap: 12px; }
.field-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field-inline input, .field-inline select { height: 44px; padding: 0 14px; border: 1px solid #e2ddd2; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; }
.field-inline input { width: 240px; }
.cat-tabs { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; padding-bottom: 4px; }
.cat-tabs a { flex: none; display: flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid #e6e1d6; border-radius: 999px; font-size: 14px; font-weight: 600; }
.cat-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
.filters { position: sticky; top: 100px; align-self: start; }
.filter-block { margin: 0 0 28px; padding: 0; border: 0; }
.filter-block legend { margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.filter-block label { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--ink-soft); font-size: 14px; cursor: pointer; }
.filter-block input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid #d6d1c6; border-radius: 4px; background: #fff; }
.filter-block input:checked + .check { background: var(--yellow); border-color: var(--yellow); }
.filter-block input:checked + .check::after { content: "✓"; color: var(--ink); font-size: 12px; font-weight: 800; }
.filter-block input:focus-visible + .check { outline: 3px solid var(--purple); outline-offset: 2px; }
.filter-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 0 22px; border: 0; border-radius: 28px; background: linear-gradient(90deg, #5c299c, #6d39af); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 8px 18px rgba(89, 38, 153, .22); }
.filter-btn b { opacity: .85; font-size: 13px; }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 64px 20px; border: 1px dashed #e2ddd2; border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty strong { color: var(--ink); font-size: 18px; }
.empty--page { max-width: 620px; margin: 40px auto; padding: 72px 28px; }
.confirm h1 { margin: 0; font-size: 40px; color: var(--ink); }

/* ---------- Ficha de producto ---------- */

.product-page { padding: 28px 0 40px; }
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.product-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; }
.product-info h1 { margin: 0 0 12px; font-size: 38px; line-height: 1.1; letter-spacing: -.02em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.tag-list li::before { content: "✓ "; color: var(--purple); }
.price { margin: 0 0 18px; font-size: 30px; font-weight: 800; }
.price small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; font-weight: 500; }
.buy-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.stepper { display: inline-flex; align-items: center; height: 50px; border: 1px solid #e2ddd2; border-radius: 999px; background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 20px; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: var(--cream); }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; }
.spec { margin: 0 0 12px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.spec dd { margin: 0; font-size: 14px; font-weight: 600; }

/* ---------- Recetas ---------- */

.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.recipe-grid--two { grid-template-columns: repeat(2, 1fr); }
.recipe-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 18px; color: #fff; }
.recipe-grid--two .recipe-card { aspect-ratio: 16 / 11; }
.recipe-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.recipe-card:hover img { transform: scale(1.05); }
.recipe-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 40, 0) 40%, rgba(20, 12, 40, .78)); }
.recipe-card__text { position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 6px; }
.recipe-card__text small { font-size: 13px; opacity: .9; }
.recipe-card__text strong { font-size: 22px; line-height: 1.2; }
.recipe-hero { position: relative; height: min(64vh, 560px); color: #fff; }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero__text { position: absolute; left: 0; right: 0; bottom: 36px; }
.recipe-hero .breadcrumbs, .recipe-hero .breadcrumbs strong { color: rgba(255, 255, 255, .85); }
.recipe-hero h1 { margin: 0 0 18px; font-size: 52px; line-height: 1.05; letter-spacing: -.03em; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; }
.recipe-facts dt { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .1em; }
.recipe-facts dd { margin: 2px 0 0; font-weight: 700; }
.recipe-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; padding: 56px 0 80px; }
.recipe-body h2 { margin: 0 0 18px; font-size: 24px; }
.ingredients { margin: 0 0 32px; padding: 0; list-style: none; }
.ingredients li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.recipe-products h3 { margin: 0 0 12px; font-size: 15px; }
.mini-product { display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 12px; padding: 8px 0; }
.mini-product img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.mini-product a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 22px 56px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); font-weight: 800; }

/* ---------- Negocios ---------- */

.segments { display: grid; gap: 18px; }
.segment { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; overflow: hidden; border-radius: 22px; background: var(--card); border: 1px solid #f1ece2; }
.segment:nth-child(even) img { order: 2; }
.segment img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.segment > div { padding: 36px 44px; }
.segment h2 { margin: 0 0 10px; font-size: 26px; }
.segment p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.process li { padding-top: 20px; border-top: 2px solid var(--ink); }
.process b { color: var(--purple); }
.process h3 { margin: 10px 0 8px; font-size: 19px; }
.process p { margin: 0; color: var(--ink-soft); }

/* ---------- Pedido ---------- */

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.order-lines { margin: 0 0 40px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.order-lines li { display: grid; grid-template-columns: 64px 1fr auto 110px auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.order-lines img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.order-lines a { font-weight: 700; }
.order-lines small { display: block; color: var(--muted); font-size: 13px; }
.order-lines > li > b { text-align: right; }
.remove { min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.order-form h2, .summary h2, .visit-form h2 { margin: 0 0 18px; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid--one { grid-template-columns: 1fr; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #e2ddd2; border-radius: 12px; background: #fff; font-size: 15px; font-weight: 500; }
.form-grid textarea { resize: vertical; }
.span-2 { grid-column: span 2; }
.form-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #8a1c1c; font-weight: 600; font-size: 14px; }
.summary { position: sticky; top: 100px; padding: 28px; border-radius: 18px; background: var(--cream); }
.summary dl { margin: 0 0 14px; }
.summary dl div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary dd { margin: 0; font-weight: 700; }
.summary .total { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(45, 32, 88, .15); font-size: 18px; }
.summary .note { margin: 0 0 18px; }

/* ---------- Zona cliente ---------- */

.login-card { max-width: 460px; margin: 20px auto 40px; padding: 40px; border-radius: 22px; background: var(--cream); }
.login-card h1 { margin: 0 0 8px; font-size: 32px; }
.login-card .lead { margin-top: 0; }
.client-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.client-head h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -.02em; }
.client-head .lead { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 44px; }
.kpis div { padding: 20px 22px; border-radius: 16px; background: var(--cream); }
.kpis span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpis b { display: block; margin-top: 6px; font-size: 26px; }
.block-title { margin: 0 0 16px; font-size: 22px; }
.orders { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.order-card { padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; }
.order-card__head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; }
.order-card__head small { display: block; color: var(--muted); font-size: 13px; }
.status { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.status--prep { background: #fff4cc; color: #6b4e00; }
.status--road { background: #ece4fb; color: #4a1f86; }
.status--done { background: #e3f4e8; color: #1d5b33; }
.order-card__items { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 14px 0 6px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 14px; }
.order-card__actions { display: flex; gap: 24px; }

/* ---------- Contacto ---------- */

.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
.branch { padding: 26px; border-radius: 18px; background: var(--cream); }
.branch h2 { margin: 0 0 10px; font-size: 22px; }
.branch p { margin: 0 0 4px; color: var(--ink-soft); font-size: 14px; }
.branch a { display: inline-block; margin-top: 10px; color: var(--purple); font-weight: 700; }
.visit-form { max-width: 760px; }
.visit-form .pill-btn { margin-top: 20px; }

/* ---------- Pie y aviso ---------- */

.site-footer { padding: 60px 0 30px; border-top: 1px solid #f1eee9; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-grid h4 { margin: 0 0 16px; font-size: 14px; }
.footer-grid a { display: block; margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.footer-phone { color: var(--ink) !important; font-size: 20px !important; font-weight: 800; }
.footer-bottom { display: grid; grid-template-columns: 1fr 380px; gap: 60px; margin-top: 44px; padding-top: 30px; border-top: 1px solid #f1eee9; }
.brand.mini { font-size: 13px; font-style: normal; }
.brand.mini .brand-mark { width: 22px; height: 22px; font-size: 12px; }
.copyright p, .newsletter small { color: var(--muted); font-size: 12px; line-height: 1.7; }
.newsletter label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.newsletter > div { display: flex; height: 48px; margin-bottom: 8px; overflow: hidden; border: 1px solid #e6e1d6; border-radius: 999px; }
.newsletter input { flex: 1; min-width: 0; padding: 0 18px; border: 0; outline: none; font-size: 14px; }
.newsletter button { margin: 4px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 18px; width: max-content; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 18px 40px rgba(45, 32, 88, .3); transform: translateX(-50%); animation: toast-in .5s var(--ease); }
.toast a { color: var(--yellow); font-weight: 700; white-space: nowrap; text-decoration: underline; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .main-nav, .nav-actions .nav-link, .nav-actions .sep { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: block; margin-left: 0; }
  .product-grid--four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero h1 { font-size: 80px; letter-spacing: -3px; }
  .hero-copy { position: relative; right: auto; bottom: auto; width: auto; margin: 0 auto; padding: 0 0 8px; text-align: center; }
  .hero-inner { height: auto; padding-top: 430px; }
  .hero-orb { top: 210px; }
  .hero h1 { top: 110px; }
  .hero-bread { top: 210px; }
  .catalog-layout, .product-layout, .recipe-body, .order-layout, .split { grid-template-columns: 1fr; }
  .filters { position: static; order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .filters .filter-btn { grid-column: 1 / -1; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .segment, .segment:nth-child(even) { grid-template-columns: 1fr; }
  .segment:nth-child(even) img { order: 0; }
  .summary { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .branches, .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 720px) {
  .container, .nav-wrap, .hero-inner, .category-strip { width: calc(100% - 32px); }
  .nav-wrap { gap: 10px; }
  .nav-actions { gap: 4px; }
  .nav-actions .order-link span { display: none; }
  .order-link { padding: 0 12px; }
  .hero-inner { padding-top: 340px; }
  .hero h1 { top: 74px; font-size: 52px; letter-spacing: -2px; }
  .hero-orb { top: 168px; width: 300px; height: 300px; }
  .hero-bread { top: 170px; width: 330px; height: 220px; }
  .category-strip { grid-template-columns: 1fr 1fr; }
  .cat { border-bottom: 1px solid var(--line); padding: 0 16px; font-size: 13px; }
  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .page-head h1, .catalog-head h1 { font-size: 30px; }
  .product-grid, .product-grid--three { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px 12px 0; }
  .product-body h3 { font-size: 15px; }
  .product-desc { display: none; }
  .product-meta { padding: 12px; }
  .field-inline input { width: 100%; }
  .catalog-tools, .field-inline { width: 100%; }
  .field-inline select { flex: 1; }
  .filters { grid-template-columns: 1fr; }
  .recipe-grid, .recipe-grid--two { grid-template-columns: 1fr; }
  .recipe-hero h1 { font-size: 34px; }
  .product-info h1 { font-size: 30px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .order-lines li { grid-template-columns: 56px 1fr auto; }
  .order-lines li > b { grid-column: 2; text-align: left; }
  .order-lines .remove { grid-column: 3; }
  .order-lines img { width: 56px; height: 56px; grid-row: span 2; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .order-card__head { grid-template-columns: 1fr auto; }
  .order-card__head > b { grid-column: 1 / -1; }
  .client-head { flex-direction: column; }
  .kpis b { font-size: 20px; }
  .login-card { padding: 28px 22px; }
  .segment > div { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 42px; }
  .product-grid, .product-grid--three, .product-grid--four { grid-template-columns: 1fr; }
  .product-desc { display: block; }
  .category-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
