:root {
  --cream: #FEEFC4;
  --cream-light: #FBF6E9;
  --terracotta: #AF4B0F;
  --terracotta-dark: #8A3B0C;
  --espresso: #3B2417;
  --walnut: #6B4226;
  --tan: #D9B98A;
  --white: #FFFFFF;

  --font-serif: 'Fraunces', serif;
  --font-sans: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== Vetas de madera realistas (ruido fractal, no líneas geométricas) ===== */
.wood-grain-light {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='w' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.09' numOctaves='5' seed='11' stitchTiles='stitch' result='n'/%3E%3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.26 0 0 0 0 0.13 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='k' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.002 0.015' numOctaves='2' seed='4' stitchTiles='stitch' result='n'/%3E%3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 0.29 0 0 0 0 0.16 0 0 0 0 0.08 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
  background-blend-mode: multiply, normal;
}
.wood-grain-dark {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='w' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.09' numOctaves='5' seed='11' stitchTiles='stitch' result='n'/%3E%3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 0.05 0 0 0 0 0.02 0 0 0 0 0.0 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='k' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.002 0.015' numOctaves='2' seed='4' stitchTiles='stitch' result='n'/%3E%3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
  background-blend-mode: soft-light, normal;
}

html { overflow-x: hidden; width: 100%; scroll-behavior: smooth; }
body { width: 100%; background: var(--cream-light); color: var(--espresso); font-family: var(--font-sans); line-height: 1.6; }

img { max-width: 100%; display: block; }

section[id], div[id] { scroll-margin-top: 95px; }
@media (max-width: 768px) {
  section[id], div[id] { scroll-margin-top: 75px; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 99999;
  background: var(--terracotta); color: var(--white); padding: 10px 18px;
  border-radius: 6px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed !important;
  bottom: 28px; right: 28px;
  width: 62px; height: 62px;
  background: #25D366; color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  z-index: 9999;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  animation: pulseWhatsapp 2s infinite;
}
@keyframes pulseWhatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 768px) {
  .whatsapp-float { bottom: max(22px, env(safe-area-inset-bottom)); right: 18px; }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--cream-light);
  border-bottom: 1px solid var(--tan);
  transition: padding .25s ease, box-shadow .25s ease;
}
.navbar.scrolled { padding: 2px 0; box-shadow: 0 2px 12px rgba(59,36,23,.08); }
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--espresso); flex-shrink: 0; }
.navbar-logo img { border-radius: 50%; }
.navbar-logo span { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; }

.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--espresso); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--terracotta); }

.nav-cta {
  background: var(--terracotta); color: var(--white); text-decoration: none;
  padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: .9rem;
  white-space: nowrap; flex-shrink: 0; transition: background .2s;
}
.nav-cta:hover { background: var(--terracotta-dark); }

.cart-btn {
  position: relative; background: none; border: none; cursor: pointer; text-decoration: none;
  color: var(--espresso); padding: 8px; flex-shrink: 0; display: flex; align-items: center;
}
.cart-btn:hover { color: var(--terracotta); }
.cart-badge {
  position: absolute; top: 0; right: 0; background: var(--terracotta); color: var(--white);
  font-size: .68rem; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 999px;
  min-width: 16px; text-align: center;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { width: 24px; height: 2px; background: var(--espresso); border-radius: 2px; }

@media (max-width: 1024px) {
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream-light); flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    border-bottom: 1px solid var(--tan);
  }
  .nav-links.open { max-height: 300px; }
  .nav-links li { border-top: 1px solid var(--tan); }
  .nav-links a { display: block; padding: 16px 5%; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 140px 5% 80px;
  background:
    radial-gradient(circle at 15% 20%, rgba(175,75,15,.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(175,75,15,.06) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-light) 100%);
  position: relative;
  overflow: hidden;
}
.hero-content { max-width: 640px; position: relative; z-index: 2; }
.hero-brand {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem); color: var(--espresso); margin-bottom: 10px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  color: var(--terracotta); font-weight: 600; margin-bottom: 30px;
}
.hero-logo {
  margin: 0 auto 24px; border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(251,246,233,.75), 0 14px 34px rgba(59,36,23,.35);
}
.hero-logo-float { animation: floatLogo 5s ease-in-out infinite; }
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-float { animation: none; }
}

