/* =========================================================================
   ZEPHYR — Components
   ========================================================================= */

/* ---- Buttons -------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.7rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  isolation: isolate;
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}
.btn:active { transform: scale(0.97); transition-duration: var(--dur-press); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--white); }
.btn--primary:hover { --btn-bg: var(--accent-dark); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }

.btn--on-dark { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--on-dark:hover { --btn-bg: var(--accent); --btn-fg: var(--white); }

.btn--ghost-on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: rgba(248, 243, 234, 0.35);
}
.btn--ghost-on-dark:hover { --btn-bg: rgba(248, 243, 234, 0.12); border-color: var(--paper); }

.btn--sm { padding: 0.7rem 1.25rem; font-size: 0.88rem; }

.btn--whatsapp { --btn-bg: #1a7440; --btn-fg: #fff; }
.btn--whatsapp:hover { --btn-bg: #145c33; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* magnetic wrapper target (JS adds subtle translate via transform on hover) */
.btn-magnetic { display: inline-block; }

/* ---- Header ----------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 1.35rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

/* Glass material as soon as there's content to separate from — a scroll edge
   effect rather than a hard 1px divider (apple-design §12). */
.site-header.is-scrolled {
  padding-block: 0.75rem;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.logo__mark { width: auto; height: 34px; flex-shrink: 0; }
.logo__word { text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.05rem; }

.nav-desktop {
  display: none;
}
@media (min-width: 980px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.1rem;
  }
}
.nav-desktop a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding-block: 0.3rem;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right var(--dur-fast) var(--ease);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: 0.75rem; }

.header__actions .btn--outline { display: none; }
@media (min-width: 980px) { .header__actions .btn--outline { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }
.nav-toggle span {
  width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Bastantes enlaces para no caber siempre en una pantalla de móvil —
     con overflow-y:auto el menú se desplaza en vez de recortarse por
     arriba (que era invisible e inalcanzable con justify-content:center
     + inset:0 sin scroll). padding-top despeja la cabecera fija. */
  overflow-y: auto;
  padding: calc(var(--gutter) + 64px) var(--gutter) var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 0.9rem; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 7vw, 2.2rem);
  font-weight: 600;
}
.nav-mobile .btn-row { margin-top: 2rem; margin-bottom: 1rem; }

/* ---- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(7.5rem, 16vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 82% 8%, var(--terracotta-light) 0%, transparent 70%),
    radial-gradient(50% 40% at 10% 90%, var(--wind-light) 0%, transparent 70%);
}

/* ---- Hero scene: no hay vídeo real (no se pudo conseguir uno libre de
   derechos desde este entorno), así que el "vídeo" del hero es esta escena
   viva: luz que respira despacio + los iconos del negocio flotando. Se anima
   con Motion (main.js); sin Motion, o con reduced-motion, se queda como un
   fondo estático elegante — nunca un elemento vacío o roto. -------------- */
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  will-change: transform;
}
.hero__blob--a { top: -10%; right: 8%; width: 38vw; height: 38vw; max-width: 480px; max-height: 480px; background: radial-gradient(circle, var(--terracotta-light), transparent 72%); opacity: 0.65; }
.hero__blob--b { bottom: -18%; left: -6%; width: 32vw; height: 32vw; max-width: 420px; max-height: 420px; background: radial-gradient(circle, var(--wind-light), transparent 72%); opacity: 0.6; }
.hero__blob--c { top: 32%; left: 38%; width: 22vw; height: 22vw; max-width: 300px; max-height: 300px; background: radial-gradient(circle, var(--amber-light), transparent 75%); opacity: 0.5; }

.hero__float-icon {
  position: absolute;
  width: 26px;
  height: 26px;
  color: var(--accent);
  opacity: 0;
  will-change: transform, opacity;
}
.hero__float-icon--1 { top: 78%; left: 6%; }
.hero__float-icon--2 { top: 65%; left: 46%; color: var(--wind); width: 22px; height: 22px; }
.hero__float-icon--3 { top: 82%; left: 33%; width: 24px; height: 24px; }
.hero__float-icon--4 { top: 70%; left: 62%; width: 18px; height: 18px; color: var(--amber-dark); }
.hero__float-icon--5 { top: 85%; left: 72%; color: var(--wind); width: 20px; height: 20px; }
.hero__float-icon--6 { top: 74%; left: 18%; width: 22px; height: 22px; color: var(--amber-dark); }

