/* ============================================
   CHISPITA PASTELERÍA — styles.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300;400;500;600;700&family=Caveat:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ====== Reset & base ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 12% 8%,  rgba(248, 184, 196, 0.22) 0%, transparent 60%),
    radial-gradient(50% 40% at 88% 18%, rgba(232, 169, 92, 0.18) 0%, transparent 65%),
    radial-gradient(45% 38% at 78% 92%, rgba(228, 124, 149, 0.14) 0%, transparent 60%);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text-link); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--rose-deep); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { margin: 0 0 var(--space-4); }
::selection { background: var(--rose-blush); color: var(--chocolate); }

/* ====== Container ====== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}
.container-narrow { max-width: var(--container-narrow); }
.container-wide   { max-width: var(--container-wide); }

/* ====== Helpers ====== */
.italic-serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.script-accent {
  font-family: var(--font-script);
  font-size: 1.5em;
  font-weight: 500;
  color: var(--rose-deep);
  line-height: 1;
}
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  background: rgba(232, 169, 92, 0.10);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  margin-bottom: var(--space-4);
}
.section-title { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.section-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto var(--space-8);
}

/* ====== Reveal ====== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo); }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ====== Scroll progress bar ====== */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 0; height: 3px;
  background: var(--gradient-button);
  z-index: 999;
  transition: width 80ms linear;
}

/* ====== Cursor glow ====== */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(248, 184, 196, 0.30) 0%, transparent 60%);
  pointer-events: none;
  z-index: 998;
  mix-blend-mode: multiply;
  filter: blur(20px);
}
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* ====== Nav ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  padding: var(--space-4) 0;
  transition: background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}
.nav.is-scrolled {
  background: rgba(255, 248, 241, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(74, 44, 32, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.nav-logo { display: flex; align-items: center; gap: var(--space-3); color: var(--text-primary); }
.nav-logo:hover { color: var(--text-primary); }
.nav-logo-mark {
  width: 40px; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='ft' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23F8B8C4'/%3E%3Cstop offset='100%25' stop-color='%23E47C95'/%3E%3C/linearGradient%3E%3ClinearGradient id='ck' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23FCE7C4'/%3E%3Cstop offset='100%25' stop-color='%23E8A95C'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='16' cy='27.2' rx='13' ry='1.4' fill='%23C8772E' opacity='0.35'/%3E%3Cpath d='M5 17 L5 25 Q5 27 7 27 L25 27 Q27 27 27 25 L27 17 Z' fill='url(%23ck)'/%3E%3Cline x1='5.5' y1='22' x2='26.5' y2='22' stroke='%23C8772E' stroke-width='0.4' opacity='0.55'/%3E%3Cpath d='M5 17 Q6.2 15 7.8 16.5 Q9.3 14 10.8 16.5 Q12.3 14 13.8 16.5 Q15.3 14 16 16.5 Q16.7 14 18.2 16.5 Q19.7 14 21.2 16.5 Q22.7 14 24.2 16.5 Q25.8 15 27 17 L27 12 Q16 9 5 12 Z' fill='url(%23ft)'/%3E%3Ccircle cx='16' cy='8.5' r='2.2' fill='%23B83E5C'/%3E%3Cellipse cx='15.2' cy='7.8' rx='0.7' ry='0.4' fill='%23FFF' opacity='0.7'/%3E%3Cpath d='M16 6.3 Q17.5 4.2 18.5 3.6' stroke='%235C3318' stroke-width='0.7' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 2px 6px rgba(228, 124, 149, 0.30));
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-6deg) scale(1.06); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav-logo-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.04em; }
.nav-logo-text small  { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase; }

.nav-menu {
  display: flex; list-style: none; gap: var(--space-2);
  margin: 0; padding: 6px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.nav-menu a {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-menu a:hover { color: var(--text-primary); background: var(--surface-hover); }
.nav-menu a.is-active { color: var(--chocolate); background: var(--cream); }

.nav-cta-desktop {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--gradient-button);
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  box-shadow: var(--glow-caramel);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.nav-cta-desktop:hover { color: var(--text-on-dark); transform: translateY(-1px); box-shadow: var(--glow-caramel-strong); }
.nav-cta-desktop .arrow { transition: transform var(--transition-base); }
.nav-cta-desktop:hover .arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  background: transparent; border: none; padding: 8px;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0;
  background: rgba(255, 248, 241, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: calc(var(--z-nav) - 1);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-5);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-base);
  padding: var(--space-8);
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  font-weight: 500;
}
.nav-mobile a.btn { font-size: var(--text-sm); margin-top: var(--space-4); }
.nav-mobile-close {
  position: absolute; top: var(--space-6); right: var(--space-6);
  background: transparent; border: none; padding: 8px;
  color: var(--text-primary); width: 40px; height: 40px;
}
.nav-mobile-close svg { width: 24px; height: 24px; }

@media (max-width: 920px) {
  .nav-menu, .nav-cta-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  white-space: nowrap;
}
.btn .arrow { transition: transform var(--transition-base); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--cream);
  color: var(--chocolate);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--cream-soft); color: var(--chocolate); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-glow {
  background: var(--gradient-button);
  color: var(--text-on-dark);
  box-shadow: var(--glow-caramel);
}
.btn-glow:hover { color: var(--text-on-dark); transform: translateY(-2px); box-shadow: var(--glow-caramel-strong); }
.btn-rose {
  background: var(--gradient-button-rose);
  color: var(--text-on-dark);
  box-shadow: var(--glow-rose);
}
.btn-rose:hover { color: var(--text-on-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-ghost:hover { background: var(--surface-hover); color: var(--text-primary); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-md); }

/* ====== Hero ====== */
.hero {
  padding: clamp(7rem, 12vw, 10rem) 0 var(--section-padding-y);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  margin-bottom: var(--space-6);
}
.hero-badge::before {
  content: "✦";
  color: var(--gold);
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
}
.hero h1 { margin-bottom: var(--space-6); }
.hero-lead {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 50ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}
.hero-stats > div { text-align: left; }
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.hero-stats span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
@media (max-width: 600px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--gradient-cream);
  box-shadow: var(--shadow-xl), 0 0 80px rgba(228, 124, 149, 0.25);
  border: 1px solid var(--border-strong);
}
.hero-visual video, .hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(228, 124, 149, 0.10) 100%);
  pointer-events: none;
}
.hero-visual-badge {
  position: absolute; bottom: var(--space-6); left: var(--space-6);
  background: var(--surface-glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--rose-deep);
}