/* Decoración de ondas de sonido en el hero */
.hero-decor {
  position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 6px; height: 40px; opacity: .35; z-index: 1;
}
.wave-bar {
  width: 4px; border-radius: 3px; background: var(--terracotta);
  animation: waveMove 1.6s ease-in-out infinite;
}
.wave-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 24px; animation-delay: .1s; }
.wave-bar:nth-child(3) { height: 36px; animation-delay: .2s; }
.wave-bar:nth-child(4) { height: 18px; animation-delay: .3s; }
.wave-bar:nth-child(5) { height: 30px; animation-delay: .4s; }
.wave-bar:nth-child(6) { height: 16px; animation-delay: .5s; }
.wave-bar:nth-child(7) { height: 26px; animation-delay: .6s; }
@keyframes waveMove {
  0%, 100% { transform: scaleY(.5); }
  50% { transform: scaleY(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-bar { animation: none; }
}

.btn-glow { position: relative; }
.btn-glow::after {
  content: ''; position: absolute; inset: -3px; border-radius: 13px;
  background: var(--terracotta); opacity: .35; z-index: -1;
  animation: glowPulse 2.4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .25; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-glow::after { animation: none; display: none; }
}

.hero-tagline {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem); color: var(--espresso); margin-bottom: 18px; line-height: 1.15;
}
.hero-subtitle { font-size: 1.05rem; color: var(--walnut); max-width: 480px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; padding: 15px 30px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; transition: transform .15s ease, background .2s ease;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--espresso); border: 1.5px solid var(--tan); }
.btn-secondary:hover { border-color: var(--terracotta); color: var(--terracotta); }

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--terracotta); opacity: .7; animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== Secciones ===== */
.section { padding: 100px 5%; content-visibility: auto; contain-intrinsic-size: auto 600px; position: relative; isolation: isolate; }
.section-alt { background: var(--cream); }
.section::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-blend-mode: multiply;
}
#proceso {
  background: linear-gradient(120deg, #E3C393 0%, #C89A63 40%, #A9743F 100%);
}

/* ===== Vetas de madera — solo 2 tonos en toda la página: claro (aquí, en "Nuestro oficio",
   donde de verdad se habla de madera) y oscuro (en los llamados a la acción y el footer).
   El resto de las secciones usa color plano, sin textura, para que se sienta más limpio,
   minimalista y para no competir con el texto. La base ya es un degradado de madera real
   (tan a nogal); la textura solo agrega vetas oscuras encima (multiply), nunca aclara,
   así no se lava a un gris difuso. ===== */
