/* ------------------------------------------------------------
   Venecommerce · estilos
   Paleta sacada de los productos: rojo tomate, oliva, mostaza,
   crema de mayonesa, carbón de plancha.
   ------------------------------------------------------------ */
:root {
  /* Identidad del logo: azul marino, amarillo y rojo de la bandera */
  --azul: #123a8a;
  --azul-2: #0d2b6b;
  --azul-3: #081d4d;
  --amarillo: #f5c518;
  --amarillo-2: #d9ab0c;
  --rojo: #d7262b;
  --rojo-2: #b31c21;
  --rojo-3: #8c1418;
  --crema: #fbf3e4;
  --blanco: #fffbf4;
  --carbon: #1b1917;
  --tinta: #2a2623;
  --gris: #6b6560;
  --linea: rgba(43, 38, 35, .14);
  --wa: #1f9d55;

  --serif: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --nav-h: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 800; margin: 0; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.2vw, 50px); font-variation-settings: "opsz" 96, "SOFT" 50; }
h3 { font-size: 22px; font-variation-settings: "opsz" 36, "SOFT" 50; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Botones ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--pill { background: var(--amarillo); color: var(--azul-3); }
.btn--pill:hover { background: var(--blanco); }
.btn--light { background: var(--amarillo); color: var(--azul-3); }
.btn--light:hover { background: var(--blanco); color: var(--azul-2); }
.btn--ghost { background: transparent; color: var(--blanco); border-color: rgba(255, 251, 244, .55); }
.btn--ghost:hover { border-color: var(--blanco); background: rgba(255, 251, 244, .1); }
.btn--dark { background: var(--carbon); color: var(--blanco); }
.btn--dark:hover { background: var(--azul); }
.btn--wa { background: var(--wa); color: #fff; width: 100%; }
.btn--wa:hover { background: #17864a; }

/* Nav -------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding-inline: var(--gutter);
  background: var(--azul-2);
  color: var(--blanco);
}
.nav.is-scrolled { box-shadow: 0 8px 30px -14px rgba(0, 0, 0, .55); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.brand__wordmark { height: 44px; width: auto; filter: brightness(0) invert(1); }
.brand__mark:not([src]), .brand__mark[src=""] { display: none; }
.brand__word { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15.5px; opacity: .92; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; flex-direction: column; justify-content: center; gap: 7px; }
.nav__toggle span { display: block; height: 2px; background: var(--blanco); border-radius: 2px; }
.menu[hidden] { display: none; }
.menu { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 39; background: var(--azul-3); color: var(--blanco); display: grid; padding: 12px var(--gutter) 22px; }
.menu a { padding: 14px 0; text-decoration: none; font-weight: 600; font-size: 19px; border-bottom: 1px solid rgba(255, 255, 255, .15); }

/* Hero en bucle ---------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100svh - var(--nav-h));
  display: grid; place-items: center; align-content: center;
  padding: 72px var(--gutter) 150px;
  background: radial-gradient(120% 90% at 50% 40%, var(--azul) 0%, var(--azul-2) 60%, var(--azul-3) 100%);
  color: var(--blanco);
  text-align: center;
}
.hero__ripples {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 50% 48%, rgba(255, 251, 244, .07) 0 1.5px, transparent 1.5px 74px);
  mask-image: radial-gradient(circle at 50% 48%, #000 20%, transparent 72%);
  animation: ripple 14s linear infinite;
}
@keyframes ripple { to { transform: scale(1.12); } }
.hero__center { position: relative; z-index: 2; max-width: 760px; }
.hero__emblem { width: clamp(120px, 15vw, 210px); height: auto; margin: 0 auto 22px; padding: 10px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%); box-shadow: 0 0 0 6px rgba(255, 255, 255, .14), 0 0 60px rgba(245, 197, 24, .35); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.hero__kicker { font-weight: 700; font-size: 14.5px; letter-spacing: .02em; opacity: .9; margin-bottom: 18px; color: var(--amarillo); }
.hero__title {
  font-size: clamp(40px, 7vw, 86px);
  font-weight: 700;
  letter-spacing: -.03em; line-height: 1;
  text-wrap: balance;
}
.hero__sub { font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; margin: 26px auto 0; opacity: .94; text-wrap: pretty; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__now {
  display: none;
  font-family: var(--sans); font-weight: 600; font-size: 16px; opacity: .85; white-space: nowrap;
  transition: opacity .4s;
}
.hero__now:empty { opacity: 0; }

.hero__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fly {
  position: absolute; left: 50%; top: 50%;
  width: var(--w);
  --tx: 0px; --ty: 0px; --r: 0deg;
  transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--r)) scale(var(--s, 1));
  filter: drop-shadow(0 26px 30px rgba(3, 10, 35, .55));
  opacity: 0; will-change: transform, opacity;
}
.fly img { width: 100%; height: auto; animation: bob var(--bob, 6s) ease-in-out infinite alternate; animation-delay: var(--bd, 0s); }
@keyframes bob { from { transform: translateY(-6px) rotate(-1.5deg); } to { transform: translateY(8px) rotate(1.5deg); } }
.fly.in { animation: fly-in .9s cubic-bezier(.2, .9, .25, 1) forwards; }
.fly.out { animation: fly-out .7s cubic-bezier(.6, 0, .8, .4) forwards; }
@keyframes fly-in {
  from { opacity: 0; transform: translate(calc(-50% + var(--fx)), calc(-50% + var(--fy))) rotate(calc(var(--r) - 18deg)) scale(.6); }
  to   { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--r)) scale(var(--s, 1)); }
}
@keyframes fly-out {
  from { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--r)) scale(var(--s, 1)); }
  to   { opacity: 0; transform: translate(calc(-50% + var(--fx2)), calc(-50% + var(--fy2))) rotate(calc(var(--r) + 14deg)) scale(.7); }
}
.fly--product { --w: clamp(150px, 20vw, 300px); z-index: 1; }
.fly--ing { --w: clamp(64px, 9.5vw, 150px); z-index: 0; }
.fly--behind { z-index: 0; }
.fly--behind img { opacity: .82; }
.fly--companion { z-index: 0; }
.fly--flip img { transform: scaleX(-1); animation-name: bob-flip; }
@keyframes bob-flip { from { transform: scaleX(-1) translateY(-6px) rotate(1.5deg); } to { transform: scaleX(-1) translateY(8px) rotate(-1.5deg); } }
.fly--companion img { opacity: .9; }
.fly--tag {
  --w: auto; z-index: 2; width: auto; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--blanco); color: var(--azul-3);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
  filter: none;
}
.fly--tag::before {
  content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px;
  background: var(--blanco); transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.fly--tag .tag__name { font-family: var(--serif); font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.fly--tag .tag__pres { font-size: 12.5px; color: var(--gris); font-weight: 600; }
.fly--tag .tag__pres::before { content: "·"; margin-right: 8px; color: var(--gris); }
.fly--tag .tag__price { font-family: var(--serif); font-weight: 800; font-size: 17px; padding: 6px 12px; border-radius: 999px; background: var(--amarillo); color: var(--azul-3); }
@media (max-width: 760px) {
  .fly--tag { padding: 6px 6px 6px 12px; gap: 6px; }
  .fly--tag .tag__name { font-size: 13px; }
  .fly--tag .tag__pres { display: none; }
  .fly--tag .tag__price { font-size: 14px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__ripples { animation: none; }
  .fly img { animation: none; }
  .fly.in, .fly.out { animation-duration: .01s; }
}

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; z-index: 3; }
.wave .w-amarillo { fill: var(--amarillo); }
.wave .w-rojo { fill: var(--rojo); }
.wave .w-blanco { fill: var(--blanco); }

/* Marcas ----------------------------------------------------- */
.brands { padding: 48px 0 12px; text-align: center; }
.brands__lead { font-size: 15px; font-weight: 600; color: var(--gris); margin-bottom: 26px; }
.brands__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 40px; }
.brands__row img { height: 66px; width: auto; max-width: 168px; object-fit: contain; }
@media (max-width: 760px) { .brands__row { gap: 18px 30px; } .brands__row img { height: 44px; max-width: 150px; } }

/* Catálogo --------------------------------------------------- */
.catalog { padding: 64px 0 96px; }
.catalog__head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px 60px; align-items: end; margin-bottom: 34px; }
.catalog__head p { color: var(--gris); font-size: 17px; max-width: 58ch; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters button {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--linea);
  background: transparent; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.filters button:hover { border-color: var(--azul); }
.filters button[aria-selected="true"] { background: var(--azul-2); border-color: var(--azul-2); color: var(--blanco); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column;
  background: var(--crema); border-radius: var(--radius);
  border: 1px solid transparent;
  overflow: hidden;
  transition: border-color .2s;
}
.card:hover { border-color: rgba(18, 58, 138, .35); }
.card.is-hidden { display: none; }
.card__img { aspect-ratio: 1; display: grid; place-items: center; padding: 22px 22px 8px; }
.card__img img { width: 92%; height: 92%; object-fit: contain; transition: transform .35s ease; }
.card:hover .card__img img { transform: translateY(-5px) rotate(-1.2deg); }
.card__body { padding: 6px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; font-variation-settings: "opsz" 24, "SOFT" 50; }
.card__pres { color: var(--gris); font-size: 14.5px; }
.card__variants { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.card__variants button { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--linea); background: transparent; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.card__variants button[aria-pressed="true"] { background: var(--tinta); color: var(--blanco); border-color: var(--tinta); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.card__price { font-family: var(--serif); font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--azul-2); font-variation-settings: "opsz" 40, "SOFT" 30; line-height: 1; }
.card__price small { font-size: 14px; font-family: var(--sans); font-weight: 600; color: var(--gris); letter-spacing: 0; margin-left: 4px; }
.card__add {
  padding: 10px 16px; border-radius: 999px; border: 0;
  background: var(--tinta); color: var(--blanco); font-weight: 700; font-size: 14.5px; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.card__add:hover { background: var(--rojo); }
.card__add.is-added { background: var(--azul); }
.card__add:active { transform: scale(.96); }

/* Por qué ---------------------------------------------------- */
.why { background: var(--rojo); color: var(--crema); padding: 96px 0; }
.why__inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px 80px; align-items: start; }
.why__text { position: sticky; top: calc(var(--nav-h) + 32px); }
.why__text h2 { font-variation-settings: "opsz" 120, "SOFT" 50; text-wrap: balance; }
.why__text p { margin-top: 22px; font-size: 18px; opacity: .88; max-width: 44ch; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.why__list li { padding: 26px 0; border-top: 1px solid rgba(251, 243, 228, .22); }
.why__list li:last-child { border-bottom: 1px solid rgba(251, 243, 228, .22); }
.why__list h3 { font-size: 22px; color: var(--amarillo); }
.why__list p { margin-top: 8px; opacity: .88; max-width: 52ch; }

/* Cómo pedir ------------------------------------------------- */
.how { background: var(--amarillo); color: var(--azul-3); padding: 96px 0; }
.how h2 { font-variation-settings: "opsz" 120, "SOFT" 50; }
.steps { list-style: none; margin: 40px 0 44px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-top: 14px; border-top: 3px solid var(--azul-3); }
.steps__n { font-family: var(--serif); font-size: 54px; font-weight: 700; line-height: 1; display: block; margin-bottom: 14px; font-variation-settings: "opsz" 144, "SOFT" 40; }
.steps h3 { font-size: 24px; }
.steps p { margin-top: 8px; max-width: 34ch; }

/* Footer ----------------------------------------------------- */
.footer { background: var(--carbon); color: var(--crema); padding: 64px 0 40px; font-size: 15.5px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { font-family: var(--serif); font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.footer__logo { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.footer__logo img:first-child { width: 84px; height: 84px; object-fit: contain; }
.footer__logo img:last-child { height: 64px; width: auto; filter: brightness(0) invert(1); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer p + p { margin-top: 8px; }

/* Cotizador -------------------------------------------------- */
.quote-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 14px 20px; border-radius: 999px; border: 0;
  background: var(--carbon); color: var(--blanco); font-weight: 700; font-size: 15.5px; cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .6);
  transition: transform .2s, background-color .2s;
}
.quote-fab:hover { background: var(--azul); }
.quote-fab.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }
.quote-fab__count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--amarillo); color: var(--azul-3); display: grid; place-items: center; font-size: 14px; }

.quote {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(420px, 100%);
  background: var(--blanco); color: var(--tinta);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .5);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2, .9, .25, 1);
}
.quote.is-open { transform: none; }
.quote__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 14px; border-bottom: 1px solid var(--linea); }
.quote__head h2 { font-size: 26px; }
.quote__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--crema); font-size: 26px; line-height: 1; cursor: pointer; }
.quote__list { list-style: none; margin: 0; padding: 8px 24px; overflow: auto; flex: 1; }
.quote__list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.quote__list .q-name { font-weight: 700; }
.quote__list .q-pres { font-size: 13.5px; color: var(--gris); }
.quote__list .q-line { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 6px; }
.quote__list .q-line button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--linea); background: transparent; cursor: pointer; font-weight: 700; }
.quote__list .q-line output { min-width: 26px; text-align: center; font-weight: 700; }
.quote__list .q-sub { grid-column: 1 / -1; text-align: right; font-size: 14px; color: var(--gris); }
.quote__empty { padding: 30px 24px; color: var(--gris); }
.quote__empty[hidden] { display: none; }
.quote__foot { padding: 16px 24px 22px; border-top: 1px solid var(--linea); display: grid; gap: 10px; }
.quote__total { display: flex; justify-content: space-between; align-items: baseline; }
.quote__total strong { font-family: var(--serif); font-size: 28px; color: var(--azul-2); }
.quote__clear { background: none; border: 0; color: var(--gris); text-decoration: underline; cursor: pointer; justify-self: center; font-size: 14px; }
.quote-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(27, 25, 23, .35); opacity: 0; pointer-events: none; transition: opacity .3s; }
.quote-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* Aviso "agregado" ------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 70; transform: translate(-50%, 20px);
  background: var(--azul-2); color: var(--crema); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive ------------------------------------------------- */
@media (max-width: 900px) {
  .catalog__head, .why__inner { grid-template-columns: 1fr; }
  .why__text { position: static; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  .nav { gap: 14px; }
  .brand__mark { width: 52px; height: 52px; }
  .brand__wordmark { height: 32px; }
  .footer__logo img:first-child { width: 64px; height: 64px; }
  .footer__logo img:last-child { height: 48px; }
  .nav__links, .nav .btn--pill { display: none; }
  .nav__toggle { display: flex; }
  .hero { padding: 250px var(--gutter) 120px; min-height: auto; }
  .hero__emblem { display: none; }
  .hero__now { font-size: 14px; margin-top: 24px; }
  .fly--product { --w: clamp(120px, 34vw, 190px); }
  .fly--ing { --w: clamp(44px, 12vw, 72px); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__img { padding: 14px 14px 4px; }
  .card__body { padding: 4px 14px 14px; }
  .card__name { font-size: 18px; }
  .card__price { font-size: 25px; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__add { width: 100%; }
  .quote-fab { right: 14px; bottom: 14px; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
}