/* ====== Section ====== */
section { padding: var(--section-padding-y) 0; position: relative; }
.section-head { text-align: center; max-width: 70ch; margin: 0 auto var(--space-12); }

/* ====== Marquee ====== */
.marquee {
  background: var(--gradient-caramel);
  color: var(--text-on-dark);
  padding: var(--space-5) 0;
  overflow: hidden;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
.marquee-track {
  display: flex; gap: var(--space-12);
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
}
.marquee-track span { display: inline-flex; align-items: center; gap: var(--space-4); }
.marquee-track span::after { content: "✦"; color: var(--gold-light); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ====== Product cards (con video) ====== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-card-hover);
  border-color: var(--border-strong);
}
.product-video-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
  background: var(--gradient-cream);
  box-shadow: inset 0 0 40px rgba(232, 169, 92, 0.10);
}
.product-video-wrap video, .product-video-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.product-card p { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.product-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--caramel-deep);
  text-transform: none;
  letter-spacing: 0;
}
.product-card .btn { margin-top: auto; }

/* ====== USP / Manifesto ====== */
.manifesto {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 90% 10%, rgba(228, 124, 149, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
@media (max-width: 820px) { .manifesto-pillars { grid-template-columns: 1fr; } }

.pillar { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg-secondary); border: 1px solid var(--border-subtle); }
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-button);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h4 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.pillar p { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; }

/* ====== Value cards (used in encargos/steps) ====== */
.value-card {
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  margin-bottom: var(--space-3);
}
.value-title { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.value-desc { color: var(--text-secondary); font-size: var(--text-sm); margin: 0; }

/* ====== Process grid ====== */
.process-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-12); align-items: center; }
@media (max-width: 920px) { .process-grid { grid-template-columns: 1fr; } }
.process-steps { display: flex; flex-direction: column; gap: var(--space-4); }
.process-step {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}
.process-step:hover, .process-step.is-active {
  border-color: var(--border-strong);
  box-shadow: var(--glow-card-hover);
  transform: translateX(4px);
}
.process-step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--caramel-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: block;
}
.process-step h4 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.process-step p { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; }

.process-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  background: var(--gradient-rose);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.process-visual::before, .process-visual::after {
  content: ""; position: absolute;
  border: 1px dashed rgba(255, 248, 241, 0.6);
  border-radius: var(--radius-full);
  animation: orbit 20s linear infinite;
}
.process-visual::before { inset: 12%; }
.process-visual::after  { inset: 28%; animation-duration: 30s; animation-direction: reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.process-cupcake {
  width: 50%; height: 50%;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 35% 25%, #FFF8F1 0%, var(--cream) 30%, var(--caramel) 70%, var(--caramel-deep) 100%);
  box-shadow: var(--glow-caramel-strong), inset -10px -15px 30px rgba(74, 44, 32, 0.20);
  position: relative;
}
.process-cupcake::after {
  content: "✦";
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  font-size: 2rem; color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.9);
}