#proceso::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.1' numOctaves='4' seed='43' stitchTiles='stitch' result='n'/%3E%3CfeComponentTransfer in='n' result='s'%3E%3CfeFuncA type='gamma' amplitude='1' exponent='2.2' offset='0'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix in='s' type='matrix' values='0 0 0 0 0.32 0 0 0 0 0.16 0 0 0 0 0.05 0 0 0 0.65 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
}
.proceso-panel {
  display: inline-block; max-width: 640px; margin: 0 auto;
  background: rgba(255,248,232,.92); padding: 32px 36px; border-radius: 20px;
  box-shadow: 0 4px 18px rgba(59,36,23,.12);
}
#proceso .proceso-panel .eyebrow { margin-bottom: 12px; }
#proceso .proceso-panel h2 { color: var(--espresso); }
#proceso .proceso-panel .section-text {
  color: var(--espresso); font-weight: 500; margin-bottom: 0;
}
.quiz-section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.09' numOctaves='4' seed='19' stitchTiles='stitch' result='n'/%3E%3CfeComponentTransfer in='n' result='s'%3E%3CfeFuncA type='gamma' amplitude='1' exponent='2.4' offset='0'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix in='s' type='matrix' values='0 0 0 0 0.03 0 0 0 0 0.015 0 0 0 0 0 0 0 0 0.65 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-blend-mode: soft-light;
}
.special-section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009 0.1' numOctaves='4' seed='51' stitchTiles='stitch' result='n'/%3E%3CfeComponentTransfer in='n' result='s'%3E%3CfeFuncA type='gamma' amplitude='1' exponent='2.4' offset='0'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix in='s' type='matrix' values='0 0 0 0 0.03 0 0 0 0 0.015 0 0 0 0 0 0 0 0 0.65 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-blend-mode: soft-light;
}
.section-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.section-inner h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; color: var(--espresso);
}
.divider {
  display: block; width: 64px; height: 12px; margin: 0 auto 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 12' fill='none'%3E%3Cpath d='M2 7C9 3 14 10 21 6C28 2 33 9 40 5C47 1 52 8 59 4' stroke='%23AF4B0F' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section-text { font-size: 1.05rem; color: var(--walnut); max-width: 640px; margin: 0 auto 40px; }

/* ===== Historia: texto + foto real de una flauta (única foto de producto del inicio) ===== */
.historia-layout {
  max-width: 1040px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.historia-layout .historia-text { text-align: left; }
.historia-layout .divider { margin-left: 0; }
.historia-layout .section-text { margin-left: 0; margin-right: 0; max-width: none; }
.historia-photo { display: flex; justify-content: center; }
.historia-photo img {
  width: 100%; max-width: 240px; height: auto;
  /* Sombra más marcada que separe la madera del fondo crema — misma familia de
     tono, así que sin esto la flauta se ve un poco "plana" contra la página. */
  filter: drop-shadow(0 4px 5px rgba(59,36,23,.35)) drop-shadow(0 20px 22px rgba(59,36,23,.28));
}
@media (max-width: 820px) {
  .historia-layout { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .historia-layout .historia-text { text-align: center; }
  .historia-layout .divider { margin-left: auto; margin-right: auto; }
  .historia-layout .section-text { margin-left: auto; margin-right: auto; max-width: 480px; }
  .historia-photo { order: -1; }
  .historia-photo img { max-width: 180px; }
}

.wood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
@media (max-width: 768px) { .wood-grid { grid-template-columns: 1fr; } }
.wood-card {
  background: var(--white); border: 1px solid var(--tan); border-radius: 16px; padding: 32px 20px;
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease;
}
.wood-card.in-view { opacity: 1; transform: translateY(0); }
.wood-swatch {
  display: block; width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 16px;
  box-shadow: inset 0 0 10px rgba(0,0,0,.2), 0 2px 6px rgba(59,36,23,.15);
}
.wood-card h3 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 8px; color: var(--espresso); }
.wood-card p { color: var(--walnut); font-size: .95rem; }

/* ===== Texturas de madera — fotos reales de las maderas de Milio ===== */
.swatch-teca { background: url('assets/wood-teca.jpg') center / cover no-repeat; }
.swatch-tzalam { background: url('assets/wood-tzalam.jpg') center / cover no-repeat; }
.swatch-cedro { background: url('assets/wood-cedro.jpg') center / cover no-repeat; }

/* ===== Estilos de flauta (identidad visual, no madera) ===== */
.swatch-pentatonica_sencilla { background: linear-gradient(135deg, #FEEFC4 0%, #D9B98A 100%); }
.swatch-pentatonica_doble { background: linear-gradient(135deg, #E8C588 0%, #AF4B0F 100%); }
.swatch-pentatonica_triple { background: linear-gradient(135deg, #AF4B0F 0%, #6B4226 100%); }
.swatch-aeolian { background: linear-gradient(135deg, #6B4226 0%, #3B2417 100%); }
.swatch-hijaz_kiar { background: radial-gradient(circle at 30% 30%, #C1693B 0%, #3B2417 100%); }

/* Iconos de línea artesanal sobre cada degradado — no son fotos del producto,
   solo identidad visual por estilo (mientras no haya fotos reales de Milio). */
.swatch-pentatonica_sencilla, .swatch-pentatonica_doble, .swatch-pentatonica_triple,
.swatch-aeolian, .swatch-hijaz_kiar { position: relative; }
.swatch-pentatonica_sencilla::after, .swatch-pentatonica_doble::after, .swatch-pentatonica_triple::after,
.swatch-aeolian::after, .swatch-hijaz_kiar::after {
  content: ''; position: absolute; inset: 0;
  background-repeat: no-repeat; background-position: center; background-size: 58% auto;
}
.swatch-pentatonica_sencilla::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 50'%3E%3Cg fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' opacity='0.92'%3E%3Crect x='12' y='21' width='116' height='8' rx='4'/%3E%3Crect x='60' y='12' width='16' height='10' rx='2'/%3E%3Cline x1='58' y1='12' x2='53' y2='21'/%3E%3Cline x1='78' y1='12' x2='83' y2='21'/%3E%3Ccircle cx='32' cy='25' r='1.8' fill='white' stroke='none'/%3E%3Ccircle cx='46' cy='25' r='1.8' fill='white' stroke='none'/%3E%3Ccircle cx='94' cy='25' r='1.8' fill='white' stroke='none'/%3E%3Ccircle cx='108' cy='25' r='1.8' fill='white' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}
.swatch-pentatonica_doble::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 50'%3E%3Cg fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.92'%3E%3Crect x='12' y='14' width='116' height='7' rx='3.5'/%3E%3Crect x='12' y='27' width='116' height='7' rx='3.5'/%3E%3Cline x1='58' y1='11' x2='58' y2='37'/%3E%3Cline x1='80' y1='11' x2='80' y2='37'/%3E%3Ccircle cx='32' cy='17.5' r='1.6' fill='white' stroke='none'/%3E%3Ccircle cx='46' cy='17.5' r='1.6' fill='white' stroke='none'/%3E%3Ccircle cx='94' cy='17.5' r='1.6' fill='white' stroke='none'/%3E%3Ccircle cx='108' cy='17.5' r='1.6' fill='white' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}
.swatch-pentatonica_triple::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 50'%3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.92'%3E%3Crect x='12' y='9' width='116' height='6' rx='3'/%3E%3Crect x='12' y='22' width='116' height='6' rx='3'/%3E%3Crect x='12' y='35' width='116' height='6' rx='3'/%3E%3Cline x1='58' y1='6' x2='58' y2='44'/%3E%3Cline x1='80' y1='6' x2='80' y2='44'/%3E%3C/g%3E%3C/svg%3E");
}
.swatch-aeolian::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 50'%3E%3Cg fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' opacity='0.92'%3E%3Crect x='12' y='24' width='116' height='8' rx='4'/%3E%3Crect x='60' y='15' width='16' height='10' rx='2'/%3E%3Cline x1='58' y1='15' x2='53' y2='24'/%3E%3Cline x1='78' y1='15' x2='83' y2='24'/%3E%3Ccircle cx='32' cy='28' r='1.8' fill='white' stroke='none'/%3E%3Ccircle cx='46' cy='28' r='1.8' fill='white' stroke='none'/%3E%3C/g%3E%3Cpath d='M108 10a6 6 0 1 0 4 10.6A7.4 7.4 0 0 1 108 10Z' fill='white' opacity='0.85'/%3E%3C/svg%3E");
}
.swatch-hijaz_kiar::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 50'%3E%3Cg fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' opacity='0.92'%3E%3Crect x='12' y='24' width='116' height='8' rx='4'/%3E%3Crect x='60' y='15' width='16' height='10' rx='2'/%3E%3Cline x1='58' y1='15' x2='53' y2='24'/%3E%3Cline x1='78' y1='15' x2='83' y2='24'/%3E%3Ccircle cx='32' cy='28' r='1.8' fill='white' stroke='none'/%3E%3Ccircle cx='46' cy='28' r='1.8' fill='white' stroke='none'/%3E%3C/g%3E%3Cpath d='M110 6l2.2 5.8L118 14l-5.8 2.2L110 22l-2.2-5.8L102 14l5.8-2.2Z' fill='white' opacity='0.85'/%3E%3C/svg%3E");
}

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; margin-top: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border-radius: 16px; padding: 28px 22px; border: 1px solid var(--tan);
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease;
}
.step.in-view { opacity: 1; transform: translateY(0); }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--terracotta); color: var(--white);
  font-family: var(--font-serif); font-weight: 600; margin-bottom: 14px;
}
.step h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 8px; color: var(--espresso); }
.step p { color: var(--walnut); font-size: .92rem; }

/* ===== Catálogo (flute cards) ===== */
.flute-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 28px; text-align: left;
}
.flute-card {
  background: var(--white); border: 1px solid var(--tan); border-radius: 16px; overflow: hidden;
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.flute-card.in-view { opacity: 1; transform: translateY(0); }
.flute-card:hover { box-shadow: 0 8px 24px rgba(59,36,23,.12); }
/* Las fotos reales (<img>) ya vienen sin fondo (recortadas a la silueta de la
   flauta), así que "flotan" directo sobre el color de la tarjeta — nada de caja
   ni rectángulo detrás, para que se vea como foto de producto y no como pegote.
   Los estilos que todavía no tienen foto real siguen usando el ícono ilustrativo
   (<div class="swatch-...">), que ignora object-fit y se ve igual que antes. */
.flute-card-swatch { display: block; width: 100%; height: 300px; object-fit: contain; }
/* Las flautas son fotos altas y angostas: sin este "aire" (padding) alrededor, el
   objeto llena el cuadro de borde a borde y las esquinas redondeadas de la tarjeta
   le muerden la punta de arriba — además se ve apretado. El padding le da margen
   real por los cuatro lados antes de que entre a object-fit. */
img.flute-card-swatch {
  padding: 26px 34px; box-sizing: border-box;
  filter: drop-shadow(0 2px 3px rgba(59,36,23,.3)) drop-shadow(0 8px 12px rgba(59,36,23,.18));
}
.flute-card h3 { font-family: var(--font-serif); font-size: 1.15rem; margin: 18px 20px 6px; color: var(--espresso); }
.flute-card-tagline { color: var(--walnut); font-size: .9rem; margin: 0 20px 14px; flex-grow: 1; }
.flute-card-price { color: var(--terracotta); font-weight: 600; font-size: .95rem; margin: 0 20px 16px; }
.flute-card .btn { margin: 0 20px 20px; text-align: center; }
.btn-small { padding: 10px 18px; font-size: .85rem; }

/* ===== Precios visibles directo en cada tarjeta del catálogo, sin tener que dar clic ===== */
.price-preview { margin: 0 20px 16px; font-size: .85rem; }
.price-preview summary {
  cursor: pointer; color: var(--terracotta); font-weight: 600; list-style: none;
}
.price-preview summary::-webkit-details-marker { display: none; }
.price-preview summary::before { content: '▸ '; }
.price-preview[open] summary::before { content: '▾ '; }
.price-preview-group {
  margin-top: 12px; font-weight: 600; color: var(--walnut); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.price-preview-list { list-style: none; margin-top: 6px; }
.price-preview-list li {
  display: flex; justify-content: space-between; padding: 5px 0;
  border-bottom: 1px dashed var(--tan); color: var(--espresso);
}

/* ===== Cuestionario ===== */
.quiz-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(217,185,138,.35); border-radius: 20px;
  padding: 36px 28px; max-width: 560px; margin: 0 auto; text-align: center;
}
.quiz-progress { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--tan); margin-bottom: 10px; }
.quiz-question { font-family: var(--font-serif); font-size: 1.4rem; color: var(--white); margin-bottom: 22px; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  background: transparent; border: 1.5px solid var(--tan); color: var(--cream-light);
  padding: 14px 18px; border-radius: 12px; font-size: .95rem; font-family: var(--font-sans);
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.quiz-option:hover { background: rgba(217,185,138,.14); border-color: var(--terracotta); }
.quiz-back {
  background: none; border: none; color: var(--tan); font-size: .85rem; margin-top: 18px;
  cursor: pointer; text-decoration: underline;
}
.quiz-result .flute-card-swatch { border-radius: 14px; height: 260px; margin-bottom: 18px; }
.quiz-result h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--white); margin-bottom: 8px; }
.quiz-result .flute-card-tagline { color: var(--tan); margin-bottom: 12px; }
.quiz-result .flute-card-price { color: var(--cream); margin-bottom: 20px; }
.quiz-result .btn-primary { margin-bottom: 10px; }
.quiz-note { font-size: .85rem; color: var(--tan); margin-top: 14px; }
.quiz-note a { color: var(--cream); }

/* ===== Configurador ===== */
.config-box { max-width: 640px; margin: 0 auto; text-align: left; }
/* Vista previa: foto real de la flauta elegida, flotando (sin caja), se actualiza
   sola al cambiar tipo o madera. El ícono ilustrativo (cuando no hay foto todavía)
   sí necesita su fondo de degradado, por eso solo se le quita el fondo a la <img>. */
.config-preview { display: flex; justify-content: center; margin-bottom: 24px; }
.config-preview-img { width: 100%; max-width: 300px; height: 300px; border-radius: 10px; }
div.config-preview-img { background: var(--cream-light); padding: 14px; box-sizing: border-box; }
.config-selected-style { text-align: center; color: var(--walnut); margin-bottom: 28px; }
.link-btn { background: none; border: none; color: var(--terracotta); text-decoration: underline; cursor: pointer; font-size: .9rem; }
.config-block { margin-bottom: 30px; }
.config-block h3 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--espresso); margin-bottom: 14px; }
.config-options { display: flex; flex-wrap: wrap; gap: 10px; }
.config-chip {
  background: var(--white); border: 1.5px solid var(--tan); border-radius: 10px;
  padding: 10px 18px; font-size: .9rem; color: var(--espresso); cursor: pointer;
  transition: border-color .2s ease, background .2s ease; display: inline-flex; align-items: center; gap: 8px;
}
.config-chip:hover { border-color: var(--terracotta); }
.config-chip.selected { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }
.config-hint { color: var(--walnut); font-size: .9rem; }
.config-block-hint { font-size: .85rem; color: var(--walnut); margin-bottom: 12px; }
.config-block-hint a { color: var(--terracotta); }