/* No JS / Motion couldn't load: a calm static composition, not a blank gap. */
.hero__scene:not([data-motion-ready]) .hero__float-icon { opacity: 0.16; }

@media (prefers-reduced-motion: reduce) {
  .hero__blob { animation: none !important; }
  .hero__float-icon { opacity: 0.14 !important; animation: none !important; }
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero h1 { font-size: var(--fs-h1); max-width: 15ch; }
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lead { margin-top: 1.5rem; font-size: var(--fs-lead); max-width: 46ch; }

.hero .btn-row { margin-top: 2.25rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
}
.hero__trust-item svg { width: 20px; height: 20px; color: var(--accent-dark); flex-shrink: 0; }

.hero__visual {
  position: relative;
  aspect-ratio: 1/1.05;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(155deg, #efe0d3, #e4d6c2 45%, #d9cdb8);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 253, 249, 0.5);
}

.hero__visual .placeholder-frame { position: absolute; inset: 0; border-radius: var(--radius-lg); }

/* Ambient stage glow behind the featured product — the "studio spotlight" cue
   that reads as premium product photography even on an illustration. */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(42% 38% at 50% 46%, rgba(255, 253, 249, 0.85) 0%, transparent 72%);
  pointer-events: none;
}

/* ---- Hero product rotator ------------------------------------------------ */

.hero-rotator {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius-lg);
}

.hero-rotator__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9) rotate(-5deg) translateY(16px);
  filter: blur(6px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.hero-rotator__item.is-active {
  opacity: 1;
  transform: scale(1) rotate(0deg) translateY(0);
  filter: blur(0);
  pointer-events: auto;
  animation: hero-float 5s ease-in-out infinite;
  animation-delay: var(--dur-slow);
}
.hero-rotator__item img {
  /* Same fix as .illus below: fit fully inside the box on every device
     instead of a fixed px cap that could crowd or overflow it. */
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(22, 20, 15, 0.2));
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator__item { transition: opacity 0.4s linear; transform: none !important; filter: none !important; animation: none !important; }
}

.hero-rotator__dots {
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 4;
  display: flex;
  gap: 0.4rem;
}
.hero-rotator__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(22, 20, 15, 0.22);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.hero-rotator__dots button.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

.hero__float-card {
  position: absolute;
  z-index: 3;
  bottom: 1.4rem;
  left: 1.4rem;
  right: 1.4rem;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.hero__float-card svg { width: 30px; height: 30px; color: var(--accent-dark); flex-shrink: 0; }
.hero__float-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.hero__float-card span { font-size: 0.82rem; color: var(--text-soft); }

/* Rotation drift is driven by Motion in main.js (single source of truth for
   this element's transform); it simply stays still if Motion can't load. */
.hero__deco {
  position: absolute;
  top: 8%;
  right: -6%;
  width: 46%;
  z-index: 2;
  color: var(--accent);
  opacity: 0.9;
}

/* ---- Marquee ------------------------------------------------------------ */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 1.1rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 32s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .marquee__track { animation-duration: 90s; } }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  white-space: nowrap;
  color: var(--paper);
  opacity: 0.9;
}
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: 0.9rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Placeholder media frame -------------------------------------------- */

.placeholder-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
/* Studio product shot: a soft contact-shadow pool near the base instead of a
   flat white void — the same "product on a stage" cue used everywhere an
   illustrated mockup stands in for real photography. */
.placeholder-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(48% 30% at 50% 84%, rgba(22, 20, 15, 0.07) 0%, transparent 72%);
  pointer-events: none;
}
.placeholder-frame__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  /* Deliberately more opaque than --glass-bg-ink: this label must stay
     AA-legible over both light illustration frames and dark corp panels. */
  background: rgba(22, 20, 15, 0.82);
  color: var(--paper);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-ink);
}
/* Retail-style "new" tag — only ever placed on something genuinely new to the
   catalog, never decorative. */