/* ====== Stats ====== */
.stats {
  padding: var(--space-8);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ====== Testimonials ====== */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.testimonial {
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute; top: -10px; left: var(--space-5);
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--caramel);
  line-height: 1;
}
.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  margin-top: var(--space-3);
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--gradient-rose);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark);
  font-weight: 600;
}
.testimonial-author strong { display: block; font-size: var(--text-sm); }
.testimonial-author span { font-size: var(--text-xs); color: var(--text-muted); }

/* ====== CTA final ====== */
.cta-final {
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem);
  background: var(--gradient-rose);
  color: var(--chocolate);
  border-radius: var(--radius-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(255, 255, 255, 0.35) 0%, transparent 60%),
    radial-gradient(50% 60% at 88% 80%, rgba(232, 169, 92, 0.30) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final h2 { color: var(--chocolate); position: relative; }
.cta-final p { position: relative; max-width: 56ch; margin: 0 auto var(--space-8); color: var(--chocolate); }
.cta-final-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; position: relative; }

/* ====== Page header ====== */
.page-header {
  padding: clamp(6rem, 8vw, 7.5rem) 0 var(--space-10);
  text-align: center;
  background: var(--gradient-cream);
  border-bottom: 1px solid var(--border-subtle);
}
.page-header h1 { font-size: var(--text-4xl); }
.page-header p { font-size: var(--text-md); max-width: 60ch; margin: 0 auto; color: var(--text-secondary); }

/* ====== Forms ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); } }
.contact-info { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-info-item {
  display: flex; gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.contact-info-item:hover { border-color: var(--border-strong); transform: translateX(4px); }
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-button);
  color: var(--text-on-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.contact-info-item > div { min-width: 0; }
.contact-info-value { font-weight: 500; color: var(--text-primary); overflow-wrap: anywhere; word-break: break-word; }
.contact-info-value a { color: var(--text-primary); overflow-wrap: anywhere; }
.contact-info-value a:hover { color: var(--rose-deep); }

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; flex-direction: column; gap: var(--space-5);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; }
.form-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 4px rgba(228, 124, 149, 0.15);
}
.form-textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239C7B66' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--space-4) center; padding-right: var(--space-10); }

.form-status {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.form-status strong { font-family: var(--font-display); font-size: var(--text-md); display: block; margin-bottom: var(--space-2); }
.form-status--loading { background: rgba(232, 169, 92, 0.10); color: var(--caramel-deep); border: 1px solid var(--border-strong); }
.form-status--success { background: rgba(180, 212, 184, 0.16); color: #2C5530; border: 1px solid rgba(180, 212, 184, 0.50); box-shadow: 0 0 30px rgba(180, 212, 184, 0.20); }
.form-status--error   { background: rgba(184, 62, 92, 0.08); color: var(--berry); border: 1px solid rgba(184, 62, 92, 0.30); }
.form-status a { color: inherit; text-decoration: underline; font-weight: 600; }
.form-status-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(232, 169, 92, 0.3);
  border-top-color: var(--caramel-deep);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  vertical-align: middle; margin-right: var(--space-2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== Blog filters ====== */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-8);
}
.blog-filter {
  padding: var(--space-2) var(--space-4);
  background: var(--surface-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}
.blog-filter:hover { color: var(--text-primary); border-color: var(--border-strong); }
.blog-filter.is-active { background: var(--cream); color: var(--chocolate); border-color: var(--caramel); }

.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  color: var(--text-primary);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--glow-card-hover); color: var(--text-primary); }
.blog-card.is-hidden { display: none; }
.blog-card-image {
  aspect-ratio: 16/9;
  background: var(--gradient-rose);
  position: relative;
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-3); }
.blog-card h3 { font-size: var(--text-md); margin-bottom: var(--space-3); }
.blog-card p { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-4); flex: 1; }
.blog-card-read {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel-deep);
}