/* ===== Tonalidad — tarjetas tipo producto (nota + precio juntos, como una tienda real) ===== */
.tonalidad-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; margin-bottom: 4px;
}
.tonalidad-card {
  background: var(--white); border: 1.5px solid var(--tan); border-radius: 16px;
  padding: 18px 12px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .2s ease, background .2s ease, transform .15s ease, box-shadow .2s ease;
  animation: notePop .4s ease backwards;
}
.tonalidad-grid .tonalidad-card:nth-child(1) { animation-delay: .02s; }
.tonalidad-grid .tonalidad-card:nth-child(2) { animation-delay: .05s; }
.tonalidad-grid .tonalidad-card:nth-child(3) { animation-delay: .08s; }
.tonalidad-grid .tonalidad-card:nth-child(4) { animation-delay: .11s; }
.tonalidad-grid .tonalidad-card:nth-child(5) { animation-delay: .14s; }
.tonalidad-grid .tonalidad-card:nth-child(6) { animation-delay: .17s; }
.tonalidad-grid .tonalidad-card:nth-child(7) { animation-delay: .2s; }
.tonalidad-grid .tonalidad-card:nth-child(8) { animation-delay: .23s; }
.tonalidad-grid .tonalidad-card:nth-child(9) { animation-delay: .26s; }
.tonalidad-grid .tonalidad-card:nth-child(10) { animation-delay: .29s; }
@keyframes notePop {
  from { opacity: 0; transform: scale(.9) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .tonalidad-card { animation: none; } }
.tonalidad-card:hover { border-color: var(--terracotta); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(59,36,23,.1); }
.tonalidad-card.selected { background: var(--terracotta); border-color: var(--terracotta); }
.note-icon { color: var(--terracotta); transform: rotate(-8deg); }
.tonalidad-card.selected .note-icon { color: var(--white); }
.tonalidad-card-name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--espresso); }
.tonalidad-card.selected .tonalidad-card-name { color: var(--white); }
.tonalidad-card-price { font-size: .82rem; color: var(--walnut); }
.tonalidad-card.selected .tonalidad-card-price { color: rgba(255,255,255,.85); }

