/* =========================================================
   Cachai Food — estilos
   Paleta tomada del pitch deck: azul marino + dorado + crema
   ========================================================= */

:root {
  --navy: #13294b;
  --navy-2: #1c3863;
  --navy-3: #0d1e38;
  --gold: #e3962f;
  --gold-2: #f1b356;
  --gold-dark: #b8721a;
  --cream: #f6f3ec;
  --paper: #fffdf9;
  --ink: #18223a;
  --muted: #5d6578;
  --line: #e6e0d4;
  --chile-red: #d52b1e;
  --wa: #25d366;
  --wa-dark: #1da851;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(19, 41, 75, .06), 0 2px 8px rgba(19, 41, 75, .06);
  --shadow: 0 2px 4px rgba(19, 41, 75, .05), 0 12px 32px rgba(19, 41, 75, .10);
  --shadow-lg: 0 24px 60px rgba(13, 30, 56, .25);

  --header-h: 72px;
  --container: 1180px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--navy); }
h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 1.2em; height: 1.2em; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold-2); }

.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* bandera chilena mini */
.flag {
  width: 22px; height: 15px; border-radius: 3px; flex: none; position: relative; overflow: hidden;
  background: linear-gradient(to bottom, #fff 50%, var(--chile-red) 50%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}
.flag::before {
  content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 7.5px; background: #0039a6;
}
.flag::after {
  content: ""; position: absolute; left: 2.6px; top: 2px; width: 3px; height: 3px; background: #fff;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.1;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-gold { background: var(--gold); color: var(--navy-3); box-shadow: 0 6px 20px rgba(227, 150, 47, .35); }
.btn-gold:hover { background: var(--gold-2); }

.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }

.btn-wa { background: var(--wa); color: #06331a; }
.btn-wa:hover { background: #3ee07b; }

.btn-add {
  min-height: 40px; padding: 8px 16px 8px 12px; gap: 6px; font-size: .95rem;
  background: var(--navy); color: #fff;
}
.btn-add:hover { background: var(--navy-2); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: inherit;
  transition: background-color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn .icon { width: 24px; height: 24px; }

.link-btn {
  background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: .85rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--chile-red); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--navy); color: #fff;
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 30, 56, .3); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .01em; }
.brand-name span { color: var(--gold); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem;
  color: rgba(255, 255, 255, .85); transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1);
}
.lang-switch button {
  border: 0; background: transparent; color: rgba(255, 255, 255, .75); font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; min-width: 38px;
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--navy-3); }

.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: var(--navy-3);
  font-size: .72rem; font-weight: 800; box-shadow: 0 0 0 2px var(--navy);
}
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.2) rotate(-6deg); } 60% { transform: scale(.95); } }

.nav-toggle { display: none; }

/* ---------- borde "repulgue" (festoneado como el de la empanada) ---------- */
.scallop { position: relative; }
.scallop::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -15px; height: 16px; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 16px 0, var(--navy) 15px, transparent 16px) repeat-x;
  background-size: 32px 16px;
}
.scallop--top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 16px 16px, var(--navy) 15px, transparent 16px) repeat-x;
  background-size: 32px 16px;
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% 20%, rgba(227, 150, 47, .16), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(28, 56, 99, .9), transparent 70%),
    var(--navy);
  color: #fff;
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 700; }
.hero .lead { color: rgba(255, 255, 255, .8); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }

.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hero-points .icon { color: var(--gold); }

.hero-media { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lg); transform: rotate(1.5deg);
  border: 6px solid rgba(255, 255, 255, .08);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-seal {
  position: absolute; left: -36px; bottom: -32px; width: clamp(104px, 13vw, 150px); height: auto;
  border-radius: 50%; box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px) rotate(-4deg); } }

