/* Dulcemar - Fábrica de Masas */
:root {
  --cream: #fbf4ea;
  --cream-2: #f7ecdd;
  --card: #fffaf3;
  --line: #ecdcc6;
  --brown: #3e1a12;
  --brown-2: #5b2a1a;
  --wine: #7a2a17;
  --btn: linear-gradient(180deg, #8d4a2b 0%, #6c3018 100%);
  --btn-solid: #74361d;
  --gold: #c69a52;
  --gold-soft: #e3c38f;
  --text: #4b3a33;
  --muted: #6d5c54;
  --ico-bg: #f6e4cf;
  --ico: #8a2b1a;
  --green: #22b04b;
  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --script: "Parisienne", cursive;
  --hand: "Caveat", cursive;
  --wrap: 1224px;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(92, 52, 24, .10);
  /* animations */
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 560ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --scroll-progress: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }
main > section, .site-footer { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); color: var(--brown); margin: 0; line-height: 1.02; letter-spacing: -.015em; }
h2 { font-size: 42px; font-weight: 800; }
p { margin: 0; }
svg { width: 1em; height: 1em; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ============ animaciones base ============ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; }
.reveal.is-visible { animation: fade-up var(--dur-slow) var(--ease) forwards; }
.reveal-fade { opacity: 0; }
.reveal-fade.is-visible { animation: fade-in var(--dur-base) var(--ease) forwards; }
.reveal-scale { opacity: 0; }
.reveal-scale.is-visible { animation: scale-in var(--dur-base) var(--ease) forwards; }

/* stagger delays */
.reveal:nth-child(1) { animation-delay: 0ms; }
.reveal:nth-child(2) { animation-delay: 80ms; }
.reveal:nth-child(3) { animation-delay: 160ms; }
.reveal:nth-child(4) { animation-delay: 240ms; }
.reveal:nth-child(5) { animation-delay: 320ms; }
.reveal:nth-child(6) { animation-delay: 400ms; }
.reveal:nth-child(7) { animation-delay: 480ms; }
.reveal:nth-child(8) { animation-delay: 560ms; }

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1000;
  background: var(--btn); transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  pointer-events: none;
}

/* header sticky state */
.site-header.is-scrolled {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(251, 245, 236, .98);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  animation: slide-down var(--dur-base) var(--ease);
}
.site-header.is-scrolled .header-in { padding-top: 8px; }

/* card hover lift */
.cat-card, .prod-card, .fmt-card, .why-item, .feature {
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.cat-card:hover, .prod-card:hover, .fmt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(92, 52, 24, .14);
}
.cat-card img, .prod-card img, .fmt-card img {
  transition: transform var(--dur-slow) var(--ease);
}
.cat-card:hover img, .prod-card:hover img, .fmt-card:hover img {
  transform: scale(1.03);
}

/* button ripple */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.25);
  transform: scale(0); border-radius: inherit;
  opacity: 0; pointer-events: none;
}
.btn:active::after {
  animation: ripple var(--dur-fast) ease-out forwards;
}
@keyframes ripple {
  to { transform: scale(2.5); opacity: 0; }
}

/* counter animation */
.counter { display: inline-block; }