/* ===== Madera — tarjetas con muestra de color y descripción ===== */
.madera-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.madera-card {
  background: var(--white); border: 1.5px solid var(--tan); border-radius: 16px;
  padding: 20px 16px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color .2s ease, background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.madera-card:hover { border-color: var(--terracotta); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(59,36,23,.1); }
.madera-card.selected { background: var(--terracotta); border-color: var(--terracotta); }
.madera-card-swatch {
  display: block; width: 80px; height: 80px; border-radius: 50%;
  box-shadow: inset 0 0 8px rgba(0,0,0,.2), 0 2px 6px rgba(59,36,23,.15);
}
.madera-card-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--espresso); }
.madera-card.selected .madera-card-name { color: var(--white); }
.madera-card-desc { font-size: .8rem; color: var(--walnut); line-height: 1.4; }
.madera-card.selected .madera-card-desc { color: rgba(255,255,255,.85); }

.config-options-freq { gap: 14px; }
.freq-chip {
  position: relative; background: var(--white); border: 1.5px solid var(--tan); border-radius: 14px;
  padding: 16px 18px; cursor: pointer; text-align: left; min-width: 180px;
  display: flex; flex-direction: column; gap: 4px; transition: border-color .2s ease, background .2s ease;
}
.freq-chip:hover { border-color: var(--terracotta); }
.freq-chip.selected { background: var(--terracotta); border-color: var(--terracotta); }
.freq-chip.selected .freq-chip-value, .freq-chip.selected .freq-chip-desc { color: var(--white); }
.freq-chip-value { font-family: var(--font-serif); font-size: 1.15rem; color: var(--espresso); font-weight: 600; }
.freq-chip-desc { font-size: .82rem; color: var(--walnut); }
.freq-chip-badge {
  position: absolute; top: -10px; right: 12px; background: var(--terracotta); color: var(--white);
  font-size: .65rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.freq-chip.selected .freq-chip-badge { background: var(--espresso); }

.config-form { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.config-form label { font-size: .85rem; color: var(--walnut); margin-top: 10px; }
.config-form input, .config-form textarea {
  font-family: var(--font-sans); font-size: .95rem; padding: 12px 14px;
  border: 1.5px solid var(--tan); border-radius: 10px; background: var(--white); color: var(--espresso);
  resize: vertical;
}
.config-form input:focus, .config-form textarea:focus { outline: none; border-color: var(--terracotta); }

.config-summary {
  background: var(--cream); border-radius: 16px; padding: 24px; text-align: center; margin-top: 10px;
}
.config-total { font-size: 1.1rem; margin-bottom: 16px; color: var(--espresso); }
.config-total strong { color: var(--terracotta); }
.btn-block { display: block; width: 100%; }
.config-note { font-size: .82rem; color: var(--walnut); margin-top: 12px; }
.config-error { color: #B3261E; font-weight: 600; margin-bottom: 14px; font-size: .9rem; }

.config-added { font-size: 1.05rem; font-weight: 600; color: var(--terracotta); margin-bottom: 16px; }
.config-added-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== Carrito ===== */
.cart-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.cart-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--tan); border-radius: 14px; padding: 14px;
}
.cart-item .flute-card-swatch { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; object-fit: cover; }
.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { font-family: var(--font-serif); font-size: 1.02rem; color: var(--espresso); margin-bottom: 2px; }
.cart-item-info p { font-size: .88rem; color: var(--walnut); }
.cart-item-price { color: var(--terracotta) !important; font-weight: 600; margin-top: 2px; }
.cart-item-remove {
  background: none; border: none; cursor: pointer; color: var(--walnut); font-size: 1.4rem;
  line-height: 1; padding: 4px 8px; flex-shrink: 0; transition: color .2s ease;
}
.cart-item-remove:hover { color: #B3261E; }
.cart-total { font-size: 1.15rem; font-weight: 600; color: var(--espresso); text-align: center; margin-bottom: 30px; }
.cart-total strong { color: var(--terracotta); }
.cart-empty { text-align: center; padding: 40px 0; color: var(--walnut); }
.cart-empty p { margin-bottom: 20px; font-size: 1.05rem; }

.quiz-section, .special-section {
  background: linear-gradient(160deg, #4A2C1B 0%, var(--espresso) 55%, #2E1B10 100%);
  color: var(--cream-light);
}
.quiz-section .eyebrow, .special-section .eyebrow { color: var(--cream); }
.quiz-section h2, .special-section h2 { color: var(--white); }
.quiz-section .section-text, .special-section .section-text { color: var(--tan); }
.cta-inner .btn-primary { margin-bottom: 14px; }
.cta-note { font-size: .85rem; color: var(--tan); opacity: .8; }

/* ===== Badge de envío gratis ===== */
.catalog-badges {
  display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 32px;
}
.shipping-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  background: var(--cream-light); border: 1px solid var(--tan); color: var(--walnut);
  padding: 9px 18px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.shipping-badge svg { color: var(--terracotta); flex-shrink: 0; }

.free-tag {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  background: rgba(175,75,15,.1); color: var(--terracotta); font-family: var(--font-sans);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
}

/* ===== Deja tu reseña ===== */
.leave-review {
  text-align: center; padding: 36px 5% 0; font-size: .9rem; color: var(--walnut);
}
.leave-review a { color: var(--terracotta); font-weight: 600; text-decoration: none; }
.leave-review a:hover { text-decoration: underline; }

/* ===== Nota de pedido especial (catálogo) ===== */
.special-order-note { margin-top: 32px; font-size: .95rem; color: var(--walnut); }
.special-order-note a { color: var(--terracotta); font-weight: 600; text-decoration: none; }
.special-order-note a:hover { text-decoration: underline; }

/* ===== Video: el sonido de Ekos — a todo lo ancho, como fondo (estilo tienda de referencia) =====
   El video real es vertical (9:16), así que en vez de recortarlo a la fuerza para llenar un
   marco horizontal (lo que dejaba solo su cara muy pegada a cámara), se usa una copia del
   mismo video, borrosa y oscurecida, como fondo a todo lo ancho, y encima la escena completa
   sin recortar, como una tarjeta flotante — así se ve la toma entera (cielo, montañas, cuerpo
   completo) y se integra mejor con el resto de la página. ===== */
.video-hero {
  position: relative; width: 100%; height: 82vh; min-height: 460px; max-height: 780px;
  overflow: hidden; background: var(--espresso); isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 64px); padding: 0 5%; box-sizing: border-box;
}
.video-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  filter: blur(38px) brightness(.55) saturate(1.15); transform: scale(1.15);
}
.video-hero-media {
  position: relative; z-index: 1; order: 2; flex: 0 0 auto;
  height: 90%; aspect-ratio: 9 / 16; width: auto; object-fit: cover;
  border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.3);
}
.video-hero-overlay {
  position: relative; z-index: 2; order: 1; flex: 1 1 420px; max-width: 460px;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(59,36,23,.6); border-radius: 22px; padding: 34px 36px; box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.video-hero-state {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 14px;
}
.video-hero-overlay .eyebrow { color: var(--tan); margin-bottom: 0; }
.video-hero-overlay h2 {
  font-family: var(--font-serif); font-weight: 600; color: var(--white); margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem); text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.video-hero-overlay p {
  color: var(--cream-light); max-width: 440px; margin: 0; font-size: .98rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.video-play-btn {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--terracotta); color: var(--white); border: none; border-radius: 999px;
  padding: 14px 28px; font-family: var(--font-sans); font-weight: 600; font-size: .95rem;
  cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.3);
  transition: background .2s ease, transform .15s ease;
}
.video-play-btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.video-play-btn:disabled { opacity: .7; cursor: default; transform: none; }
.video-play-btn svg { background: rgba(255,255,255,.2); border-radius: 50%; padding: 8px; width: 32px; height: 32px; }