/* ---------- secciones ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: rgba(255, 255, 255, .78); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 48px); }
.section-head .section-lead { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.section-head--small h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- menú ---------- */
.format-tabs {
  display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto;
  padding: 6px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line);
}
.format-tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem; color: var(--muted);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.format-tabs [role="tab"]:hover { color: var(--navy); }
.format-tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.format-tabs [data-format="hot"][aria-selected="true"] .icon { color: var(--gold); }
.format-tabs [data-format="frozen"][aria-selected="true"] .icon { color: #9fd3ff; }

.format-note { text-align: center; color: var(--muted); margin: 18px auto 40px; max-width: 560px; min-height: 1.6em; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 980px; margin: 0 auto; }

.product-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  animation: rise .45s var(--ease) both;
}
.product-card:nth-child(2) { animation-delay: .06s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.product-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f3dcb5, #e3a85a); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media.no-img img { display: none; }
.product-style {
  position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 253, 249, .94); color: var(--navy); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow-sm);
}
.product-format {
  position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--gold); box-shadow: var(--shadow-sm);
}

.product-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.product-body h3 { font-size: 1.55rem; }
.product-body > p { color: var(--muted); font-size: .98rem; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 3px 10px; border-radius: 999px; background: var(--cream); color: var(--navy);
  font-size: .78rem; font-weight: 500; border: 1px solid var(--line);
}

.options { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: var(--radius); background: var(--cream);
  border: 1.5px solid transparent; transition: border-color .2s, background-color .2s;
}
.option.is-added { border-color: var(--gold); background: #fff8ec; }
.option-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.option-label { font-weight: 500; font-size: .95rem; }
.option-price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy); }

.stepper {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--navy); color: #fff; flex: none;
}
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: transparent; color: #fff; transition: background-color .15s;
}
.stepper button:hover { background: rgba(255, 255, 255, .14); }
.stepper .icon { width: 16px; height: 16px; }
.stepper-qty { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- formatos ---------- */
.formats-grid { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 24px; align-items: stretch; }
.format-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.format-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
}
.format-icon .icon { width: 26px; height: 26px; }
.format-card--hot .format-icon { background: #fff1dd; color: var(--gold-dark); }
.format-card--frozen .format-icon { background: #e6f1fb; color: #2a6db0; }
.format-card h3 { font-size: 1.5rem; margin-bottom: 18px; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.feature-list strong { color: var(--navy); }
.feature-list span { color: var(--muted); font-size: .95rem; }

.formats-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; box-shadow: var(--shadow); }
.formats-photo img { width: 100%; height: 100%; object-fit: cover; }

/* cómo pedir */
.how { margin-top: clamp(72px, 8vw, 104px); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li {
  position: relative; background: var(--paper); border-radius: var(--radius-lg); padding: 30px 26px 28px;
  border: 1px dashed #d6ccb8;
}
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px;
  background: var(--navy); color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .97rem; }

/* ---------- catering ---------- */
#catering { padding-top: clamp(88px, 10vw, 136px); }
.catering-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.catering-copy h2 { margin-bottom: 18px; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list .icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--gold); color: var(--navy-3); margin-top: -1px;
}

.card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.quote-form { padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; }
.quote-form h3 { color: var(--navy); font-size: 1.6rem; margin-bottom: 4px; }

/* ---------- formularios ---------- */
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: .88rem; font-weight: 700; color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type="text"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(227, 150, 47, .18); }
input:user-invalid, textarea:user-invalid { border-color: var(--chile-red); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}

.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented legend { width: 100%; margin-bottom: 6px; }
.segmented label { flex: 1; position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span {
  display: block; text-align: center; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); font-weight: 700; color: var(--muted); cursor: pointer;
}
.segmented input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- nosotros ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 7 / 8; object-fit: cover; box-shadow: var(--shadow); }
.about-photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius-lg);
  background: var(--gold); opacity: .22; z-index: -1;
}
.about-copy h2 { margin-bottom: 20px; }
.about-copy .lead { margin-bottom: 14px; color: var(--ink); }
.about-copy .lead em { color: var(--gold-dark); font-style: italic; font-weight: 700; }
.about-copy > p:not(.lead):not(.eyebrow) { color: var(--muted); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.value { padding: 18px 20px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.value h3 { font-size: 1.08rem; margin-bottom: 4px; }
.value p { color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* ---------- contacto ---------- */
.contact-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px);
  background-image: radial-gradient(600px 300px at 100% 0%, rgba(227, 150, 47, .22), transparent 70%);
  box-shadow: var(--shadow-lg);
}
.contact-card.is-single { grid-template-columns: 1fr; text-align: center; }
.contact-card.is-single .lead { margin-left: auto; margin-right: auto; }
.contact-card h2 { color: #fff; margin-bottom: 14px; }
.contact-card .lead { color: rgba(255, 255, 255, .8); max-width: 32em; margin-bottom: 28px; }
.contact-info { margin: 0; display: grid; gap: 18px; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); }
.contact-info dt { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.contact-info dd { margin: 4px 0 0; font-size: 1.05rem; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); transition: background-color .2s;
}
.socials a:hover { background: var(--gold); color: var(--navy-3); text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-3); color: rgba(255, 255, 255, .72); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 50%; }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.25rem; }
.footer-brand p { font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; font-size: .85rem; }