.badge-new {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* Producto nuevo sin foto real todavía: en vez de una imagen inventada o un
   hueco vacío, un icono sobre un degrado suave de marca + la misma insignia
   que ya usa el sitio para "Nuevo" (aquí, con texto honesto). Se reemplaza
   por la fotografía real en cuanto exista, sin tocar el resto de la tarjeta. */
.placeholder-frame--icon { background: linear-gradient(155deg, var(--terracotta-light) 0%, var(--wind-light) 100%); }
.placeholder-frame--icon::before { display: none; }
.placeholder-frame--icon .frame-icon {
  position: relative;
  z-index: 2;
  width: 30%;
  height: 30%;
  color: var(--accent-dark);
  opacity: 0.5;
}
.placeholder-frame--icon .placeholder-frame__badge {
  background: rgba(23, 19, 14, 0.68);
}

.placeholder-frame img.illus {
  position: relative;
  z-index: 2;
  /* object-fit: contain (not a fixed % + px cap) — the photo always scales to
     fit fully inside its frame, whatever the frame's aspect ratio (4/3 cards,
     1/1, 3/4 and 4/5 masonry tiles, 16/10 spotlight) or the photo's own aspect
     ratio (square mugs vs. a portrait framed print). Nothing is ever cropped,
     and every product reads at a consistent, well-filled size on any device. */
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(22, 20, 15, 0.14));
  transition: transform var(--dur-base) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .card-product:hover .illus,
  .masonry__item:hover .illus,
  .corp__panel:hover .illus {
    transform: translateY(-5px) scale(1.045);
  }
}

/* ---- Product / mug spotlight -------------------------------------------- */

.spotlight {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
  .spotlight { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

.spotlight__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.spotlight__gallery .placeholder-frame { border-radius: var(--radius-md); aspect-ratio: 1; }
.spotlight__gallery .placeholder-frame:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 2rem; }
.tag-chip {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* ---- Steps / how it works ------------------------------------------------ */

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 780px) { .steps { grid-template-columns: repeat(5, 1fr); } }

.step {
  position: relative;
  padding: 1.75rem 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent); /* fallback for browsers without background-clip:text */
  display: block;
  margin-bottom: 0.9rem;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .step::before {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--text-soft); }

@media (min-width: 780px) {
  .steps { position: relative; }
  .steps::before {
    content: "";
    position: absolute;
    top: 2.85rem;
    left: 8%;
    right: 8%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--cream-line) 0 8px, transparent 8px 14px);
    z-index: -1;
  }
}

/* ---- Category / catalog cards -------------------------------------------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}
.filter-chip {
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all var(--dur-fast) var(--ease);
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.card-product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.card-product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-brand);
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) {
  .card-product:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
}
.card-product .placeholder-frame { aspect-ratio: 4/3; }
/* Columna flex: el pie (precio + botón) siempre queda anclado abajo,
   aunque el título o la descripción ocupen una línea más en una tarjeta
   vecina — así todos los botones de una fila quedan alineados. */
.card-product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
}
.card-product__body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.card-product__body p { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 1rem; }
.card-product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}
.price-tag { font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); }
.price-tag small { font-family: var(--font-body); font-weight: 500; color: var(--text-faint); font-size: 0.75rem; display: block; }

/* ---- Gallery / masonry ---------------------------------------------------- */

.masonry {
  columns: 1;
  column-gap: 1.1rem;
}
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1000px) { .masonry { columns: 3; } }
.masonry__item {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.masonry__item .placeholder-frame { width: 100%; }
.masonry__item:nth-child(3n+1) .placeholder-frame { aspect-ratio: 3/4; }
.masonry__item:nth-child(3n+2) .placeholder-frame { aspect-ratio: 1/1; }
.masonry__item:nth-child(3n) .placeholder-frame { aspect-ratio: 4/5; }
/* Wide catalog photography (multi-product studio shots, not single-item cutouts)
   needs a landscape frame regardless of its position in the 3-up cycle above —
   same specificity as the nth-child rules, declared after, so it wins. */
.masonry__item.masonry__item--wide .placeholder-frame { aspect-ratio: 4/3; }
.masonry__item::after {
  content: attr(data-cat);
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(22,20,15,0.78);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Occasion cards -------------------------------------------------------- */

.occasion-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 1.6rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, var(--wind-light), var(--paper-2));
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .occasion-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
}
.occasion-card svg { width: 30px; height: 30px; color: var(--accent-dark); margin-bottom: auto; }
.occasion-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.occasion-card p { font-size: 0.85rem; color: var(--text-soft); }