/* Los dos estados del texto: antes de darle play, y mientras suena.
   Nunca se deja el espacio vacío — mientras suena se cuenta el oficio detrás de la flauta. */
.video-hero-state-playing { display: none; }
.video-hero.playing .video-hero-state-idle { display: none; }
.video-hero.playing .video-hero-state-playing {
  display: flex; animation: videoStateIn .5s ease both;
}
@keyframes videoStateIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .video-hero.playing .video-hero-state-playing { animation: none; }
}

/* Ondas de sonido — mismo lenguaje visual que las del hero principal, en claro. */
.video-hero-wave {
  display: flex; align-items: flex-end; gap: 5px; height: 28px; opacity: .8;
}
.video-hero-wave span {
  width: 3px; border-radius: 3px; background: var(--tan);
  animation: waveMove 1.4s ease-in-out infinite;
}
.video-hero-wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.video-hero-wave span:nth-child(2) { height: 20px; animation-delay: .1s; }
.video-hero-wave span:nth-child(3) { height: 28px; animation-delay: .2s; }
.video-hero-wave span:nth-child(4) { height: 14px; animation-delay: .3s; }
.video-hero-wave span:nth-child(5) { height: 24px; animation-delay: .4s; }
.video-hero-wave span:nth-child(6) { height: 12px; animation-delay: .5s; }
.video-hero-wave span:nth-child(7) { height: 18px; animation-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  .video-hero-wave span { animation: none; }
}