/* ---------- botón flotante WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-fab .icon { width: 32px; height: 32px; }
.wa-fab:hover { transform: scale(1.07); box-shadow: 0 14px 34px rgba(37, 211, 102, .55); }

/* ---------- carrito (panel lateral) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(13, 30, 56, .55);
  opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px);
}
.overlay.is-visible { opacity: 1; }

.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .35s var(--ease); visibility: hidden;
}
.cart.is-open { transform: none; visibility: visible; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 16px 16px 24px; background: var(--navy); color: #fff; flex: none;
}
.cart-head h2 { color: #fff; font-size: 1.5rem; }

.cart-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 32px; }

.cart-empty { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 56px 0; color: var(--muted); }
.cart-empty img { border-radius: 50%; opacity: .9; }

.cart-group { padding: 16px 0 4px; }
.cart-group + .cart-group { border-top: 1px solid var(--line); }
.cart-group-title {
  display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px;
}
.cart-group ul { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.cart-item img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #f3dcb5; }
.cart-item-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; align-items: flex-start; }
.cart-item-info strong { color: var(--navy); font-size: .98rem; }
.cart-item-info span { color: var(--muted); font-size: .85rem; }
.cart-item-info .link-btn { font-size: .78rem; padding: 2px 0 0; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item-side .stepper button { width: 30px; height: 30px; }
.cart-item-price { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.cart-total { margin: 12px 0 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--cream); display: grid; gap: 6px; }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--navy); }
.cart-total-row strong { font-family: var(--font-display); font-size: 1.6rem; }
.cart-min { font-size: .85rem; font-weight: 500; color: var(--muted); }
.cart-min.is-warning { color: var(--chile-red); }

.checkout { display: grid; gap: 14px; margin-top: 24px; }
.checkout h3 { font-size: 1.25rem; }
.checkout .link-btn { justify-self: center; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 120;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 500; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .3s;
}
.toast .icon { color: var(--gold); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .formats-grid { grid-template-columns: 1fr 1fr; }
  .formats-photo { grid-column: 1 / -1; aspect-ratio: 16 / 7; min-height: 0; }
}

@media (max-width: 960px) {
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy); padding: 8px var(--gutter) 20px; box-shadow: 0 16px 32px rgba(13, 30, 56, .35);
    border-top: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px 8px; border-radius: 10px; font-size: 1.05rem; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-grid; }

  .hero-grid, .catering-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero-seal { left: -8px; }
  .about-photo { max-width: 520px; margin: 0 auto 24px; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; --gutter: 16px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.15rem; }
  .header-inner { gap: 12px; }

  .product-grid, .formats-grid, .steps, .values { grid-template-columns: 1fr; }
  .formats-photo { aspect-ratio: 4 / 3; }
  .format-tabs { width: 100%; }
  .format-tabs [role="tab"] { flex: 1; justify-content: center; padding: 12px 10px; font-size: .88rem; text-align: center; }
  .format-tabs [role="tab"] .icon { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-photo::before { inset: 16px -10px -16px 16px; }
  .wa-fab { width: 54px; height: 54px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .cart-body { padding: 8px 16px 28px; }
  .cart-head { padding-left: 16px; }
}

@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 4px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1.05rem; }
  .icon-btn { width: 40px; height: 40px; }
  .lang-switch button { padding: 5px 7px; min-width: 32px; }
}

@media (max-width: 330px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