/* Three-hue rotation — a colorful mosaic instead of one repeated tint, still
   restrained pastel tints so it stays premium rather than loud. */
.occasion-card:nth-child(3n+2) { background: linear-gradient(160deg, var(--terracotta-light), var(--paper-2)); }
.occasion-card:nth-child(3n+2) svg { color: var(--accent-dark); }
.occasion-card:nth-child(3n) { background: linear-gradient(160deg, var(--amber-light), var(--paper-2)); }
.occasion-card:nth-child(3n) svg { color: var(--amber-dark); }
.occasion-card:nth-child(3n+1) svg { color: var(--wind-dark); }

/* ---- Corporate / empresas ---------------------------------------------------- */

.corp {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 960px) { .corp { grid-template-columns: 1fr 1fr; } }

.corp__list { display: grid; gap: 1.1rem; margin: 1.75rem 0 2.25rem; }
.corp__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
}
.corp__list svg { width: 22px; height: 22px; color: var(--accent-dark); flex-shrink: 0; margin-top: 0.1rem; }

.corp__panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.corp__panel .placeholder-frame { border-radius: var(--radius-md); aspect-ratio: 4/3; margin-bottom: 1.5rem; }
.corp__panel .placeholder-frame__label b { color: var(--ink); }

/* Empresas — bloque de vídeo con imagen de producto como portada/reserva.
   Nace mostrando solo la foto (misma composición "producto sobre stage" que
   el resto del sitio); el vídeo se superpone y se revela por JS únicamente
   si el archivo carga de verdad, así nunca hay un hueco roto. */
.corp__video-frame { padding: 0; }
.corp__video-frame .corp__video-fallback { width: 84%; height: 84%; }
.corp__video,
.corp__video-frame.is-ready .corp__video-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-soft);
}
.corp__video-frame.is-ready .corp__video { opacity: 1; }
.corp__video-frame.is-ready .corp__video-fallback { z-index: 1; opacity: 0; }
.corp__video-play {
  position: absolute;
  z-index: 4;
  inset: 0;
  margin: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease);
}
.corp__video-play:hover { transform: scale(1.08); }
.corp__video-play .icon { width: 22px; height: 22px; margin-left: 3px; }

/* ---- Trust / differentiators ---------------------------------------------------- */

.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}
.trust-card svg { width: 32px; height: 32px; color: var(--accent-dark); margin-bottom: 1.25rem; }
/* Explicit color, not inherited: this card is always a light/white surface even
   when the surrounding section is dark (.section--ink h3 sets a light color that
   would otherwise render these titles almost invisible on the white card). */
.trust-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; color: var(--ink); }
.trust-card p { font-size: 0.9rem; color: var(--text-soft); }
.trust-card:nth-child(3n+2) svg { color: var(--wind-dark); }
.trust-card:nth-child(3n) svg { color: var(--amber-dark); }

.stat-row {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(248,243,234,0.18);
}
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--accent);
}
.stat-row span { font-size: 0.85rem; color: rgba(248,243,234,0.75); }

/* ---- Prueba social honesta (Instagram) ------------------------------------------ */
/* Sustituye a los testimonios placeholder: en vez de simular reseñas que no
   existen todavía, se enlaza directamente al trabajo real publicado en
   Instagram — cero datos inventados, mismo objetivo de generar confianza. */
.social-proof {
  display: grid;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 780px) { .social-proof { grid-template-columns: 1fr auto; } }
.social-proof__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.social-proof__icon svg { width: 24px; height: 24px; }
.social-proof h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.social-proof p { color: var(--text-soft); max-width: 52ch; }

/* ---- FAQ ------------------------------------------------------------------------ */