.video-hero-verse {
  font-family: var(--font-serif); font-style: italic; color: var(--tan) !important;
  font-size: 1.1rem !important; line-height: 1.5; border-left: 2px solid rgba(217,185,138,.5);
  padding-left: 14px; max-width: 440px;
}
.video-hero-cta {
  margin-top: 4px; padding: 12px 24px; font-size: .9rem;
}

@media (max-width: 820px) {
  /* En celular, video y texto van en flujo normal, uno debajo del otro — nunca sobrepuestos. */
  .video-hero {
    height: auto; min-height: 0; max-height: none;
    display: flex; flex-direction: column; align-items: center; padding: 44px 0 40px;
  }
  .video-hero-media {
    position: relative; top: auto; left: auto; right: auto; transform: none; order: 1;
    height: auto; aspect-ratio: 9 / 16; width: 62%; max-width: 260px; margin: 0 auto 26px;
  }
  .video-hero-overlay {
    position: relative; z-index: 2; order: 2; height: auto; width: 100%; max-width: 100%;
    justify-content: flex-start;
    padding: 22px 24px; gap: 12px; margin: 0 20px;
    background: rgba(59,36,23,.55); border-radius: 20px; box-sizing: border-box;
    width: calc(100% - 40px);
  }
  .video-hero-state { align-items: center; text-align: center; }
  .video-hero-wave { align-self: center; }
  .video-hero-verse {
    border-left: none; padding-left: 0; max-width: 100%;
    border-top: 2px solid rgba(217,185,138,.5); padding-top: 10px;
  }
  .video-hero-overlay p { max-width: 100%; }
}