/* parallax helper */
.parallax { will-change: transform; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-weight: 500; font-size: 19px;
  height: 52px; padding: 0 28px; border-radius: 9px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 4px 12px rgba(108, 48, 24, .28), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { box-shadow: 0 8px 18px rgba(108, 48, 24, .32); }
.btn-outline { background: rgba(255, 252, 247, .85); color: var(--wine); border: 1.5px solid #8d4a2b; }
.btn-ghost { height: 44px; font-size: 16px; color: var(--wine); border: 1.5px solid #8d4a2b; background: #fffaf3; padding: 0 24px; }
.btn-sm { height: 38px; font-size: 14.5px; padding: 0 18px; gap: 8px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-wide { width: 100%; height: 42px; font-size: 17px; }
.btn-wa { width: 100%; height: 46px; background: var(--green); color: #fff; font-size: 16.5px; border-radius: 10px; box-shadow: 0 4px 12px rgba(34, 176, 75, .3); }
.btn-wa svg:first-child { width: 28px; height: 28px; }
.round-btn {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--btn); color: #fff; box-shadow: 0 2px 6px rgba(108, 48, 24, .3);
  transition: transform .15s;
}
.round-btn svg { width: 16px; height: 16px; }
.round-btn:hover { transform: scale(1.08); }

/* notas manuscritas */
.note { font-family: var(--hand); font-weight: 500; color: var(--brown); line-height: 1.02; }
.note svg { width: .9em; height: .9em; color: var(--wine); vertical-align: -.05em; }

/* espigas decorativas */
.spike { position: absolute; color: #d9a35f; opacity: .55; width: 60px; height: 220px; pointer-events: none; z-index: 0; }

/* ---------- cabecera ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; }
.header-in { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 4px; }
.brand { display: flex; align-items: center; gap: 0; margin-left: -14px; }
.brand-emblem { width: 194px; height: 175px; flex: none; filter: drop-shadow(0 2px 3px rgba(80, 40, 10, .15)); }
.brand-text { display: flex; flex-direction: column; align-items: center; margin-top: -10px; }
.brand-name { font-family: "Great Vibes", cursive; font-size: 96px; line-height: .9; color: var(--brown-2); letter-spacing: -.01em; }
.brand-sub { font-family: var(--sans); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--brown-2); margin-top: -4px; padding-left: 40px; }
.nav { display: flex; align-items: center; gap: 44px; margin-top: 34px; font-family: var(--sans); font-weight: 500; font-size: 17.5px; color: #2f1d16; }
.nav > a, .nav-drop-btn { position: relative; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-btn svg { width: 16px; height: 16px; }
.nav a.is-active { color: var(--wine); }
.nav a.is-active::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -6px; height: 4px; border-radius: 3px; background: var(--wine); }
.nav > a:hover, .nav-drop-btn:hover { color: var(--wine); }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 8px;
  background: #fffaf3; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  display: none; flex-direction: column;
}
.nav-drop-menu a { padding: 9px 12px; border-radius: 8px; }
.nav-drop-menu a:hover { background: var(--cream-2); }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: flex; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 550px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #e6eff4 0%, #f6efe4 42%, #f9f1e6 100%);
}
/* foto: se ajusta al alto y se funde por la izquierda y por abajo */
.hero::before {
  content: ""; position: absolute; z-index: -2; top: 0; right: 0; height: 112%;
  aspect-ratio: 1800 / 1499; max-width: 78%;
  background: url("../img/hero.webp") right top / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(180deg, #000 72%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(180deg, #000 72%, transparent 92%);
  mask-composite: intersect;
}
/* velo crema para que el texto se lea sobre la foto */
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(251, 245, 236, .92) 0%, rgba(251, 245, 236, .78) 34%, rgba(251, 245, 236, 0) 50%);
}
.hero-in { position: relative; padding-top: 170px; padding-bottom: 14px; }
.hero-copy { position: relative; z-index: 2; max-width: 640px; padding-left: 58px; }
.hero h1 { font-size: 71px; font-weight: 800; line-height: .9; color: #3d1310; letter-spacing: -.02em; }
.script-gold { display: block; font-family: var(--script); font-weight: 400; color: var(--gold); font-size: 86px; line-height: 1.05; letter-spacing: 0; margin-top: -4px; margin-left: -6px; }
.hero-lead { font-size: 20.5px; line-height: 1.24; color: #4a3f3a; margin-top: 14px; max-width: 600px; padding-left: 6px; }
.hero-lead strong { color: #2c201c; font-weight: 600; }
.hero-cta { display: flex; gap: 20px; margin-top: 18px; }
.hero-cta .btn-primary { min-width: 326px; }
.hero-cta .btn-outline { min-width: 275px; }
.note-hero { position: absolute; right: 18px; top: 116px; font-size: 31px; transform: rotate(-12deg); text-align: left; z-index: 2; }

/* ---------- beneficios ---------- */
.features { position: relative; background: linear-gradient(180deg, rgba(251, 244, 234, .92), #fbf3e7); border-bottom: 1px solid #f0e3d1; }
.features-in { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 12px; }
.feature { display: flex; align-items: center; gap: 18px; padding: 0 22px; }
.feature + .feature { border-left: 1px solid #ead9c3; }
.feature-ico { display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 50%; background: var(--ico-bg); color: var(--ico); font-size: 40px; }
.feature p { font-family: var(--sans); font-size: 16px; color: var(--muted); line-height: 1.2; }
.feature strong { display: block; font-weight: 500; font-size: 17px; color: #2f1d16; }
.spike-fl { left: 10px; bottom: -40px; transform: rotate(60deg); height: 160px; }
.spike-fr { right: 10px; bottom: -40px; transform: rotate(-60deg); height: 160px; }

/* ---------- categorías ---------- */
.categories { position: relative; overflow: hidden; background: linear-gradient(90deg, #eaf1f3 0%, #f8f1e6 22%, #fbf4ea 100%); padding: 12px 0 14px; }
.categories-in { position: relative; z-index: 1; display: grid; grid-template-columns: 228px 1fr; gap: 22px; align-items: start; }
.categories-intro { padding-top: 28px; }
.categories-intro h2 { font-size: 44px; }
.categories-intro p { font-size: 17.5px; margin-top: 14px; line-height: 1.3; color: #4a3f3a; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cat-card img { aspect-ratio: 170 / 140; object-fit: cover; width: 100%; }
.cat-card-body { position: relative; padding: 11px 14px 12px 16px; min-height: 86px; }
.cat-card-body p { padding-right: 38px; }
.cat-card h3 { font-size: 21px; font-weight: 700; line-height: 1.02; }
.cat-card p { font-family: var(--sans); font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.22; }
.cat-card .round-btn { position: absolute; right: 14px; bottom: 16px; }
.spike-cat { left: 40px; bottom: -60px; transform: rotate(55deg); }
.spike-cat2 { left: 100px; bottom: -80px; transform: rotate(40deg); }

/* ---------- destacados ---------- */
.featured { padding: 14px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-head h2 { font-size: 42px; }
.section-head p { font-size: 16.5px; color: #4a3f3a; margin-top: 2px; }
.section-head .btn { margin-bottom: 8px; }
.prod-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.prod-card { background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.prod-card img { aspect-ratio: 143 / 112; object-fit: cover; width: 100%; }
.prod-card-body { position: relative; padding: 9px 44px 11px 8px; }
.prod-card h3 { font-size: 16.5px; font-weight: 700; white-space: nowrap; letter-spacing: -.02em; }
.prod-card p { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.prod-card .round-btn { position: absolute; right: 8px; bottom: 9px; width: 27px; height: 27px; }
.prod-card .round-btn svg { width: 14px; height: 14px; }

/* ---------- formatos + precios ---------- */
.sales { padding: 8px 0 4px; }
.sales-in { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.formats { position: relative; padding: 0 0 6px 2px; }
.formats > :not(.spike) { position: relative; z-index: 1; }
.formats h2 { font-size: 42px; }
.formats .sub, .prices .sub { font-size: 16.5px; color: #4a3f3a; line-height: 1.22; margin-top: 6px; }
.fmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; max-width: 640px; }
.fmt-card { background: rgba(255, 250, 243, .92); border-radius: 10px; padding: 0 0 14px; box-shadow: var(--shadow); overflow: hidden; }
.fmt-card img { aspect-ratio: 140 / 82; object-fit: cover; width: 100%; }
.fmt-card h3 { font-size: 18px; font-weight: 700; margin: 10px 14px 0; }
.fmt-card p { font-family: var(--sans); font-size: 15px; color: var(--muted); margin: 4px 14px 0; line-height: 1.2; }
.spike-fmt { right: 24px; top: -10px; transform: rotate(-20deg); }
.spike-fmt2 { right: -16px; top: 60px; transform: rotate(-8deg); }
.spike.spike-fmt, .spike.spike-fmt2 { z-index: 0; }

.prices {
  position: relative; border-radius: 16px; padding: 12px 228px 14px 26px; overflow: hidden;
  background:
    linear-gradient(90deg, #f3f1ef 0%, #f3f1ef 52%, rgba(243, 241, 239, 0) 72%),
    url("../img/precios-churros.webp") right top / auto 64% no-repeat,
    #f3f1ef;
  box-shadow: var(--shadow);
}
.prices h2 { font-size: 42px; }
.prices-sub { font-family: var(--sans); font-size: 21px; font-weight: 500; color: #2a1d18; margin-top: 2px; }
.prices .sub { font-family: var(--sans); color: #6f7d88; font-size: 15px; margin-top: 4px; }
.price-table { width: 100%; border-collapse: collapse; margin: 8px 0 10px; background: rgba(255, 250, 243, .95); border-radius: 10px; overflow: hidden; font-family: var(--sans); font-size: 14.5px; color: #2f1d16; }
.price-table th { text-align: left; font-weight: 400; }
.price-table th, .price-table td { padding: 2px 12px; height: 24px; border-bottom: 1px solid #eee2d2; }
.price-table tr:last-child > * { border-bottom: 0; }
.price-table th { white-space: nowrap; }
.price-table td:nth-child(2) { width: 56px; white-space: nowrap; }
.price-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.ico-doc { width: 26px !important; height: 26px !important; }
.note-prices { position: absolute; right: 18px; bottom: 40px; font-size: 25px; transform: rotate(-10deg); text-align: center; }
.note-arrow { position: absolute; right: 150px; bottom: 16px; width: 60px; height: 50px; color: var(--brown); }

/* ---------- por qué ---------- */
.why { position: relative; overflow: hidden; padding: 10px 0 12px; text-align: center; background: linear-gradient(180deg, #fbf4ea, #fbf1e3); }
.why .wrap { position: relative; z-index: 1; }
.why h2 { font-size: 38px; }
.why .sub { font-size: 16px; color: #4a3f3a; margin-top: 4px; }
.why-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin: 12px auto 0; max-width: 1060px; }
.why-item { padding: 0 14px; }
.why-item + .why-item { border-left: 1px solid #ead9c3; }
.why-item svg { width: 36px; height: 36px; color: #6a2416; }
.why-item h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 500; letter-spacing: 0; color: #2f1d16; margin-top: 6px; line-height: 1.15; }
.why-item p { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.18; }
.spike-wl { left: 6px; top: -10px; transform: rotate(28deg); height: 300px; width: 82px; opacity: .7; }
.spike-wl2 { left: 70px; top: 30px; transform: rotate(10deg); }
.spike-wr { right: 6px; top: -10px; transform: rotate(-28deg); height: 300px; width: 82px; opacity: .7; }
.spike-wr2 { right: 70px; top: 30px; transform: rotate(-10deg); }

/* ---------- contacto ---------- */
.contact { padding: 4px 0 6px; }
.contact-in { display: grid; grid-template-columns: 1fr 1.32fr 1fr; gap: 0; align-items: stretch; background: #fffaf3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact .wrap.contact-in { width: 100%; max-width: none; }
.contact-photo { position: relative; min-height: 190px; }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.note-contact { position: absolute; left: 70px; top: 22px; font-size: 30px; transform: rotate(-12deg); text-align: center; }
.quote { padding: 10px 24px 10px; }
.quote h2 { font-size: 27px; }
.quote .sub { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 2px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; margin-top: 8px; }
.quote input, .quote textarea {
  width: 100%; font: 14px var(--sans); color: var(--brown); background: #fff;
  border: 1px solid #e3d5c3; border-radius: 6px; padding: 5px 10px; height: 30px;
}
.quote textarea { height: 42px; resize: vertical; min-height: 42px; }
.quote input:focus, .quote textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }
.quote [aria-invalid="true"] { border-color: #c0392b; }
.span-msg { grid-column: 1; }
.btn-send { height: 42px; font-size: 16px; align-self: end; }
.form-msg { font-family: var(--sans); font-size: 14px; margin-top: 4px; color: var(--wine); }
.form-msg:empty { display: none; }
.contact-info { padding: 10px 26px 10px 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.contact-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.ci-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fbe3dc; color: #b3301e; flex: none; font-size: 18px; }
.contact-info p { font-family: var(--sans); font-size: 15px; color: #2a1d18; line-height: 1.15; }
.contact-info p a, .contact-info p strong { font-weight: 500; }
.contact-info small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---------- ubicación ---------- */
.location { padding: 6px 0 8px; }
.location-card { display: grid; grid-template-columns: 272px 1fr; background: #fffaf3; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.location-text { padding: 10px 18px 10px 26px; }
.location-text h2 { font-size: 25px; }
.location-text > p { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.2; }
.loc-addr { display: flex; gap: 8px; margin-top: 10px !important; font-family: var(--sans); font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.loc-addr svg { width: 22px; height: 22px; color: #b3301e; flex: none; }
.loc-addr strong { display: block; color: #2a1d18; font-weight: 600; font-size: 13.5px; }
.location-map { position: relative; display: block; min-height: 140px; }
.location-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.location-map .btn { position: absolute; left: 16px; bottom: 14px; }

/* ---------- pie ---------- */
.site-footer { background: #3a1d12; color: #e8d6c4; }
.footer-in { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding-block: 6px; }
.brand-foot .brand-emblem { width: 50px; height: 45px; }
.brand-foot .brand-name { font-size: 34px; color: #f3e4d2; }
.brand-foot .brand-sub { font-size: 8px; color: #e8d6c4; padding-left: 14px; margin-top: -2px; }
.brand-foot .brand-text { margin-top: 0; }
.footer-mid { text-align: center; font-family: var(--sans); }
.footer-mid nav { display: flex; justify-content: center; gap: 34px; font-size: 13px; }
.footer-mid nav a:hover { color: #fff; }
.footer-mid p { font-size: 11px; color: #c9b39d; margin-top: 4px; }
.heart { color: #e34a4a; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #e8d6c4; font-size: 18px; }
.footer-social a:hover { background: #e8d6c4; color: #3a1d12; }
.note-foot { color: #f3e4d2; font-size: 22px; transform: rotate(-8deg); }
.note-foot svg { color: #f3e4d2; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: none; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 32px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

/* ============ responsive ============ */
@media (max-width: 1180px) {
  .nav { gap: 26px; font-size: 16px; }
  .brand-emblem { width: 130px; height: 117px; }
  .brand-name { font-size: 74px; }
  .brand-sub { font-size: 16px; }
  .hero-in { padding-top: 140px; }
  .hero h1 { font-size: 60px; }
  .script-gold { font-size: 72px; }
  .hero-copy { padding-left: 24px; }
  .categories-in { grid-template-columns: 1fr; }
  .categories-intro { padding-top: 10px; }
  .categories-intro br { display: none; }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .sales-in { grid-template-columns: 1fr; }
  .fmt-grid { max-width: none; }
  .contact-in { grid-template-columns: 1fr 1fr; }
  .contact-photo { grid-column: 1 / -1; min-height: 240px; }
  .footer-in { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding-block: 18px; }
  .footer-mid nav { flex-wrap: wrap; gap: 10px 22px; }
}

@media (max-width: 900px) {
  .site-header { position: absolute; }
  .header-in { align-items: center; padding-top: 8px; }
  .brand-emblem { width: 84px; height: 76px; }
  .brand-name { font-size: 50px; }
  .brand-sub { font-size: 11px; padding-left: 22px; }
  .nav-toggle {
    display: grid; gap: 5px; place-content: center; width: 46px; height: 46px; border-radius: 10px;
    background: rgba(255, 250, 243, .92); border: 1px solid var(--line); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--brown); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav {
    position: absolute; top: 92px; left: 16px; right: 16px; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px;
    background: #fffaf3; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a, .nav-drop-btn { padding: 12px 14px; }
  .nav a.is-active::after { display: none; }
  .nav-drop-menu { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 14px; background: none; }
  .hero { min-height: 0; }
  .hero::before { height: 380px; max-width: none; width: 100%; aspect-ratio: auto; background-position: 70% top;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero::after { background: linear-gradient(180deg, rgba(251, 245, 236, 0) 40%, rgba(251, 245, 236, .9) 62%, #fbf5ec 80%); }
  .hero-in { padding-top: 300px; }
  .hero-copy { padding-left: 0; }
  .hero h1 { font-size: 44px; }
  .script-gold { font-size: 54px; }
  .hero-lead { font-size: 17px; padding-left: 0; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { min-width: 0; width: 100%; }
  .note-hero { top: 110px; right: 8px; font-size: 24px; }
  .features-in { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .feature { padding: 0 10px; gap: 12px; }
  .feature:nth-child(3) { border-left: 0; }
  .feature-ico { width: 56px; height: 56px; font-size: 28px; }
  .feature p { font-size: 14px; }
  .feature strong { font-size: 15px; }
  h2, .section-head h2, .formats h2, .prices h2, .categories-intro h2 { font-size: 34px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .prod-card h3 { white-space: normal; }
  .prices { padding: 18px 18px 120px; background: linear-gradient(180deg, #f3f1ef 70%, rgba(243,241,239,.6)), url("../img/precios-churros.webp") right bottom / 46% auto no-repeat, #f3f1ef; }
  .note-prices { bottom: 22px; right: 18px; }
  .note-arrow { right: 210px; bottom: 30px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 0; }
  .why-item:nth-child(4) { border-left: 0; }
  .contact-in { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .location-card { grid-template-columns: 1fr; }
  .location-map { min-height: 170px; }
  .location-map img { object-position: 74% 50%; }
  .wa-float { display: grid; }
  .spike { display: none; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-card h3 { font-size: 18px; }
  .cat-card-body p { padding-right: 30px; font-size: 13px; }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-in { grid-template-columns: 1fr 1fr; }
  .contact-photo { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .brand-name { font-size: 42px; }
  .hero h1 { font-size: 38px; }
  .script-gold { font-size: 46px; }
  .cat-grid { gap: 10px; }
  .cat-card h3 { font-size: 18px; }
  .cat-card-body p { padding-right: 30px; font-size: 13px; }
  .fmt-grid { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .fmt-card h3 { font-size: 15px; margin: 8px 8px 0; }
  .fmt-card p { font-size: 12.5px; margin: 3px 8px 0; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item:nth-child(3), .why-item:nth-child(5) { border-left: 0; }
  .why-item:nth-child(4) { border-left: 1px solid #ead9c3; }
  .price-table th, .price-table td { padding: 4px 10px; }
}

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