/* =============================================================
   Camas Patri — styles.css
   1. Tokens (light default + dark override)
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components (btn, cursor, splash, wa-float, theme-toggle)
   6. Nav
   7. Sections (hero, catalogo, steps, galeria, testimonios, why, faq, cta, footer)
   8. Effects
   9. Responsive
   10. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Light — default, matches the brand logo (crema/beige + tinta) */
  --bg:        #f8f2e7;
  --bg-2:      #f0e6d3;
  --bg-3:      #ffffff;
  --bg-4:      #f3ead9;
  --text:      #26201a;
  --text-soft: #4c4238;
  --text-mute: #85786a;
  --accent:    #a8703c;
  --accent-2:  #74815a;
  --line:      rgba(38, 32, 26, 0.13);
  --line-soft: rgba(38, 32, 26, 0.08);

  /* Constant — for text/badges sitting directly on top of photos, never flips with theme */
  --on-photo-bg:   rgba(20, 15, 10, 0.78);
  --on-photo-text: #f5efe3;
  --on-photo-mute: #d9cdb7;
  /* Constant white: mix-blend-mode:difference against white gives a strong
     dark result on light surfaces AND a strong light result on dark
     surfaces, so the cursor stays clearly visible in both themes. */
  --cursor:        #ffffff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1240px;
  --radius: 14px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:        #17120d;
  --bg-2:      #1e1810;
  --bg-3:      #262019;
  --bg-4:      #2d2419;
  --text:      #f3ece0;
  --text-soft: #ddd0ba;
  --text-mute: #9c8e78;
  --accent:    #d9954f;
  --accent-2:  #93a06f;
  --line:      rgba(243, 236, 224, 0.13);
  --line-soft: rgba(243, 236, 224, 0.08);

  color-scheme: dark;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--bg);
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; }
::selection { background: var(--accent); color: var(--on-photo-text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.4rem; }
.container-narrow { max-width: 820px; }

.kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .9rem;
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: var(--text); margin-bottom: .9rem; }
.section-sub { font-size: 1.05rem; color: var(--text-mute); max-width: 52ch; }

[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: italic; color: var(--accent); font-family: var(--serif); }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .96rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s, border-color .3s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.16), 0 10px 20px color-mix(in srgb, var(--accent) 24%, transparent);
}
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-photo-text); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: none; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: var(--on-photo-text); box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn-block { width: 100%; }
.btn-sm { padding: .68rem 1.2rem; font-size: .86rem; }
.btn-lg { padding: 1.2rem 2.2rem; font-size: 1.05rem; }

/* Custom cursor */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--cursor); border-radius: 50%; }
.cursor-ring { width: 34px; height: 34px; margin: -17px; border: 1px solid var(--cursor); border-radius: 50%; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out); }
.cursor.is-interactive .cursor-ring { width: 54px; height: 54px; margin: -27px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .8s, clip-path 1s;
  animation: splashSafety .01s 3.6s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); animation: splashPulse 1.6s ease-in-out infinite; }
@keyframes splashPulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 500;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ea952);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  transition: transform .4s var(--ease-soft);
  isolation: isolate;
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: rgba(37,211,102,0.55);
  will-change: transform, opacity;
  animation: waRipple 2.6s ease-out infinite;
}
@keyframes waRipple {
  0%   { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--text); flex-shrink: 0;
  transition: border-color .3s, background .3s, transform .3s var(--ease-soft);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(-12deg); }
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
.theme-toggle-mobile {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.1rem;
  font-size: .85rem; color: var(--text-soft);
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 400;
  padding-block: 1.1rem;
  transition: background-color .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .7rem;
}
.nav-inner { max-width: var(--container); margin-inline: auto; padding-inline: 1.4rem; display: flex; align-items: center; gap: 1rem; }
.nav-brand { flex-shrink: 0; }
.nav-logo { height: 44px; width: auto; border-radius: 8px; }
.nav-links { display: none; align-items: center; gap: 1.8rem; margin-inline: auto; }
.nav-link { position: relative; font-size: .92rem; font-weight: 500; color: var(--text-soft); padding-block: .3rem; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-burger {
  margin-left: .2rem; width: 42px; height: 42px; display: grid; place-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 10px;
}
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease-soft), opacity .35s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 390;
  background: var(--bg); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft), background-color .5s;
}
.nav-mobile[data-open] { clip-path: inset(0); }
.nav-mobile-link { font-family: var(--serif); font-size: 1.7rem; font-style: italic; color: var(--text-soft); }
.nav-mobile-link:hover { color: var(--accent); }

