/* ==========================================================
   La Farinata — estilos
   Paleta del logo: azul Farinata + verde y rojo de la franja tricolor; celeste hielo para lo congelado.
   Layout: landing informativa por secciones, cada línea con su color de "góndola".
   ========================================================== */
:root {
  --navy: #15326F;
  --navy-deep: #0C1F4A;
  --navy-soft: #2449A0;
  --ice: #9DCBF4;
  --green: #2E9E48;
  --red: #D7262F;
  --red-dark: #B51D25;
  --tricolor: linear-gradient(90deg, var(--green) 0 33.33%, #fff 33.33% 66.66%, var(--red) 66.66%);
  /* Sobre fondos claros el tramo blanco pasa a gris hielo para que se vea */
  --tricolor-light: linear-gradient(90deg, var(--green) 0 33.33%, var(--ice-soft) 33.33% 66.66%, var(--red) 66.66%);
  --ice-soft: #CFE8FC;
  --frost: #EEF6FE;
  --white: #FFFFFF;
  --ink: #0A1F44;
  --muted: #55657F;
  --wa: #1FAF5A;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;

  --radius: 18px;
  --shadow: 0 14px 34px -16px rgba(10, 31, 68, .35);

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 10, 31, 68;
}

html { scroll-padding-top: 84px; }
body { background: var(--white); color: var(--ink); font-family: var(--font-body); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
main { overflow-x: clip; }

.section { padding: 88px 0; }
.section--frost { background: var(--frost); }
.section--navy { background: var(--navy); color: var(--white); }

.section-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; line-height: 1; text-wrap: balance;
  font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 1rem;
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.lead-text { color: var(--navy-soft); font-size: 1.08rem; max-width: 36rem; }
.eyebrow { font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); margin-bottom: .7rem; }
.eyebrow--navy { color: var(--navy-soft); }
.link-ice { color: var(--ice); }
.link-ice:hover { color: #fff; }

/* Emojis dibujados como imágenes SVG (ver js/emojis.js); escalan con el font-size del contenedor */
.emo { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex: 0 0 auto; pointer-events: none; }

/* Todos los emojis decorativos usan la misma fuente */
.freezer-door span, .emoji-stack span, .pitem-emoji, .pcard-emoji, .group-title span,
.iqf-art span, .biz-emoji { font-family: var(--font-emoji); font-style: normal; }

/* ---------- Botones ---------- */
.btn-navy { --bs-btn-bg: var(--navy); --bs-btn-color: #fff; --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy-soft); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--navy-soft);
  --bs-btn-active-bg: var(--navy-deep); --bs-btn-active-color: #fff; font-weight: 700; }
/* Botón principal: rojo de la marca */
.btn-ice { --bs-btn-bg: var(--red); --bs-btn-color: #fff; --bs-btn-border-color: var(--red);
  --bs-btn-hover-bg: var(--red-dark); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--red-dark);
  --bs-btn-active-bg: var(--red-dark); --bs-btn-active-color: #fff; font-weight: 800; }
.btn-wa { --bs-btn-bg: var(--wa); --bs-btn-color: #fff; --bs-btn-border-color: var(--wa);
  --bs-btn-hover-bg: #17914a; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #17914a;
  --bs-btn-active-bg: #127a3e; --bs-btn-active-color: #fff; font-weight: 700; }
.btn-outline-navy { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-bg: #fff;
  --bs-btn-hover-bg: var(--navy); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--navy);
  --bs-btn-active-bg: var(--navy-deep); --bs-btn-active-color: #fff; border-width: 2px; font-weight: 700; }
.lista-descarga-fecha { display: block; font-size: .78rem; font-weight: 600; opacity: .8; }

/* ---------- Top bar + nav ---------- */
.topbar { background: var(--navy-deep); color: var(--ice-soft); font-size: .82rem; padding: .45rem 0; }
.topbar a { color: var(--ice-soft); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }

.main-nav { background: var(--navy); padding: .5rem 0 calc(.5rem + 4px); }
.main-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tricolor); }
.logo-mark { width: 56px; height: 56px; flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.logo-mark--lg { width: 76px; height: 76px; }
img.logo-mark { object-fit: contain; } /* logo subido desde el panel */
.brand-text { font-family: var(--font-script); line-height: 1; font-size: 1.6rem; color: #fff; display: inline-flex; flex-direction: column; }
.brand-text small { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--ice); font-size: .6rem; margin-top: .2rem; }
.main-nav .nav-link { color: rgba(255,255,255,.85); font-weight: 600; padding-inline: .7rem !important; white-space: nowrap; }
.main-nav .btn { white-space: nowrap; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--ice); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 72px 0 0;
  background:
    radial-gradient(900px 420px at 85% 15%, rgba(142,201,247,.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.6rem, 10vw, 7rem); line-height: .9; margin-bottom: 1rem; }
.rule-row { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.1rem, 2.6vw, 1.75rem); color: var(--ice); margin-bottom: .7rem; line-height: 1; white-space: nowrap; }
.rule-row .rule { flex: 1; height: 4px; background: var(--tricolor); border-radius: 4px; max-width: 80px; min-width: 20px; }
.hero-sub { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 800; margin-bottom: .5rem; }
.hero-lead { font-size: 1.08rem; color: var(--ice-soft); max-width: 32rem; margin-bottom: 1.75rem; }
.hero-wa { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.hero-wa i { font-size: 2rem; color: var(--wa); }
.hero-wa span { display: flex; flex-direction: column; font-size: .85rem; color: var(--ice-soft); line-height: 1.2; }
.hero-wa strong { color: #fff; font-size: 1rem; }
.hero-wa:hover strong { text-decoration: underline; }

.freezer { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px;
  background: linear-gradient(180deg, #DDEFFD, #B9DDF8); border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); max-width: 560px; margin-left: auto; }
.freezer-door { display: grid; gap: 8px; padding: 14px 8px; border-radius: 12px; position: relative;
  background: linear-gradient(115deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.25) 40%, rgba(255,255,255,.55) 100%);
  border: 2px solid rgba(255,255,255,.9); }
.freezer-door::after { content: ""; position: absolute; right: 6px; top: 30%; width: 4px; height: 40%; border-radius: 4px; background: #9CB6CE; }
.freezer-door span { font-size: clamp(1.6rem, 3.6vw, 2.4rem); text-align: center; filter: saturate(.85) drop-shadow(0 3px 2px rgba(10,31,68,.15)); }
.temp-seal { position: absolute; left: -30px; bottom: -26px; width: 118px; height: 118px; border-radius: 50%;
  background: var(--navy); border: 4px solid var(--ice); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-transform: uppercase; font-size: .6rem; font-weight: 800;
  letter-spacing: .12em; transform: rotate(-10deg); box-shadow: var(--shadow); }
.temp-seal .deg { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 0; line-height: 1; color: var(--ice); }

.hero-stats { list-style: none; margin: 64px 0 0; padding: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid rgba(142,201,247,.3); }
.hero-stats li { display: flex; align-items: center; gap: .8rem; }
.hero-stats strong { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; color: var(--ice); line-height: 1; min-width: 2.2rem; }
.hero-stats strong i { font-size: 1.8rem; }
.hero-stats span { font-weight: 600; color: var(--ice-soft); font-size: .95rem; line-height: 1.25; }

/* ---------- Propuesta ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--tricolor-light); margin-bottom: 18px; }
.pillar i { font-size: 2rem; color: var(--navy-soft); }
.pillar h3 { font-size: 1.1rem; font-weight: 800; margin: .6rem 0 .3rem; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Resumen de líneas ---------- */
.line-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.line-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: clip; background: var(--navy-soft);
  color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.line-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); color: #fff; }
.line-card-media { aspect-ratio: 4 / 3; background: var(--tile); display: grid; place-items: center; }
.line-card-media img:not(.emo) { width: 100%; height: 100%; object-fit: cover; }
.line-card-body { padding: 16px 18px 18px; }
.line-brand { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.line-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; line-height: 1; margin: .3rem 0 .4rem; }
.line-count { font-size: .9rem; color: var(--ice-soft); }

.emoji-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.emoji-stack span { font-size: 3rem; line-height: 1.1; text-align: center; filter: drop-shadow(0 6px 6px rgba(10,31,68,.18)); }
.emoji-stack span:nth-child(2), .emoji-stack span:nth-child(3) { transform: translateY(6px) rotate(-6deg); }

/* ---------- Secciones de línea ---------- */
.line--alt { background: var(--frost); }
.line-media { border-radius: 26px; background: var(--tile); aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: clip; position: relative; max-width: 100%; }
.line-media::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%; border-top: 5px solid rgba(255,255,255,.7); border-radius: 50% 50% 0 0; }
.line-media img:not(.emo) { width: 100%; height: 100%; object-fit: cover; }
.line-media .emoji-stack { position: relative; z-index: 1; }
.line-media .emoji-stack span { font-size: clamp(3.5rem, 8vw, 5.5rem); }
.presentacion { display: inline-flex; align-items: center; gap: .55rem; background: var(--navy); color: #fff; font-weight: 700;
  border-radius: 999px; padding: .5rem 1rem; margin: .4rem 0 0; }
.presentacion i { color: var(--ice); }

.line-groups { display: grid; gap: 28px; margin-top: 48px; }
.line-groups.cols-2 { grid-template-columns: 3fr 2fr; }
.line-groups.cols-3 { grid-template-columns: repeat(3, 1fr); }
.group-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid var(--tile); }

.plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.line-groups.cols-2 .group:first-child .plist { grid-template-columns: 1fr 1fr; }
.pitem { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--ice-soft); border-radius: 12px; padding: .65rem .85rem; font-weight: 600; min-width: 0; }
.line--alt .pitem { border-color: #fff; }
.pitem-emoji { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tile); font-size: 1.15rem; flex: 0 0 auto; }
.pitem > i { color: var(--navy-soft); }

.pcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pcard { display: flex; gap: 14px; background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--ice-soft); min-width: 0; }
.line--alt .pcard { border-color: #fff; }
.pcard-emoji { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--tile); font-size: 1.8rem; flex: 0 0 auto; }
.pcard h4 { font-size: 1.02rem; font-weight: 800; margin: 0 0 .25rem; }
.pcard p { color: var(--muted); font-size: .92rem; margin: 0 0 .5rem; }
.pill { display: inline-block; background: var(--frost); color: var(--navy); border: 1px solid var(--ice-soft); font-size: .75rem; font-weight: 800; border-radius: 999px; padding: .15rem .6rem; }

.line-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; border-radius: var(--radius); border: 2px dashed var(--ice); }
.line-cta span { font-weight: 700; }