/* ====== Article ====== */
.article-wrap { max-width: 720px; margin: 0 auto; padding: var(--space-10) 0; }
.article-meta-top { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.article-meta-top span { padding: var(--space-1) var(--space-3); background: var(--surface-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-full); }
.article-title { font-size: var(--text-4xl); margin-bottom: var(--space-6); }
.article-cover { margin: var(--space-8) 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.article-cover img { width: 100%; height: auto; }
.article-body p, .article-body ul, .article-body ol { font-size: var(--text-base); color: var(--text-primary); line-height: 1.85; margin-bottom: var(--space-5); }
.article-body h2 { font-size: var(--text-2xl); margin-top: var(--space-10); margin-bottom: var(--space-4); }
.article-body h3 { font-size: var(--text-lg); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.article-body ul, .article-body ol { padding-left: var(--space-6); }
.article-body li { margin-bottom: var(--space-2); }
.article-body strong { color: var(--chocolate); }
.article-body blockquote {
  border-left: 3px solid var(--rose-deep);
  background: var(--bg-secondary);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
}
.article-author {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-top: var(--space-10);
}
.article-author-avatar {
  width: 56px; height: 56px; border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--cream);
}
.article-author-info strong { display: block; font-size: var(--text-sm); margin-bottom: 2px; }
.article-author-info span { font-size: var(--text-xs); color: var(--text-muted); }

/* ====== FAQ ====== */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
}
.faq-item.is-open { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%; padding: var(--space-5) var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-primary);
}
.faq-question::after {
  content: "+"; font-size: 1.5rem; color: var(--caramel-deep);
  transition: transform var(--transition-base);
  margin-left: var(--space-3);
}
.faq-item.is-open .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 var(--space-6) var(--space-5); color: var(--text-secondary); font-size: var(--text-sm); }
.faq-item:not(.is-open) .faq-answer { display: none; }

/* ====== Footer ====== */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--section-padding-y);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-block .nav-logo-text strong, .footer-brand-block .nav-logo-text small { color: var(--text-on-dark); }
.footer-brand-block .nav-logo { color: var(--text-on-dark); }
.footer-tagline { color: rgba(255, 248, 241, 0.65); font-size: var(--text-sm); margin-top: var(--space-4); max-width: 32ch; }
.footer-col h6 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { color: rgba(255, 248, 241, 0.75); font-size: var(--text-sm); }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255, 248, 241, 0.12);
  padding-top: var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
  color: rgba(255, 248, 241, 0.50);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}
.footer-legal { display: flex; gap: var(--space-5); }
.footer-legal a { color: rgba(255, 248, 241, 0.55); }
.footer-legal a:hover { color: var(--text-on-dark); }

/* ====== WhatsApp float ====== */
.wa-float {
  position: fixed; bottom: var(--space-6); right: var(--space-6);
  z-index: var(--z-toast);
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.40);
  transition: transform var(--transition-base);
}
.wa-float:hover { color: white; transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ====== Back to top ====== */
.back-top {
  position: fixed; bottom: calc(var(--space-6) + 70px); right: var(--space-6);
  z-index: var(--z-toast);
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--chocolate);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  box-shadow: var(--shadow-md);
}
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top svg { width: 18px; height: 18px; }

/* ====== Cookie banner ====== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-5);
  z-index: var(--z-modal);
  transform: translateY(110%);
  transition: transform var(--transition-slow);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
  justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: var(--text-sm); flex: 1; min-width: 260px; }
.cookie-banner-actions { display: flex; gap: var(--space-3); }

/* ====== 404 ====== */
.e404-wrap { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-20) var(--content-padding); text-align: center; }
.e404-cupcake {
  width: 200px; height: 200px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 35% 25%, var(--cream-soft) 0%, var(--rose-blush) 35%, var(--rose-deep) 90%);
  box-shadow: var(--glow-rose), inset -15px -20px 40px rgba(74, 44, 32, 0.20);
  margin-bottom: var(--space-8);
  position: relative;
  animation: floaty 4s ease-in-out infinite;
}
.e404-cupcake::after {
  content: "✦"; position: absolute; top: -15%; left: 50%; transform: translateX(-50%);
  font-size: 3rem; color: var(--gold); text-shadow: 0 0 16px rgba(212, 175, 55, 0.9);
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.e404-title { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.e404-subtitle { font-size: var(--text-md); color: var(--text-secondary); max-width: 50ch; margin: 0 auto var(--space-8); }
.e404-rescue { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }

/* ====== Steps grid (encargos) ====== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 820px) { .steps-grid { grid-template-columns: 1fr; } }

/* ====== Product detail page ====== */
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 920px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-detail-video {
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--gradient-cream);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-strong);
}
.product-detail-video video, .product-detail-video img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.product-variants { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-6) 0; }
.product-variant {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between;
}
.product-variant strong { font-family: var(--font-display); font-size: var(--text-md); }
.product-variant span { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--caramel-deep); }
.product-detail-features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-6); }
.product-feature { padding: var(--space-4); background: var(--bg-secondary); border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
.product-feature-label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); display: block; margin-bottom: var(--space-1); }
.product-feature-value { font-family: var(--font-display); font-size: var(--text-md); color: var(--chocolate); }

/* ====== Utility ====== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
