/* ==========================================================================
   LISTO — "WOW" enhancement layer (loaded AFTER styles.css, additive & reversible)
   Adds: scroll progress + section dots, 3D parallax hero depth, crafted SVG icon
   tiles, a 3D laptop+phone device showcase, a scrolling wall of real mini-site
   previews, a live color customizer, confetti on the final CTA, magnetic buttons,
   cursor glow, richer depth. All warm & on-brand. Respects reduced-motion / touch.
   ========================================================================== */

:root {
  --depth-shadow: 0 30px 70px -28px rgba(180, 90, 50, 0.45);
}

/* ---------- 1. Scroll progress bar + section-dot nav ---------- */
.scrollbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
  z-index: 1200; box-shadow: 0 0 10px rgba(255,107,74,0.5);
  transition: width 0.08s linear;
}
.dotnav {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 940; display: flex; flex-direction: column; gap: 12px;
}
.dotnav a {
  width: 11px; height: 11px; border-radius: 99px; background: var(--line-2);
  border: 2px solid transparent; transition: all var(--t); position: relative;
}
.dotnav a::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%) translateX(6px); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 8px; opacity: 0; pointer-events: none;
  transition: all var(--t); font-family: var(--font-body);
}
.dotnav a:hover { background: var(--coral); transform: scale(1.25); }
.dotnav a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.dotnav a.active { background: var(--coral); border-color: var(--coral-soft); transform: scale(1.3); }
@media (max-width: 1100px) { .dotnav { display: none; } }