/* =============================================================
   7. Sections
   ============================================================= */

/* --- Hero --- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 6rem; padding-bottom: 3rem; overflow: clip; }
.hero-mesh {
  position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(42% 38% at 24% 28%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%),
    radial-gradient(38% 34% at 78% 62%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 65%);
  filter: blur(70px) saturate(120%);
  opacity: .8;
  will-change: transform;
  animation: meshDrift 30s var(--ease-soft) infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  100% { transform: translate3d(3%,-2%,0) rotate(8deg) scale(1.08); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner { max-width: var(--container); margin-inline: auto; padding-inline: 1.4rem; display: grid; gap: 3rem; align-items: center; }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--text); margin-bottom: 1.3rem; letter-spacing: -.01em; }
.hero-sub { font-size: 1.1rem; color: var(--text-mute); max-width: 46ch; margin-bottom: 1.8rem; }

.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: 2rem; font-size: .88rem; color: var(--text-mute); }
.hero-rating { display: flex; align-items: center; gap: .45rem; color: var(--text-soft); }
.hero-rating svg { color: var(--accent); }
.hero-rating strong { color: var(--text); }
.hero-trust-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-mute); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-figure { position: relative; }
.hero-figure-frame {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(20,15,8,0.35), 0 0 0 1px var(--line);
  aspect-ratio: 4/5;
}
.hero-figure-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-soft); }
.hero-figure-frame:hover img { transform: scale(1.05); }
.hero-figure-tag {
  position: absolute; left: -1rem; bottom: 1.6rem;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 12px; padding: .9rem 1.2rem;
  box-shadow: 0 20px 40px rgba(20,15,8,0.18);
  display: flex; flex-direction: column; gap: .1rem;
}
.hero-figure-tag-num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--accent); }
.hero-figure-tag-label { font-size: .74rem; color: var(--text-mute); letter-spacing: .02em; }

/* --- Catalogo --- */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.product-card {
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft), border-color .4s;
}
.has-tilt:hover { transition-duration: .15s; }
.product-card.has-halo { position: relative; isolation: isolate; }
.product-card.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 32%, transparent), transparent 65%);
  opacity: 0; transition: opacity .4s;
}
.product-card.has-halo:hover::before { opacity: 1; }
.product-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 40px 80px -20px rgba(20,15,8,0.22); }

.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft), filter .55s; }
.product-card:hover .product-media img { transform: scale(1.08); filter: saturate(1.1) brightness(1.03); }
.product-badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  background: var(--on-photo-bg); backdrop-filter: blur(6px);
  color: var(--on-photo-text); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .45rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16);
}
.product-badge-alt { color: var(--on-photo-mute); }

.product-body { padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; flex-grow: 1; transform: translateZ(30px); }
.product-name { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; color: var(--text); }
.product-desc { font-size: .93rem; color: var(--text-mute); line-height: 1.55; flex-grow: 1; }
.product-specs { display: flex; flex-direction: column; gap: .5rem; padding-block: .3rem; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.product-specs li { display: flex; align-items: center; gap: .6rem; font-size: .84rem; color: var(--text-soft); }
.product-specs svg { color: var(--accent); flex-shrink: 0; }

.product-card-cta {
  background: linear-gradient(155deg, var(--bg-4), var(--bg-3));
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: flex-start;
}
.product-card-cta h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--text); }
.product-cta-text { font-size: .92rem; color: var(--text-mute); }