.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.3rem 1.4rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--dur-fast) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq-item p {
  padding-bottom: 1.2rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 65ch;
}
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* ---- CTA banner ------------------------------------------------------------------ */

.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 5rem);
  background: linear-gradient(145deg, var(--ink), #23201a 60%, var(--wind-dark));
  color: var(--paper);
  text-align: center;
}
.cta-banner h2 { color: var(--paper); max-width: 22ch; margin-inline: auto; }
.cta-banner .lead { color: rgba(248,243,234,0.78); margin-inline: auto; margin-top: 1rem; }
.cta-banner .btn-row { justify-content: center; margin-top: 2.25rem; }
.cta-banner__deco {
  position: absolute;
  z-index: -1;
  width: 340px;
  color: var(--accent);
  opacity: 0.18;
  bottom: -60px;
  right: -40px;
}

/* ---- Contact ---------------------------------------------------------------------- */

.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 980px) { .contact { grid-template-columns: 1fr 1.1fr; } }

.contact-info__item {
  display: flex;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.contact-info__item:first-child { padding-top: 0; }
.contact-info__item svg { width: 24px; height: 24px; color: var(--accent-dark); flex-shrink: 0; }
.contact-info__item h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.contact-info__item p, .contact-info__item a { font-size: 0.92rem; color: var(--text-soft); }
.contact-info__item a:hover { color: var(--accent-dark); }

.map-embed {
  margin-top: 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-soft); }
.field .required { color: var(--accent-dark); }
.field input,
.field select,
.field textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 0.95rem;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: var(--white);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }

.field-group--radio {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.radio-pill {
  flex: 1;
  min-width: 140px;
  position: relative;
}
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all var(--dur-fast) var(--ease);
}
.radio-pill input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.radio-pill input:focus-visible + span { outline: 2.5px solid var(--terracotta); outline-offset: 2px; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.form-note { font-size: 0.78rem; color: var(--text-faint); max-width: 32ch; }

.form-status {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}
.form-status.is-success { display: block; background: #e4f2e8; color: #1f6b3d; }
.form-status.is-error { display: block; background: #f7e4e0; color: #9c3e24; }

.btn[data-loading="true"] .btn-label { visibility: hidden; }
.btn[data-loading="true"]::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Footer ------------------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: rgba(248,243,234,0.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(248,243,234,0.14);
}
@media (min-width: 860px) {
  .footer-top { grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; }
}
.footer-brand .logo { color: var(--paper); }
.footer-brand p { margin-top: 1.1rem; font-size: 0.9rem; max-width: 32ch; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.4rem; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(248,243,234,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--paper);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.15rem;
}
.footer-col ul { display: grid; gap: 0.75rem; }
.footer-col a { font-size: 0.9rem; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom .legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--dur-fast) var(--ease);
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top svg { width: 20px; height: 20px; }

/* ---- Botones flotantes (WhatsApp + Llamada) ---------------------------------------- */
/* Grupo persistente en todas las secciones: WhatsApp como acción principal
   (mismo peso visual que antes) y una llamada directa como acción secundaria
   más discreta justo encima — cubre a quien prefiere hablar por teléfono sin
   competir por atención con el canal principal del negocio. */

.fab-group {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.whatsapp-float {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #1a7440;
  color: #fff;
  padding: 0.85rem 1.25rem 0.85rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.88rem;
}
.whatsapp-float__icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.whatsapp-float__icon svg { width: 19px; height: 19px; }
.whatsapp-float__icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,163,90,0.55);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.9; }
  80% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float__icon::after { animation: none; } }

.call-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  align-self: flex-start;
  margin-left: 0.15rem;
  transition: transform var(--dur-fast) var(--ease);
}
.call-float svg { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) {
  .call-float:hover { transform: scale(1.08); }
}

@media (max-width: 560px) {
  .whatsapp-float span.wa-text { display: none; }
  .whatsapp-float { padding: 0.7rem; }
  .back-to-top { width: 42px; height: 42px; }
  .fab-group { left: 1.1rem; bottom: 1.1rem; gap: 0.6rem; }
  .call-float { width: 42px; height: 42px; }
}