/* ---------- 2. Crafted SVG icon tiles (replace bare emoji) ---------- */
.ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--coral-soft); color: var(--coral-dark);
  margin-bottom: 16px; transition: transform var(--t), background var(--t);
  flex-shrink: 0;
}
.ico svg { width: 26px; height: 26px; }
.ico.green { background: var(--green-soft); color: var(--green-dark); }
.ico.yellow { background: var(--yellow-soft); color: #C98A16; }
.ico.blue { background: #E2F0FB; color: #2E7DB5; }
.ico.purple { background: #ECE9FE; color: #6354D6; }
.prob-card:hover .ico, .bento-card:hover .ico { transform: rotate(-8deg) scale(1.08); }
/* hide the old emoji glyphs once SVG tiles exist (added via JS) */
.prob-card.has-ico .prob-emoji,
.bento-card.has-ico .benefit-ic { display: none; }

/* ---------- 3. Hero 3D parallax depth (real perspective scene) ---------- */
@media (pointer: fine) {
  .hero-visual { perspective: 1100px; }
  .hero-visual .browser { transform-style: preserve-3d; will-change: transform; }
  .float-note { will-change: transform; }
}
.hero-sparkle { text-shadow: 0 0 14px rgba(255,194,75,0.6); }

/* ---------- 4. 3D device showcase (laptop + phone) ---------- */
.devices { padding: clamp(50px, 7vw, 90px) 0; position: relative; overflow: hidden; }
.devices-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.devices-copy .eyebrow { margin-bottom: 16px; }
.devices-copy h2 { margin-bottom: 14px; }
.devices-copy p { font-size: clamp(16px,1.9vw,19px); margin-bottom: 22px; }
.device-checks { list-style: none; display: grid; gap: 12px; }
.device-checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.device-checks li i { font-style: normal; width: 26px; height: 26px; border-radius: 99px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

.device-scene { position: relative; perspective: 1600px; min-height: 380px; display: grid; place-items: center; }
.device-rig { position: relative; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-16deg); transition: transform 0.4s var(--ease); width: 100%; max-width: 460px; }
/* laptop */
.laptop { width: 100%; transform-style: preserve-3d; }
.laptop-screen { background: #1e160f; border-radius: 16px 16px 4px 4px; padding: 10px; box-shadow: var(--depth-shadow); border: 2px solid #2a1f15; }
.laptop-cam { width: 5px; height: 5px; border-radius: 99px; background: #4a3a2c; margin: 0 auto 6px; }
.laptop-view { border-radius: 8px; overflow: hidden; background: #fff; aspect-ratio: 16/10; }
.laptop-base { height: 14px; background: linear-gradient(180deg, #d9ccbe, #b8a796); border-radius: 0 0 12px 12px; margin: 0 -7%; box-shadow: 0 16px 30px -10px rgba(0,0,0,0.3); position: relative; }
.laptop-base::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 5px; background: #a7937f; border-radius: 0 0 6px 6px; }
/* phone overlapping in front */
.phone3d { position: absolute; right: -6%; bottom: -8%; width: 26%; transform: translateZ(70px); }
.phone3d-body { background: #1e160f; border-radius: 22px; padding: 7px; box-shadow: var(--depth-shadow); border: 2px solid #2a1f15; }
.phone3d-view { border-radius: 16px; overflow: hidden; background: #fff; aspect-ratio: 9/19; }
.phone3d-notch { width: 36%; height: 5px; background: #2a1f15; border-radius: 99px; margin: 0 auto 5px; }

/* mini rendered site used inside devices (real-looking, colorful) */
.mini { font-family: var(--font-body); background: linear-gradient(180deg,#fff,var(--paper)); height: 100%; }
.mini-bar { display: flex; align-items: center; gap: 4px; padding: 7px 9px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.mini-bar i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); }
.mini-bar i:first-child { background: var(--coral); }
.mini-body { padding: 11px; }
.mini-nav { display: flex; align-items: center; margin-bottom: 10px; }
.mini-logo { font-family: var(--font-display); font-weight: 700; font-size: 11px; color: var(--coral-dark); }
.mini-pill { margin-left: auto; background: var(--green); width: 34px; height: 12px; border-radius: 99px; }
.mini-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 9px; align-items: center; margin-bottom: 10px; }
.mini-hero h5 { font-family: var(--font-display); font-size: 13px; line-height: 1.05; color: var(--ink); margin-bottom: 6px; }
.mini-line { height: 5px; border-radius: 3px; background: var(--line-2); margin-bottom: 4px; }
.mini-line.s { width: 60%; }
.mini-cta { display: inline-block; margin-top: 6px; height: 14px; width: 56px; border-radius: 99px; background: var(--coral); }
.mini-photo { aspect-ratio: 1/1; border-radius: 8px; background: linear-gradient(135deg, var(--coral-soft), var(--green-soft)); display: grid; place-items: center; font-size: 22px; }
.mini-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.mini-cards div { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 7px 5px; text-align: center; font-size: 12px; }
.mini-phone { padding: 9px; }
.mini-phone .mini-photo { font-size: 26px; margin-bottom: 7px; }
.mini-phone .mini-line { margin-bottom: 5px; }

/* ---------- 5. Scrolling wall of real mini-site previews ---------- */
.gallery { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(56px,8vw,100px) 0; overflow: hidden; }
.gallery .section-head { margin-bottom: 40px; }
.gal-row { display: flex; gap: 20px; width: max-content; margin-bottom: 20px; }
.gal-row.r1 { animation: galLeft 46s linear infinite; }
.gal-row.r2 { animation: galRight 52s linear infinite; }
.gallery:hover .gal-row { animation-play-state: paused; }
@keyframes galLeft { to { transform: translateX(-50%); } }
@keyframes galRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.site-card {
  width: 320px; flex-shrink: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.site-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow); }
.site-shot { aspect-ratio: 16/10; position: relative; overflow: hidden; padding: 14px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.site-shot h4 { font-family: var(--font-display); color: #fff; font-size: 20px; line-height: 1.05; text-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.site-shot .ss-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.92; }
.site-shot .ss-btn { align-self: flex-start; background: rgba(255,255,255,0.95); color: var(--ink); font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 99px; }
.site-shot .ss-emoji { position: absolute; right: 10px; bottom: 8px; font-size: 40px; opacity: 0.9; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2)); }
.site-foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.site-foot b { font-size: 13.5px; color: var(--ink); }
.site-foot .sf-type { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.site-foot .sf-star { color: var(--yellow); font-size: 12px; }

/* ---------- 6. Live color customizer (in the showcase section) ---------- */
.swatches { display: flex; gap: 12px; justify-content: center; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.swatches .sw-label { font-weight: 700; font-size: 14px; color: var(--ink-2); margin-right: 4px; }
.swatch { width: 34px; height: 34px; border-radius: 99px; cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line-2), var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.swatch:hover { transform: scale(1.14); }
.swatch.active { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.16); }

/* ---------- 7. Confetti canvas ---------- */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 1100; }

/* ---------- 8. Magnetic buttons + shared depth lift ---------- */
.btn-primary, .btn-white { will-change: transform; }

/* ---------- 9. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .gal-row { animation: none !important; }
  .scrollbar { transition: none; }
  .device-rig { transform: rotateX(6deg) rotateY(-10deg) !important; }
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 980px) {
  .devices-inner { grid-template-columns: 1fr; gap: 36px; }
  .device-scene { min-height: 300px; }
  .device-rig { transform: rotateX(6deg) rotateY(-10deg); max-width: 380px; }
}
@media (max-width: 680px) {
  .site-card { width: 250px; }
  .device-rig { transform: none; }
  .phone3d { right: 2%; bottom: -4%; }
}

/* ==========================================================================
   AUDIT FIXES + before/after redesign (appended)
   ========================================================================== */

/* ---------- Bento depth + centered content + filled wide card ---------- */
.bento-card { box-shadow: var(--shadow); }
.bento-card:hover { box-shadow: var(--shadow-lg); }   /* hover now lifts past the deeper resting shadow */
.bento-card:not(.big) { display: flex; flex-direction: column; justify-content: center; }
.bento-card.wide { position: relative; overflow: hidden; }
.bento-card.wide::after {
  content: '24/7'; position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 7vw, 78px);
  color: var(--coral); opacity: 0.12; letter-spacing: -0.03em; pointer-events: none;
}
.bento-card.wide h3, .bento-card.wide p { position: relative; max-width: 62%; }

/* ---------- Testimonials: bottom-align authors + real quote glyph ---------- */
.testi { display: flex; flex-direction: column; }
.testi blockquote { margin-bottom: 22px; }
.testi figcaption { margin-top: auto; }
.testi-quote { color: #FFC9B8; opacity: 0.95; font-size: 104px; top: -4px; }
.testi-verified { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--green-dark); background: var(--green-soft); padding: 4px 9px; border-radius: 99px; }

/* ---------- Hero floating notes: anchored, readable ---------- */
.float-note { box-shadow: 0 14px 34px -10px rgba(120,60,30,0.28); border: 1px solid var(--line-2); }
.float-note span { color: var(--ink-2); }

/* ---------- Footer: soften seam + depth ---------- */
.footer { border-top: 3px solid var(--coral); background: linear-gradient(180deg, #34271b 0%, var(--ink) 40%); }
.footer-bottom { color: #B8A696; }

/* ==========================================================================
   BEFORE / AFTER — side-by-side on desktop, toggle on mobile
   ========================================================================== */
.ba-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 800; font-size: 12.5px; letter-spacing: 0.12em; padding: 6px 14px; border-radius: 99px; align-self: flex-start; }
.ba-label.before { background: #F6E3DC; color: #B4543B; }
.ba-label.after { background: var(--green-soft); color: var(--green-dark); }
.ba-label-dot { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }

.ba-arrow { display: none; }
.ba-arrow svg { width: 76px; height: 38px; }

/* stronger 'before' negatives */
.ba-cons li { color: #C0492E; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.ba-cons li .con-x { font-style: normal; width: 19px; height: 19px; flex-shrink: 0; border-radius: 99px; background: #FBDCD2; color: #C0492E; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.ba-search { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.ba-search svg { flex-shrink: 0; }
.ba-x { color: #C0492E; background: #FBDCD2; display: grid; place-items: center; }

/* realistic happy page */
.ba-phone.happy { position: relative; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.ba-badge { position: absolute; top: -12px; right: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 99px; box-shadow: 0 8px 20px -6px rgba(46,155,108,0.6); }
.ba-badge-dot { width: 6px; height: 6px; border-radius: 99px; background: #fff; }
.ba-happy-hero { position: relative; }
.bh-logo { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--coral-dark); background: none; width: auto; height: auto; margin-bottom: 8px; }
.bh-h { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.1; color: var(--ink); margin-bottom: 12px; max-width: 72%; }
.bh-photo { position: absolute; right: 16px; bottom: 14px; font-size: 40px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)); }
.ba-happy-row .bh-chip { display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 10px 4px; }
.ba-happy-row .bh-chip b { font-size: 13px; color: var(--ink); }
.ba-happy-row .bh-chip i { font-size: 10.5px; color: var(--ink-3); font-style: normal; font-weight: 600; }

@media (min-width: 861px) {
  .beforeafter .ba-toggle { display: none; }
  .ba-stage { display: grid !important; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: stretch; min-height: 0 !important; max-width: 1000px; }
  .ba-panel { display: flex !important; flex-direction: column; gap: 18px; animation: none !important; opacity: 1 !important; }
  .ba-arrow { display: grid; place-items: center; align-self: center; }
  .ba-caption { text-align: left; }
  .ba-caption h3 { font-size: 22px; }
  .ba-phone { width: 100%; }
}
@media (max-width: 860px) {
  .ba-arrow { display: none; }
  .ba-label { margin-bottom: 6px; }
}

/* ==========================================================================
   3D / DEPTH UPGRADES v2 (per GUIA-DISENO-3D: depth + motion, no WebGL)
   ========================================================================== */

/* --- Warm gradient-mesh atmosphere behind the 3D device scene --- */
.devices::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 50% at 72% 38%, rgba(255,107,74,0.13), transparent 60%),
    radial-gradient(ellipse 40% 46% at 22% 70%, rgba(63,185,132,0.11), transparent 62%),
    radial-gradient(ellipse 38% 42% at 50% 12%, rgba(255,194,75,0.10), transparent 60%);
  animation: meshDrift 16s ease-in-out infinite alternate;
}
.devices > .wrap { position: relative; z-index: 1; }
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -2.5%, 0) scale(1.05); }
}

/* --- The laptop breathes/floats so the scene feels alive without a pointer.
   Float lives on .laptop (translateY only) so it never fights the JS pointer-tilt
   on .device-rig (a CSS animation on the rig's transform would override inline). --- */
.laptop { animation: listoFloat 7s ease-in-out infinite; }
.phone3d { animation: listoFloatZ 7s ease-in-out infinite 0.6s; }
@keyframes listoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes listoFloatZ {
  0%, 100% { transform: translateZ(70px) translateY(0); }
  50%      { transform: translateZ(70px) translateY(-8px); }
}

/* --- Warm screen-glow + glare so the laptop reads like real glass --- */
.laptop-screen { position: relative; }
.laptop-view::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 8px;
  background: linear-gradient(120deg, rgba(255,255,255,0.22) 0%, transparent 32%);
  mix-blend-mode: screen;
}
.device-scene::after {
  content: ''; position: absolute; left: 50%; bottom: 4%; width: 64%; height: 26px;
  transform: translateX(-50%); border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse, rgba(120,70,40,0.30), transparent 70%);
  filter: blur(8px);
}

/* --- Hero floating notes get real Z-pop in the new perspective scene --- */
.hero-visual .float-note { transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  .devices::before { animation: none; }
  .laptop, .phone3d { animation: none; }
}

/* ==========================================================================
   POLISH PASS — fixes de pulido (texto-sobre-texto, mockup completo, galería,
   WhatsApp redondo, flecha before/after, íconos included, logo animado)
   ========================================================================== */

/* --- Hero: avatars ahora con SVG limpio --- */
.avatars span { overflow: hidden; }
.avatars span svg { display: block; }

/* --- Hero animated logo en el header (reemplaza estático) --- */
.brand .brand-mark svg { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .brand-mark svg { transform: rotate(-8deg) scale(1.08); }
.brand .brand-mark .lg-check {
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: lgDraw .6s cubic-bezier(.65,0,.35,1) .25s forwards;
}
@keyframes lgDraw { to { stroke-dashoffset: 0; } }
.brand-dot { display: inline-block; animation: lgDot .5s cubic-bezier(.34,1.8,.64,1) .7s both; }
@keyframes lgDot { 0% { transform: scale(0); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* --- Browser mockup: contenido completo y realista --- */
.mk-tagline { display: block; font-size: 8px; font-weight: 800; letter-spacing: .14em; color: var(--coral); margin-bottom: 5px; }
.mk-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.05; color: var(--ink); margin-bottom: 8px; }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 8px; font-weight: 700; }
.mk-hero-img svg { opacity: .9; }
.mk-ic svg { display: block; }

/* --- Before/After arrow: badge circular pulido --- */
.ba-arrow svg { width: 56px; height: 56px; filter: drop-shadow(0 6px 14px rgba(232,80,46,.25)); }
.ba-arrow svg path:nth-child(2),
.ba-arrow svg path:nth-child(3) { animation: arrowNudge 1.8s ease-in-out infinite; }
@keyframes arrowNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
.bh-photo svg { display: block; }
.ba-x svg, .ba-search svg, .con-x { display: inline-block; }

/* --- Included: íconos SVG en tile (reemplazan emoji) --- */
.inc-item .inc-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: grid; place-items: center; flex-shrink: 0; }
.inc-item .inc-ic svg { width: 20px; height: 20px; color: #6BE0AE; }

/* --- Gallery: bordes definidos + tarjetas con carácter + hover sin frenar --- */
.gallery .gal-row { animation-play-state: running !important; }   /* nunca se detiene, ni en hover */
.gallery:hover .gal-row { animation-play-state: running !important; }
.site-card {
  border: 2px solid var(--ink) !important;
  box-shadow: 5px 5px 0 rgba(42,28,20,0.12) !important;
}
.site-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 8px 10px 0 rgba(42,28,20,0.18) !important;
  border-color: var(--ink) !important;
}

/* --- WhatsApp float: círculo perfecto, logo centrado --- */
.wa-float {
  width: 60px !important; height: 60px !important;
  padding: 0 !important; border-radius: 50% !important;
  display: grid !important; place-items: center !important;
  gap: 0 !important;
}
.wa-float svg { display: block; margin: 0; }
.wa-float .wa-tip { display: none !important; }   /* el tooltip rompía el círculo */

/* --- CTA emoji ahora SVG --- */
.cta-emoji svg { display: block; margin: 0 auto; }

/* --- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .brand .brand-mark .lg-check { stroke-dashoffset: 0; animation: none; }
  .brand-dot { animation: none; }
  .ba-arrow svg path { animation: none; }
}

/* ==========================================================================
   AUDITORÍA VISUAL — Ciclo 1 (1 jun 2026)
   Fixes de director de arte. Foco: transiciones premium entre secciones.
   Carga después de styles.css → gana. Reversible (borrar este bloque revierte).
   ========================================================================== */

/* ---- Contraste de bandas: paper-2 un poco más cálido para que el ritmo se lea (I7) ---- */
:root { --paper-2: #FCE8D6; }

/* ---- Sistema de olas: más alto, más solape, sin aliasing (I1) ---- */
.wave { height: 64px !important; }
.wave-top { top: -2px !important; }
.wave-bottom { bottom: -2px !important; }

/* ---- C2/C3: quitar bordes duros que pelean con la ola + ola con gradiente direccional ---- */
.problem, .how {
  border: none !important;
  background: var(--paper-2) !important;
  padding-top: clamp(80px, 10vw, 130px) !important;
  padding-bottom: clamp(80px, 10vw, 130px) !important;   /* I4: ritmo parejo */
}
.problem .wave-top, .how .wave-top, .faq .wave-top {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%) !important;
}
.problem { box-shadow: inset 0 12px 22px -10px rgba(120,80,40,0.06); }

/* ---- C5: before/after sin borde duro + fundido suave desde el hero ---- */
.beforeafter { background: var(--paper-2) !important; border: none !important; position: relative; }
.beforeafter::before {
  content:''; position:absolute; top:-40px; left:0; right:0; height:80px; z-index:0; pointer-events:none;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

/* ---- C6: benefits y pricing con fondo explícito (estabiliza olas vecinas) ---- */
.benefits, .pricing { background: var(--paper) !important; position: relative; }
.pricing .wave-top { background: linear-gradient(180deg, transparent 0%, var(--paper) 100%) !important; height: 60px !important; }

/* ---- C4: gallery gana su ola (era la única costura sin transición) ---- */
.gallery { background: var(--paper-2) !important; border: none !important; position: relative; }
.gallery::before {
  content:''; position:absolute; top:-48px; left:0; width:100%; height:48px; z-index:1; pointer-events:none;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  -webkit-mask: var(--wave-mask); mask: var(--wave-mask);
}

/* ---- C1: sección oscura "incluido" — ondas onduladas en color sólido ink (sin el gradiente
   marrón de 3 paradas que se veía mal). El mask de ola sigue dando la curva; solo el color es
   limpio. Un poco más altas para que las ondulaciones se aprecien bien. ---- */
.included .wave-top.dark { background: var(--ink) !important; height: 56px !important; }
.included .wave-bottom.dark { background: var(--ink) !important; height: 56px !important; }

/* ---- testimonials: quitar bordes duros (mismo criterio) ---- */
.testimonials { border-top: none !important; border-bottom: none !important; }

/* ---- I3: subrayados .hl más sólidos y rectos (no garabato) ---- */
.hl::after, .hl-2::after { bottom: 0.08em !important; height: 0.34em !important; opacity: 0.46 !important; transform: none !important; }
.hl::after { background: linear-gradient(120deg, rgba(255,107,74,0.5), rgba(255,107,74,0.34)) !important; }
.hl-2::after { background: rgba(63,185,132,0.5) !important; }

/* ---- I2: elevación de tarjetas coherente con brillo superior ---- */
.bento-card, .prob-card, .step, .plan {
  box-shadow: 0 8px 24px rgba(120,80,40,0.12), inset 0 1px 1px rgba(255,255,255,0.6) !important;
}
.bento-card:hover, .prob-card:hover, .step:hover, .plan:hover {
  box-shadow: 0 16px 40px rgba(120,80,40,0.18), inset 0 1px 1px rgba(255,255,255,0.6) !important;
}

/* ---- I5: respiración de los grids ---- */
.problem-grid { gap: 24px !important; }
.bento { gap: 22px !important; }