/* --- Respaldos --- */
/* Uniform 1:1 grid — every headboard photo gets the exact same square
   treatment, so a photo with an unusual crop doesn't stand out oddly
   next to the others. */
.respaldos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.respaldo-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.respaldo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-soft); }
.respaldo-item:hover img { transform: scale(1.08); }
.respaldo-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem .9rem .7rem;
  background: linear-gradient(0deg, var(--on-photo-bg), transparent);
  color: var(--on-photo-text); font-size: .78rem; font-weight: 600; letter-spacing: .01em;
}
.respaldos-cta {
  margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.4rem 1.6rem; background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.respaldos-cta p { font-size: .95rem; color: var(--text-soft); max-width: 46ch; }

.subsection-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.2rem); color: var(--text); margin-top: 2.4rem; margin-bottom: 1.1rem; }

/* Mesas de luz: these are finished marketing tiles (own headline, copy and
   icons baked into the image), so they're shown whole — never cropped —
   in a horizontal strip instead of the square respaldos grid. */
.mesas-carousel { position: relative; }
.mesas-track {
  display: flex; align-items: flex-start; gap: 1rem; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .2rem .1rem 1rem; scrollbar-width: none;
}
.mesas-track::-webkit-scrollbar { display: none; }
.mesa-item {
  position: relative; flex: 0 0 200px; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft);
  background: var(--bg-3); box-shadow: 0 14px 30px rgba(20,15,8,0.1);
}
.mesa-item img { width: 100%; height: auto; display: block; }
/* Only the plain product photos (cajoneras) get a caption overlay — the
   mesa-de-luz tiles already carry their own text baked into the image. */
.mesa-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem .9rem .7rem;
  background: linear-gradient(0deg, var(--on-photo-bg), transparent);
  color: var(--on-photo-text); font-size: .78rem; font-weight: 600; letter-spacing: .01em;
}
@media (min-width: 540px) { .mesa-item { flex-basis: 250px; } }
@media (min-width: 960px) { .mesa-item { flex-basis: 280px; } }

/* --- Colchones --- */
.brands-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: .5rem; }
.brand-chip {
  aspect-ratio: 3 / 2; padding: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--bg-3);
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft), border-color .4s;
}
.brand-chip:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 30px 60px -15px rgba(20,15,8,0.16); }
.brand-chip img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.colchones-cta { margin-top: 1.8rem; display: flex; justify-content: center; }

/* --- Steps (Cómo trabajamos) --- */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.6rem;
  padding-block: 2rem; border-top: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step-num {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem); color: transparent;
  -webkit-text-stroke: 1.4px var(--accent); line-height: 1;
  transition: color .5s var(--ease-out), -webkit-text-stroke .5s;
}
.step:hover .step-num { color: var(--accent); }
.step-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--text); margin-bottom: .5rem; }
.step-body p { font-size: .98rem; color: var(--text-mute); max-width: 56ch; }

/* --- Galeria --- */
/* Masonry via CSS columns: these photos (styling shots, install close-ups)
   come in very different orientations — portrait and landscape mixed — so
   forcing them into uniform cells would crop half of some away. Each
   photo keeps its own natural height and columns pack tight, gap-free. */