/* ---------- IQF ---------- */
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--navy-soft); }
.checks i { color: var(--navy); font-size: 1.2rem; line-height: 1.3; }
.iqf-art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iqf-block, .iqf-loose { border-radius: var(--radius); padding: 22px; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.iqf-block { background: var(--ice-soft); }
.iqf-block span { font-size: 2.6rem; letter-spacing: -1.2rem; padding-right: 1.2rem; background: rgba(255,255,255,.7); border-radius: 14px; padding: 18px 1.6rem 18px 18px; filter: saturate(.6); }
.iqf-block .emo + .emo { margin-left: -.42em; }
.iqf-loose { background: var(--navy); color: #fff; flex-direction: row; flex-wrap: wrap; align-content: center; }
.iqf-loose span { font-size: 2.2rem; }
.iqf-loose span:nth-child(odd) { transform: translateY(-8px) rotate(12deg); }
.iqf-art small { width: 100%; font-weight: 700; font-size: .85rem; }
.iqf-block small { color: var(--navy-soft); }
.iqf-loose small { color: var(--ice); }

/* ---------- A quién vendemos ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.biz { grid-column: span 2; position: relative; border-radius: var(--radius); padding: 22px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; overflow: clip; background: var(--navy); color: #fff; }
.biz--d, .biz--e { grid-column: span 3; }
.biz--b, .biz--d { background: var(--navy-soft); }
.biz--c { background: var(--ice); color: var(--navy); }
.biz-emoji { position: absolute; top: 14px; right: 16px; font-size: 4.6rem; line-height: 1; transform: rotate(-8deg); }
.biz h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; line-height: 1; margin-bottom: .4rem; }
.biz h3::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: var(--tricolor); margin-bottom: .6rem; }
.biz p { margin: 0; font-size: .95rem; color: var(--ice-soft); max-width: 30rem; }
.biz--c p { color: var(--navy-soft); }

/* ---------- Por qué comprarnos ---------- */
.reasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reasons li { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--frost); }
.reasons li:last-child { grid-column: span 2; background: var(--navy); color: #fff; }
.reasons li:last-child p { color: var(--ice-soft); }
.reasons li:last-child i { background: var(--ice); color: var(--navy); }
.reasons i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--ice); font-size: 1.25rem; flex: 0 0 auto; }
.reasons h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .2rem; }
.reasons p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Retiro (franja destacada) ---------- */
.pickup { background: var(--ice); color: var(--navy); padding: 64px 0; position: relative; overflow: clip; }
.pickup .container { position: relative; }
.pickup-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1; text-wrap: balance; }
.pickup p { font-size: 1.08rem; color: var(--navy-soft); }
.pickup-card { background: #fff; border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.pickup-card > div { display: flex; gap: 14px; align-items: flex-start; }
.pickup-card > div > i { font-size: 1.4rem; color: var(--navy); }
.pickup-card small { display: block; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.pickup-card strong { font-size: 1.05rem; }
.pickup-card .btn { justify-self: start; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; position: relative; }
.steps li { background: var(--frost); border-radius: var(--radius); padding: 28px; position: relative; }
.step-n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--ice); font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; font-weight: 800; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Formulario ---------- */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.contact-list i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--ice); flex: 0 0 auto; }
.lead-form { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.lead-form .form-label { font-weight: 700; font-size: .9rem; }
.lead-form legend.form-label { float: none; margin-bottom: .6rem; }
.lead-form .form-control { border: 2px solid var(--ice-soft); border-radius: 12px; height: 46px; }
.lead-form .form-control:focus { border-color: var(--ice); box-shadow: 0 0 0 .2rem rgba(142,201,247,.35); }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.interest { margin: 0; padding: .65rem .8rem .65rem 2.4rem; border: 2px solid var(--ice-soft); border-radius: 12px; }
.interest:last-child { grid-column: span 2; }
.interest .form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-note { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }

/* ---------- CTA final ---------- */
.final-cta { background: var(--navy); color: #fff; text-align: center; padding: 104px 0; position: relative; overflow: clip; }
.final-cta::before, .final-cta::after { content: ""; position: absolute; left: -10%; right: -10%; height: 220px; border-radius: 50%; border: 6px solid var(--ice); opacity: .35; }
.final-cta::before { top: -170px; border-color: var(--green); }
.final-cta::after { bottom: -170px; border-color: var(--red); }
.final-cta .container { position: relative; }
.final-cta h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: .95; max-width: 20ch; margin: 0 auto 1rem; text-wrap: balance; }
.final-sub { font-size: 1.2rem; color: var(--ice-soft); max-width: 40rem; margin: 0 auto .5rem; }
.final-tags { font-weight: 800; color: var(--ice); letter-spacing: .04em; margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--ice-soft); padding-top: 56px; }
.footer h4 { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: .8rem; }
.footer a { display: block; color: var(--ice-soft); text-decoration: none; font-size: .92rem; margin-bottom: .35rem; }
.footer .d-flex a { display: inline; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 16px 0; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1030; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 25px -8px rgba(0,0,0,.5); }
.wa-float:hover { color: #fff; transform: scale(1.06); }


/* ---------- Pedido (carrito) ---------- */
.btn-icon { color: #fff; font-size: 1.3rem; border: 0; padding: .35rem .55rem; }
.btn-icon:hover, .btn-icon:focus-visible { color: var(--ice); }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--red); color: #fff; font-size: .7rem; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

.pitem-name { flex: 1; min-width: 0; }
.item-ctrl { flex: 0 0 auto; }
.pcard { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "thumb body body" "thumb pill ctrl"; column-gap: 14px; row-gap: 10px; align-items: start; }
.pcard .pcard-emoji { grid-area: thumb; }
.pcard-body { grid-area: body; min-width: 0; }
.pcard-body p { margin-bottom: 0; }
.pcard > .pill { grid-area: pill; align-self: center; justify-self: start; }
.pcard > .item-ctrl { grid-area: ctrl; align-self: end; }
.pitem.in-cart, .pcard.in-cart { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }

.add-btn { display: inline-flex; align-items: center; gap: .35rem; height: 34px; padding: 0 .8rem; border-radius: 999px;
  border: 2px solid var(--navy); background: #fff; color: var(--navy); font-weight: 800; font-size: .85rem; transition: background .15s, color .15s; }
.add-btn:hover { background: var(--navy); color: #fff; }
.qty { display: inline-flex; align-items: center; justify-content: space-between; height: 34px; min-width: 104px; border-radius: 999px; background: var(--navy); color: #fff; }
.qty button { background: none; border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: .95rem; display: grid; place-items: center; }
.qty button:hover { background: var(--navy-soft); }
.qty output { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 1.5em; text-align: center; }

/* Disponibilidad: se atenúa la imagen, el texto mantiene contraste AA */
.is-unavailable .thumb-emoji { opacity: .45; filter: grayscale(.7); }
.is-unavailable .pitem-name, .is-unavailable .pcard-body h4 { color: var(--muted); }
.stock-tag { display: flex; align-items: center; gap: .3rem; width: fit-content; margin-top: .35rem; padding: .15rem .55rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; line-height: 1.4; }
.stock-tag--sin { background: #FDECEC; color: var(--red-dark); }
.stock-tag--prox { background: #FFF1CC; color: #6B4300; }
/* Precios: debajo del nombre, para que nombre + precio + control no desborden a 375 px */
.price { display: block; margin-top: .3rem; color: var(--navy); font-weight: 800; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.price small { color: var(--muted); font-weight: 600; font-size: .8em; }
.price--ask { color: var(--muted); font-weight: 600; font-size: .85rem; }
.precios-nota { display: flex; gap: .45rem; align-items: flex-start; color: var(--muted); font-size: .88rem; margin: .75rem 0 0; }
.precios-nota i { color: var(--navy-soft); }
.notify-btn { display: inline-flex; align-items: center; gap: .35rem; height: 34px; padding: 0 .8rem; border-radius: 999px; text-decoration: none;
  border: 2px solid #157A3E; background: #fff; color: #157A3E; font-weight: 800; font-size: .85rem; transition: background .15s, color .15s; }
.notify-btn:hover, .notify-btn:focus-visible { background: #157A3E; color: #fff; }

.cart-notice { display: flex; gap: .6rem; align-items: flex-start; background: #FFF1CC; color: #6B4300; border-radius: 12px; padding: .7rem .9rem; margin-bottom: 12px; font-size: .88rem; }
.cart-notice[hidden] { display: none; }
.cart-notice i { font-size: 1.1rem; }
.cart-notice p { flex: 1; margin: 0; }
.cart-notice .btn-close { font-size: .7rem; padding: .35rem; }
.stock-toast { position: fixed; z-index: 1090; left: 50%; transform: translateX(-50%); top: calc(var(--nav-h, 64px) + 12px);
  width: max-content; max-width: calc(100% - 32px); padding: .7rem 1rem; border-radius: 12px; background: var(--navy-deep); color: #fff;
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow); }
.stock-toast[hidden] { display: none; }

.offcanvas-title { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 1.6rem; }
.cart-group { margin-bottom: 18px; }
.cart-group h3 { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-soft);
  padding-bottom: 6px; border-bottom: 3px solid var(--tile); margin-bottom: 4px; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ice-soft); }
.cart-item .thumb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--tile); flex: 0 0 auto; font-family: var(--font-emoji); }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-size: .9rem; font-weight: 600; line-height: 1.25; }
.cart-item .sub { font-size: .82rem; color: var(--muted); }
.cart-empty { text-align: center; color: var(--muted); padding: 48px 12px; }
.cart-empty span { font-size: 3rem; display: block; font-family: var(--font-emoji); }
.cart-footer { border-top: 2px solid var(--ice-soft); padding-top: 14px; }
.cart-footer .form-label { font-weight: 700; font-size: .85rem; margin-bottom: .25rem; }
.cart-footer .form-control { border: 2px solid var(--ice-soft); border-radius: 12px; }
.cart-pickup { display: flex; gap: .6rem; align-items: flex-start; background: var(--frost); border-radius: 12px; padding: .7rem .9rem; font-size: .88rem; }
.cart-pickup i { color: var(--navy); font-size: 1.1rem; }
.cart-total { margin-bottom: 12px; }
.cart-total[hidden] { display: none; }
.cart-total-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem .75rem; margin: 0; color: var(--navy); }
.cart-total-row span { font-weight: 700; }
.cart-total-row strong { font-size: 1.2rem; font-weight: 800; text-align: right; }
.cart-total-nota { color: var(--muted); font-size: .8rem; margin: .2rem 0 0; }
.cart-total-nota:empty { display: none; }

.order-bar { position: fixed; z-index: 1029; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(480px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; border-radius: 16px;
  background: var(--red); color: #fff; font-weight: 800; box-shadow: 0 14px 30px -10px rgba(181,29,37,.65); text-align: left; }
.order-bar:hover { background: var(--red-dark); }
.ob-count { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--red); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.ob-count.bump { animation: bump .35s ease; }
.ob-label { flex: 1; font-size: 1.02rem; }
.ob-summary { font-weight: 600; font-size: .85rem; opacity: .9; white-space: nowrap; }
body:has(.order-bar:not([hidden])) .wa-float { bottom: 92px; }
body:has(.order-bar:not([hidden])) .footer-bottom { padding-bottom: 96px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .line-groups.cols-2 .group:first-child .plist { grid-template-columns: 1fr; }
  .main-nav .nav-link { padding-inline: .5rem !important; font-size: .95rem; }
}
@media (max-width: 991.98px) {
  .section { padding: 64px 0; }
  .main-nav .navbar-collapse { padding: .5rem 0 1rem; }
  .line-cards { grid-template-columns: repeat(2, 1fr); }
  .line-groups.cols-2, .line-groups.cols-3 { grid-template-columns: 1fr; }
  .biz, .biz--d, .biz--e { grid-column: span 3; }
  .biz--e { grid-column: span 6; }
  .freezer { margin: 0 auto 20px; }
}
@media (max-width: 767.98px) {
  .pillars, .steps, .hero-stats { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .reasons li:last-child { grid-column: auto; }
  .biz, .biz--d, .biz--e { grid-column: span 6; min-height: 190px; }
  .temp-seal { left: 6px; width: 96px; height: 96px; font-size: .5rem; }
  .temp-seal .deg { font-size: 1.9rem; }
}
@media (max-width: 575.98px) {
  .hero { padding-top: 48px; }
  .hero-stats { margin-top: 40px; }
  .line-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .line-card h3 { font-size: 1.4rem; }
  .line-card-body { padding: 12px; }
  .emoji-stack span { font-size: 2.2rem; }
  .interest-grid { grid-template-columns: 1fr; }
  .interest:last-child { grid-column: auto; }
  .lead-form { padding: 20px; }
  .iqf-art { grid-template-columns: 1fr; }
  .final-cta { padding: 80px 0; }
}

/* ==========================================================
   Celular: patrones de app de pedidos
   ========================================================== */
.m-tabs, .sheet-handle { display: none; }
.m-noresults { text-align: center; padding: 40px 16px 64px; }
.m-noresults span { font-size: 2.6rem; display: block; font-family: var(--font-emoji); }
.m-noresults p { color: var(--muted); }

@media (max-width: 767.98px) {
  html { scroll-padding-top: calc(var(--nav-h, 76px) + 62px); }

  /* Hero más corto: sin ilustración, datos en chips deslizables */
  .hero { padding-top: 36px; }
  .hero .freezer { display: none; }
  .hero-stats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 28px calc(-1 * var(--bs-gutter-x) * .5) 0;
    padding: 0 calc(var(--bs-gutter-x) * .5) 22px; border-top: 0; scrollbar-width: none; }
  .hero-stats::-webkit-scrollbar { display: none; }
  .hero-stats li { flex: 0 0 auto; scroll-snap-align: start; background: rgba(255,255,255,.08); border: 1px solid rgba(157,203,244,.25); border-radius: 999px; padding: 8px 14px 8px 10px; gap: .5rem; }
  .hero-stats strong { font-size: 1.3rem; min-width: 0; }
  .hero-stats strong i { font-size: 1.1rem; }
  .hero-stats span { font-size: .85rem; white-space: nowrap; }

  /* Carruseles horizontales con la siguiente tarjeta asomando */
  .pillars, .biz-grid, .reasons, .steps {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none;
    margin-inline: calc(-1 * var(--bs-gutter-x) * .5); padding: 4px calc(var(--bs-gutter-x) * .5) 8px;
    scroll-padding-inline: calc(var(--bs-gutter-x) * .5);
  }
  .pillars::-webkit-scrollbar, .biz-grid::-webkit-scrollbar, .reasons::-webkit-scrollbar, .steps::-webkit-scrollbar { display: none; }
  .pillars > *, .biz-grid > *, .reasons > *, .steps > * { flex: 0 0 82%; scroll-snap-align: start; }
  .pillar { background: var(--frost); border-radius: var(--radius); padding: 18px; }
  .biz, .biz--d, .biz--e { min-height: 200px; }
  .reasons li:last-child { grid-column: auto; }
  .section-head { margin-bottom: 1.2rem; }

  /* Pestañas fijas de categorías */
  .m-tabs { display: block; position: sticky; top: var(--nav-h, 76px); z-index: 1010; background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--ice-soft); box-shadow: 0 8px 18px -14px rgba(12,31,74,.5); }
  .m-tabs-row, .m-search { display: flex; align-items: center; gap: 8px; height: 58px; }
  .m-tabs-row[hidden], .m-search[hidden] { display: none; }
  .m-search-btn { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--frost); color: var(--navy); font-size: 1.05rem; }
  .m-tabs-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding-right: 8px; }
  .m-tabs-list::-webkit-scrollbar { display: none; }
  .m-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
    background: #fff; border: 1.5px solid var(--ice-soft); color: var(--navy); font-weight: 800; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s; }
  .m-tab-emoji { font-family: var(--font-emoji); font-size: 1.05rem; }
  .m-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
  .m-tab-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; display: grid; place-items: center; }
  .m-tab-count[hidden] { display: none; }
  .m-search { background: var(--frost); border-radius: 999px; padding: 0 6px 0 16px; height: 44px; margin: 7px 0; }
  .m-search i { color: var(--muted); }
  .m-search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1rem; outline: none; color: var(--ink); }
  .m-search button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); }

  /* Secciones de línea compactas */
  .line { padding: 32px 0 28px; }
  .line--alt { background: #fff; border-top: 8px solid var(--frost); }
  .line-head { --bs-gutter-y: 0; }
  .line-head .col-lg-6:last-child { display: none; }
  .line .section-title { font-size: 2rem; margin-bottom: .5rem; }
  .line .lead-text { font-size: .95rem; margin-bottom: .6rem; }
  .line .presentacion { font-size: .85rem; padding: .35rem .8rem; }
  .line-groups { margin-top: 18px; gap: 18px; }
  .group-title { font-size: 1rem; margin-bottom: 0; padding-bottom: 8px; border-bottom-width: 2px; }
  .is-searching .line-head, .is-searching .line-cta { display: none; }
  .is-searching .line { padding: 18px 0 8px; border-top: 0; }

  /* Productos como filas de app: texto a la izquierda, imagen a la derecha con "+" */
  .plist, .pcards, .line-groups.cols-2 .group:first-child .plist { display: block; }
  .pitem, .pcard, .line--alt .pitem, .line--alt .pcard {
    position: relative; display: grid; grid-template-columns: 1fr 84px; grid-template-areas: "body thumb" "pill thumb";
    column-gap: 14px; row-gap: 4px; align-items: start; min-height: 108px; padding: 14px 0; margin: 0;
    background: none; border: 0; border-bottom: 1px solid var(--ice-soft); border-radius: 0; box-shadow: none; font-weight: 400; }
  .pitem { grid-template-areas: "body thumb"; align-items: center; }
  .pitem.in-cart, .pcard.in-cart { box-shadow: none; border-color: var(--ice-soft); }
  .thumb-emoji, .pitem .pitem-emoji, .pcard .pcard-emoji { grid-area: thumb; width: 84px; height: 84px; border-radius: 16px; font-size: 2.5rem; background: var(--tile); display: grid; place-items: center; }
  .in-cart .thumb-emoji { box-shadow: 0 0 0 2px var(--navy); }
  .pitem-name { grid-area: body; font-weight: 700; font-size: 1rem; }
  .pcard-body h4 { font-size: 1rem; }
  .pcard-body p { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard > .pill { align-self: start; }
  .item-ctrl { position: absolute; right: -4px; top: 76px; }
  .add-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: #fff; color: var(--navy);
    box-shadow: 0 4px 12px -2px rgba(12,31,74,.35); font-size: 1.1rem; }
  .add-btn span { display: none; }
  .add-btn:hover, .add-btn:active { background: var(--navy); color: #fff; }
  .notify-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: #fff; color: #157A3E;
    box-shadow: 0 4px 12px -2px rgba(12,31,74,.35); font-size: 1.1rem; }
  .notify-btn span { display: none; }
  .pitem-name .stock-tag, .pcard-body .stock-tag { font-size: .75rem; }
  .item-ctrl .qty { box-shadow: 0 4px 12px -2px rgba(12,31,74,.45); min-width: 100px; height: 36px; }
  .item-ctrl .qty button { width: 36px; height: 36px; }

  .line-cta { margin-top: 18px; padding: 0; border: 0; }
  .line-cta > span { display: none; }
  .line-cta .btn { width: 100%; }

  /* Pedido: botón flotante y hoja inferior */
  .wa-float { display: none; }
  body:has(.order-bar:not([hidden])) .catalog-wrap { padding-bottom: 72px; }
  .m-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
  .order-bar { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .offcanvas.offcanvas-bottom { height: 88dvh; max-height: 88vh; border-radius: 22px 22px 0 0; border-top: 0; }
  .offcanvas-bottom .sheet-handle { display: grid; place-items: center; height: 22px; touch-action: none; }
  .offcanvas-bottom .sheet-handle span { width: 44px; height: 5px; border-radius: 5px; background: var(--ice-soft); }
  .offcanvas-bottom .offcanvas-header { padding-top: 4px; touch-action: none; }
  .offcanvas-bottom .offcanvas-body { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

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

/* ---------- Promociones y destacados (spec 005) ---------- */
/* Barra de anuncio: promo principal, arriba de todo y cerrable */
.anuncio { background: var(--red); color: #fff; font-size: .9rem; }
.anuncio-inner { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding-block: .4rem; }
.anuncio-icono { flex: 0 0 auto; }
.anuncio-texto { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anuncio-boton { flex: 0 0 auto; color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.anuncio-boton:hover, .anuncio-boton:focus-visible { color: var(--ice-soft); }
.anuncio-cerrar { flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #fff; display: grid; place-items: center; }
.anuncio-cerrar:hover, .anuncio-cerrar:focus-visible { background: var(--red-dark); }
.anuncio :focus-visible { outline-color: #fff; }

/* Tarjetas de promociones: 1 / 2 / 3 columnas */
.promos-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.promo-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.promo-card-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); display: grid; place-items: center; color: var(--ice); font-size: 3rem; }
.promo-card-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-card-media--color { aspect-ratio: 3 / 1; font-size: 2.4rem; }
.promo-card-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 20px 22px 22px; }
.promo-card-body h3 { font-size: 1.2rem; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.promo-card-body p { color: var(--muted); margin: 0 0 .5rem; white-space: pre-line; overflow-wrap: anywhere; }

/* Insignias: texto + color, nunca solo color */
.badge-insignia { display: inline-block; width: fit-content; margin: 0 .4rem .3rem 0; padding: .1rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; line-height: 1.5; vertical-align: .1em; }
.pcard-body .badge-insignia, .dcard-body .badge-insignia { display: block; }
.badge-insignia--nuevo { background: #E3F4E7; color: #17692F; }
.badge-insignia--mas_vendido { background: var(--frost); color: var(--navy); border: 1px solid var(--ice-soft); }
.badge-insignia--oferta { background: #FDECEC; color: var(--red-dark); }

/* Destacados: grilla en escritorio, fila deslizable con snap en celular */
.destacados-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.dcard { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--ice-soft); border-radius: var(--radius); padding: 16px; min-width: 0; }
.dcard.in-cart { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.dcard-emoji { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--tile); display: grid; place-items: center; font-size: 2.8rem; font-family: var(--font-emoji); }
.dcard-body { flex: 1; min-width: 0; }
.dcard-body h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.dcard-linea { color: var(--navy-soft); font-size: .85rem; font-weight: 600; }
.dcard .item-ctrl { position: static; align-self: flex-start; }
.is-unavailable .dcard-emoji { opacity: .45; filter: grayscale(.7); }
.is-unavailable .dcard-body h3 { color: var(--muted); }

/* Fotos de productos (spec 006): ocupan el lugar del emoji con su mismo tamaño y radio.
   El atenuado de "sin stock" lo heredan de .thumb-emoji / .dcard-emoji. */
.thumb-foto { padding: 0; border: 0; background: none; overflow: hidden; cursor: zoom-in; }
.thumb-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-foto:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.cart-item .thumb { overflow: hidden; }
.cart-item .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Visor de la foto */
.foto-visor .modal-content { position: relative; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--frost); }
/* Sin estirar: una foto chica se ve en su tamaño, centrada */
.foto-visor-img { display: block; max-width: 100%; height: auto; max-height: 70vh; margin: 0 auto; object-fit: contain; }
.foto-visor-cerrar { position: absolute; top: 12px; right: 12px; z-index: 1; width: 1.25rem; height: 1.25rem; padding: .6rem;
  background-color: #fff; border-radius: 50%; opacity: .9; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.foto-visor-pie { padding: 16px 20px 20px; background: #fff; }
.foto-visor-nombre { font-size: 1.15rem; font-weight: 800; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.foto-visor-datos { color: var(--navy-soft); font-size: .9rem; font-weight: 600; margin: 0; }

@media (max-width: 767.98px) {
  .anuncio { font-size: .85rem; }
  .anuncio-detalle { display: none; }
  .destacados { padding: 40px 0 32px; }
  .destacados-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none;
    margin-inline: calc(-1 * var(--bs-gutter-x) * .5); padding: 4px calc(var(--bs-gutter-x) * .5) 8px; scroll-padding-inline: calc(var(--bs-gutter-x) * .5); }
  .destacados-list::-webkit-scrollbar { display: none; }
  .destacados-list > .dcard { flex: 0 0 72%; scroll-snap-align: start; }
  .dcard .add-btn { width: auto; height: 36px; padding: 0 .9rem; border-radius: 999px; border: 2px solid var(--navy); box-shadow: none; }
  .dcard .add-btn span { display: inline; }
}