/* ===== Entrada a la tienda (2 caminos) ===== */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; text-align: left; }
@media (max-width: 700px) { .path-grid { grid-template-columns: 1fr; } }
.path-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--white); border: 1.5px solid var(--tan); border-radius: 20px; padding: 32px 28px;
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.path-card:hover { border-color: var(--terracotta); transform: translateY(-4px); box-shadow: 0 12px 28px rgba(59,36,23,.12); }
.path-card svg { color: var(--terracotta); }
.path-card h3 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--espresso); }
.path-card p { color: var(--walnut); font-size: .95rem; }
.path-card-cta { color: var(--terracotta); font-weight: 600; font-size: .92rem; margin-top: 4px; }

/* ===== Por qué Ekos (beneficios) ===== */
.benefits-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px; text-align: left;
}
@media (max-width: 900px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit-card {
  background: var(--white); border: 1px solid var(--tan); border-radius: 16px; padding: 26px 20px;
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease, box-shadow .2s ease;
}
.benefit-card.in-view { opacity: 1; transform: translateY(0); }
.benefit-card:hover { box-shadow: 0 8px 20px rgba(59,36,23,.1); }
.benefit-card svg { color: var(--terracotta); margin-bottom: 14px; }
.benefit-card h3 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 8px; color: var(--espresso); }
.benefit-card p { color: var(--walnut); font-size: .9rem; }

/* ===== Frecuencias explicadas ===== */
.freq-explain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; text-align: left; }
@media (max-width: 700px) { .freq-explain-grid { grid-template-columns: 1fr; } }
.freq-explain-card {
  background: var(--white); border: 1.5px solid var(--tan); border-radius: 18px; padding: 28px 24px; position: relative;
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease;
}
.freq-explain-card.in-view { opacity: 1; transform: translateY(0); }
.freq-explain-card h3 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--terracotta); margin-bottom: 10px; }
.freq-explain-card p { color: var(--walnut); font-size: .95rem; }
.freq-badge {
  position: absolute; top: -12px; right: 20px; background: var(--terracotta); color: var(--white);
  font-size: .72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.freq-footer-note { margin-top: 24px; font-size: .9rem; }
.freq-footer-note a { color: var(--terracotta); font-weight: 600; }

/* ===== Reseñas ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; text-align: left; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--white); border: 1px solid var(--tan); border-radius: 16px; padding: 26px 22px;
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease;
}
.review-card.in-view { opacity: 1; transform: translateY(0); }
.review-stars { color: var(--terracotta); letter-spacing: .1em; margin-bottom: 10px; }
.review-text { color: var(--walnut); font-size: .95rem; margin-bottom: 14px; }
.review-name { font-family: var(--font-serif); font-size: .9rem; color: var(--espresso); }

/* ===== Footer ===== */
.footer {
  text-align: center; padding: 60px 5% 40px; color: var(--tan);
  position: relative; isolation: isolate;
  background: linear-gradient(160deg, #4A2C1B 0%, var(--espresso) 55%, #2E1B10 100%);
}
.footer::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='wf' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.01 0.07' numOctaves='4' seed='33' stitchTiles='stitch' result='n'/%3E%3CfeComponentTransfer in='n' result='s'%3E%3CfeFuncA type='gamma' amplitude='1' exponent='2.4' offset='0'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix in='s' type='matrix' values='0 0 0 0 0.03 0 0 0 0 0.015 0 0 0 0 0 0 0 0 0.65 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23wf)'/%3E%3C/svg%3E");
  background-blend-mode: soft-light;
}
.footer img { margin: 0 auto 16px; border-radius: 50%; }
.footer p { font-size: .9rem; margin-bottom: 6px; }
.footer-copy { opacity: .7; font-size: .8rem; margin-top: 12px; }

@media (max-width: 768px) {
  .section { padding: 60px 4%; }
}