.gallery-grid { columns: 2; column-gap: .9rem; }
.gallery-item {
  position: relative; border-radius: 12px; overflow: hidden;
  break-inside: avoid; margin-bottom: .9rem; display: block;
}
.gallery-item img { width: 100%; height: auto; display: block; filter: grayscale(.5) contrast(1.03); transition: transform 1s var(--ease-soft), filter .6s; }
.gallery-item:hover img { transform: scale(1.09); filter: grayscale(0) saturate(1.08); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.1rem .9rem;
  background: linear-gradient(0deg, var(--on-photo-bg), transparent);
  color: var(--on-photo-text); font-size: .8rem; font-weight: 500; letter-spacing: .01em;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* --- Testimonios (carrusel) --- */
.rating-badge {
  margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem;
  padding: 1rem 1.3rem; background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 999px;
  width: fit-content; font-size: .9rem; color: var(--text-soft);
}
.rating-stars { display: flex; gap: 2px; color: var(--accent); }
.rating-badge strong { color: var(--text); font-family: var(--serif); font-size: 1.1rem; }
.rating-link { color: var(--accent); font-weight: 600; }
.rating-link:hover { text-decoration: underline; }

.testi-carousel { position: relative; }
.testi-track {
  display: flex; gap: 1.3rem; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .4rem .1rem 1rem;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  flex: 0 0 100%; scroll-snap-align: start;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.7rem; display: flex; flex-direction: column; gap: 1rem;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .55s var(--ease-soft), border-color .4s;
}
.testi-card:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.testi-stars { display: flex; gap: 2px; color: var(--accent); }
.testi-card p { font-size: .95rem; color: var(--text-soft); line-height: 1.6; flex-grow: 1; }
.testi-card footer { display: flex; flex-direction: column; gap: .1rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); }
.testi-card footer strong { color: var(--text); font-size: .92rem; }
.testi-card footer span { color: var(--text-mute); font-size: .78rem; }

.testi-nav {
  position: absolute; top: 40%; translate: 0 -50%; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(20,15,8,0.14);
  transition: border-color .3s, color .3s, opacity .3s;
}
.testi-nav:hover { border-color: var(--accent); color: var(--accent); }
.testi-nav:disabled { opacity: .35; pointer-events: none; }
.testi-prev { left: -18px; }
.testi-next { right: -18px; }

/* --- Por qué elegirnos --- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.why-card { padding: 1.8rem; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line-soft); transition: border-color .4s, transform .4s var(--ease-soft); }
.why-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-4px); }
.why-card svg { color: var(--accent); margin-bottom: 1rem; }
.why-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--text); margin-bottom: .5rem; }
.why-card p { font-size: .9rem; color: var(--text-mute); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line-soft); padding-block: 1.3rem; }
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; font-family: var(--serif); font-size: 1.2rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--accent); flex-shrink: 0; transition: transform .4s var(--ease-soft); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { margin-top: .9rem; font-size: .95rem; color: var(--text-mute); max-width: 62ch; }
.faq-item summary:hover { color: var(--accent); }

/* --- CTA final --- */
.cta-final { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); text-align: center; overflow: clip; }
.cta-final-mesh {
  position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(50% 60% at 50% 40%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 68%);
  filter: blur(70px);
}
.cta-final h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.2rem); color: var(--text); margin-block: 1rem 2.2rem; }
.cta-final .kicker { justify-content: center; display: flex; }

/* --- Footer --- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding-block: 3.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: 2.4rem; }
.footer-logo { height: 48px; border-radius: 8px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: var(--text-mute); max-width: 34ch; }
.footer-col h4 { font-family: var(--serif); font-size: 1.05rem; color: var(--text); margin-bottom: 1rem; }
.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--text-mute); transition: color .3s; }
.footer-col a:hover { color: var(--accent); }
.footer-col a svg { flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 1.5rem; }
.footer-bottom p { font-size: .78rem; color: var(--text-mute); }

/* =============================================================
   9. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .gallery-grid { columns: 3; }
  .respaldos-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-strip { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 720px) {
  .step { grid-template-columns: 140px 1fr; }
  .testi-card { flex-basis: calc(50% - .65rem); }
  .testi-nav { display: flex; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .respaldos-grid { grid-template-columns: repeat(5, 1fr); }
  .gallery-grid { columns: 4; }
}

@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
  .testi-card { flex-basis: calc(33.333% - .867rem); }
}

/* =============================================================
   10. Reduced motion — ONLY intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .cta-final-mesh { animation: none; }
  .wa-float::before { animation: none; }
  .splash-logo { animation: none; }
  /* Do NOT disable: tilts, hovers, fades, reveals, count-ups */
}
