/* =============================================================
   Lo de Sabri — styles.css
   Archetype: Editorial Light Cream (adaptado a crudo + violeta)
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Colores marca */
  --bg:           #F5EFE6;          /* crudo principal */
  --bg-2:         #EDE5D6;           /* crudo más cálido */
  --bg-3:         #E4DAC4;           /* crudo más oscuro */
  --paper:        #FBF6EC;           /* casi blanco roto */
  --ink:          #1E1A24;           /* negro tibio con tinte violeta */
  --ink-soft:     #2E2735;
  --ink-mute:     #6E6573;
  --gray-mid:     #8B8680;           /* gris medio (de la marca) */
  --violet:       #4A3B5C;           /* violeta oscuro principal */
  --violet-2:     #5B4773;           /* violeta medio */
  --violet-soft:  #8B5A8B;           /* violeta más cálido para acentos */
  --pink-soft:    #F2DDDD;           /* rosa muy suave (línea Mimitos) */
  --pink-stamp:   #D9A5A5;
  --thread:       #B23B3B;           /* rojo bordado (corazones) */
  --gold:         #C9A961;           /* dorado opcional */
  --line:         rgba(30,26,36,0.12);

  /* Tipografía */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --hand:  "Caveat", "Brush Script MT", cursive;

  /* Easing */
  --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);

  /* Layout */
  --gutter: clamp(1.2rem, 4vw, 3rem);
  --max:    1320px;
  --radius: 14px;
  --radius-lg: 22px;
}

/* @property declarations enable smooth transitions */
@property --tilt-x { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --tilt-y { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --halo-x { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --halo-y { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

/* =============================================================
   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;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  /* Paper grain — barely there */
  background-image:
    radial-gradient(at 12% 6%, rgba(74,59,92,0.04) 0, transparent 36%),
    radial-gradient(at 92% 14%, rgba(178,59,59,0.03) 0, transparent 30%),
    radial-gradient(at 84% 88%, rgba(74,59,92,0.05) 0, transparent 40%);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button {
  font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0;
}
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -0.012em;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}
em { font-style: italic; font-variation-settings: "SOFT" 100; color: var(--violet); }
strong { font-weight: 500; color: var(--ink); }
::selection { background: var(--violet); color: var(--bg); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500; font-size: 14px;
}
.skip-link:focus { top: 1rem; }

.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;
}

/* =============================================================
   3. TYPOGRAPHY HELPERS
   ============================================================= */
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.kicker--light { color: rgba(245,239,230,0.7); }
.kicker-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--violet);
  letter-spacing: 0;
  text-transform: none;
}
.kicker--light .kicker-num { color: var(--bg-2); }

.section-title {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 0.98;
  font-weight: 350;
  letter-spacing: -0.018em;
  max-width: 18ch;
}
.section-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "wght" 400;
}
.section-title--light { color: var(--bg); }
.section-title--light em { color: var(--pink-stamp); }

.section-lead {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 1.4rem;
  line-height: 1.65;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0;
  position: relative;
  color: var(--violet);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 1.4rem;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(1); transform-origin: left;
  transition: transform .45s var(--ease-soft);
}
.link-underline:hover::after { transform: scaleX(0); transform-origin: right; }
.link-underline--light { color: var(--bg); }

/* =============================================================
   4. CONTAINER & SECTION SHELL
   ============================================================= */
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  max-width: 60ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head--left { max-width: 44ch; }

/* Subtle "stitched" divider between major sections */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background-image: linear-gradient(to right, var(--line) 50%, transparent 50%);
  background-size: 10px 1px;
  background-repeat: repeat-x;
  opacity: 0.7;
}

/* =============================================================
   5. NAV
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem var(--gutter);
  background: rgba(245, 239, 230, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), padding .35s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(245, 239, 230, 0.95);
  border-bottom-color: var(--line);
  padding: 0.6rem var(--gutter);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--violet);
  text-decoration: none;
}
.nav-brand-mark { display: grid; place-items: center; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-brand-sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

.nav-links {
  display: none;
  gap: 1.8rem;
  align-items: center;
}
.nav-link {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.4rem 0;
  font-weight: 400;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--violet);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-soft);
}
.nav-link:hover { color: var(--violet); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-tienda {
  display: none;
  padding: 0.55rem 1.1rem;
  background: var(--violet);
  color: var(--bg);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .35s var(--ease-out), transform .35s var(--ease-soft);
}
.nav-tienda:hover { background: var(--violet-2); transform: translateY(-2px); }

.nav-burger {
  display: grid; gap: 5px;
  width: 40px; height: 40px;
  place-items: center;
  padding: 10px;
  border-radius: 8px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.4px;
  background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: grid;
  place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] {
  clip-path: inset(0);
}
.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  text-align: center;
}
.nav-mobile-link {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--ink);
  font-weight: 400;
}
.nav-mobile-link--accent { color: var(--violet); font-weight: 500; }

@media (min-width: 960px) {
  .nav-links { display: inline-flex; }
  .nav-tienda { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-mobile { display: none; }
}

/* =============================================================
   6. BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  position: relative;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .35s var(--ease-out), color .35s var(--ease-out);
  isolation: isolate;
}
.btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  transition: transform .8s var(--ease-soft);
}
.btn--lg .btn-inner { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--primary {
  background: var(--violet);
  color: var(--bg);
  box-shadow:
    0 1px 0 rgba(74,59,92,0.6) inset,
    0 14px 30px -12px rgba(74,59,92,0.45),
    0 4px 10px -2px rgba(74,59,92,0.25);
}
.btn--primary:hover {
  background: var(--violet-2);
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(74,59,92,0.6) inset,
    0 24px 50px -14px rgba(74,59,92,0.55),
    0 10px 22px -6px rgba(74,59,92,0.35);
}
.btn--primary:active { transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-3px);
}
.btn--ghost-light {
  color: var(--bg);
  border-color: rgba(245,239,230,0.4);
}
.btn--ghost-light:hover {
  background: var(--bg);
  color: var(--violet);
  border-color: var(--bg);
}
.btn--cream {
  background: var(--bg);
  color: var(--violet);
}
.btn--cream:hover {
  background: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -12px rgba(0,0,0,0.25);
}

/* magnetic inner wrap */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  overflow: visible;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  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.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.29 0 0 0 0 0.23 0 0 0 0 0.36 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 4vw, 5rem);
  }
}

.hero-text { display: flex; flex-direction: column; max-width: 38rem; }
.hero-kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.hero-kicker-dot {
  width: 7px; height: 7px;
  background: var(--violet);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.hero-kicker-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--violet);
  opacity: 0;
  animation: heroDotPulse 2.6s ease-in-out infinite;
}
@keyframes heroDotPulse {
  0%   { transform: scale(0.7); opacity: 0; }
  35%  { opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.96;
  font-weight: 350;
  letter-spacing: -0.022em;
  margin: 0;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "wght" 400, "opsz" 144;
  color: var(--violet);
  display: inline-block;
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.5em;
  background: linear-gradient(180deg, transparent 70%, rgba(178,59,59,0.18) 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-title-soft {
  color: var(--ink-mute);
  font-weight: 350;
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  font-size: 0.86em;
}

.hero-sub {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  color: var(--ink-soft);
  margin-top: 1.6rem;
  line-height: 1.65;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-tags {
  list-style: none;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.hero-tag-dot { color: var(--violet); }

/* === HERO ART === */
.hero-art {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 480px;
}
.hero-art-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 540 / 460;
}
.hero-machine {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  filter: drop-shadow(0 30px 40px rgba(74,59,92,0.25));
}
.hero-art-thread {
  position: absolute;
  pointer-events: none;
  color: var(--violet-soft);
  opacity: 0.55;
  z-index: 1;
}
.hero-art-thread--a {
  top: -10%;
  left: -8%;
  width: 60%;
  transform: rotate(-12deg);
}
.hero-art-thread--b {
  bottom: -8%;
  right: -10%;
  width: 65%;
  transform: rotate(8deg);
}

/* Needle animation — fast stitching motion */
.hero-needle {
  transform-origin: 220px 218px;
  animation: needleStitch 0.42s ease-in-out infinite;
}
@keyframes needleStitch {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(14px); }
  55%      { transform: translateY(13px); }
}

/* Handwheel slow rotation */
.hero-wheel {
  transform-origin: 450px 240px;
  animation: wheelTurn 4.2s linear infinite;
}
@keyframes wheelTurn {
  to { transform: rotate(360deg); }
}

/* Thread spool subtle bob */
.hero-spool {
  animation: spoolBob 3.4s ease-in-out infinite;
  transform-origin: 420px 130px;
}
@keyframes spoolBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

/* Embroidered phrase — TWO lines drawing in sequence on an infinite loop.
   Cycle 12s: line1 draws (0→2.4s) → line2 draws (2.4→4.8s) →
   both visible (4.8→9.6s) → both fade out (9.6→11.4s) → pause (11.4→12s) → repeat. */
.hero-stitch-text--1 {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: stitchLine1 12s ease-in-out 0.6s infinite both;
}
.hero-stitch-text--2 {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: stitchLine2 12s ease-in-out 0.6s infinite both;
}
@keyframes stitchLine1 {
  0%   { stroke-dashoffset: 320; }
  20%  { stroke-dashoffset: 0; }
  80%  { stroke-dashoffset: 0; }
  95%  { stroke-dashoffset: 320; }
  100% { stroke-dashoffset: 320; }
}
@keyframes stitchLine2 {
  0%   { stroke-dashoffset: 520; }
  20%  { stroke-dashoffset: 520; }   /* hidden while line1 is drawing */
  40%  { stroke-dashoffset: 0; }     /* line2 draws after line1 */
  80%  { stroke-dashoffset: 0; }
  95%  { stroke-dashoffset: 520; }
  100% { stroke-dashoffset: 520; }
}

/* Tiny stitch indicator dots (driven by SMIL animateMotion in SVG) — just style */
.hero-stitch-dot {
  filter: drop-shadow(0 0 6px rgba(178,59,59,0.5));
}

/* Pre-stitched heart corner — subtle pulse */
.hero-heart {
  animation: heartPulse 3.5s ease-in-out infinite;
  transform-origin: 138px 208px;
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* Floating label */
.hero-art-label {
  position: absolute;
  bottom: 4%;
  left: -2%;
  z-index: 3;
  background: var(--paper);
  color: var(--violet);
  padding: 0.55rem 1rem 0.55rem 1.4rem;
  border-radius: 4px;
  font-family: var(--hand);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-4deg);
  box-shadow: 0 14px 24px -8px rgba(74,59,92,0.32);
  border: 1px dashed rgba(74,59,92,0.3);
}
.hero-art-label-pin {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px; height: 8px;
  background: var(--thread);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px rgba(178,59,59,0.4);
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 1rem;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 4;
}
.hero-scroll-cue-line {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--ink-mute);
  position: relative;
  overflow: hidden;
}
.hero-scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--violet);
  transform-origin: left;
  animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@media (max-width: 720px) { .hero-scroll-cue { display: none; } }

/* =============================================================
   8. MARQUEE
   ============================================================= */
.marquee {
  overflow: hidden;
  position: relative;
  padding: 1.4rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 2.2rem);
  color: var(--violet);
  display: flex;          /* keeps cloned track inline with original (no wrap) */
  flex-wrap: nowrap;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track {
  display: flex;
  flex-shrink: 0;         /* don't squeeze when sibling clone is added */
  gap: 2.6rem;
  padding-right: 2.6rem;
  white-space: nowrap;
  will-change: transform;
  align-items: center;
}
.marquee-track span { display: inline-flex; align-items: center; }
.marquee-dot {
  color: var(--violet-soft);
  font-size: 0.7em;
  opacity: 0.7;
}

/* =============================================================
   9. SERVICIOS
   ============================================================= */
.section--servicios { padding-top: clamp(5rem, 9vw, 8rem); }

.servicios-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}
@media (min-width: 720px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-grid > :nth-child(3) { grid-column: span 2; max-width: calc(50% - 0.75rem); margin-inline: auto; }
}
@media (min-width: 1080px) {
  .servicios-grid { grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
  .servicios-grid > :nth-child(3) { grid-column: auto; max-width: none; margin-inline: 0; }
}

.servicio-card {
  --halo-x: 50%;
  --halo-y: 50%;
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition:
    transform .55s var(--ease-soft),
    box-shadow .55s var(--ease-soft),
    border-color .35s var(--ease-out);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 4px 12px -4px rgba(30,26,36,0.08);
}
.servicio-card:hover {
  border-color: rgba(74,59,92,0.25);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 40px 70px -20px rgba(74,59,92,0.3),
    0 16px 36px -10px rgba(178,59,59,0.18);
  transition-duration: .18s;
}
.servicio-card.has-tilt:hover { transition-duration: .15s; }

/* Halo following cursor */
.servicio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--halo-x) var(--halo-y),
              rgba(139,90,139,0.16), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.servicio-card:hover::before { opacity: 1; }

.servicio-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.servicio-card-art {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px dashed var(--line);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.servicio-card--accent .servicio-card-art {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-2) 100%);
  color: var(--bg);
}
.servicio-card--accent .servicio-icon rect[fill="#E9DCC7"] { fill: rgba(245,239,230,0.95); }
.servicio-card--accent .servicio-icon text { fill: rgba(245,239,230,0.95); }
.servicio-icon {
  width: 70%;
  max-width: 220px;
  filter: drop-shadow(0 8px 12px rgba(74,59,92,0.15));
  transition: transform .55s var(--ease-soft);
  transform: translateZ(30px);
}
.servicio-card:hover .servicio-icon {
  transform: translateZ(40px) scale(1.04) rotate(-1deg);
}
.servicio-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease-out);
  pointer-events: none;
}
.servicio-card:hover .servicio-card-shine { transform: translateX(110%); }

.servicio-card-body {
  padding: 1.8rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.servicio-card-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 500;
}
.servicio-card-title {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.1;
  color: var(--ink);
  font-weight: 400;
}
.servicio-card-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.servicio-card-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.servicio-card-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.servicio-card-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--violet);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* =============================================================
   10. SOBRE SABRI
   ============================================================= */
.sobre-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) {
  .sobre-wrap {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5rem);
  }
}

.sobre-figure {
  position: relative;
  margin: 0;
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow:
    0 30px 60px -20px rgba(74,59,92,0.18),
    0 8px 16px -4px rgba(74,59,92,0.08);
  transform: rotate(-1deg);
  transition: transform .55s var(--ease-soft);
  max-width: 380px;
  justify-self: center;
}
.sobre-figure:hover { transform: rotate(0deg) scale(1.01); }

.sobre-photo {
  position: relative;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  /* aspect-ratio lives on the <img> itself for max browser compatibility */
}
.sobre-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  min-height: 280px;                 /* fallback if aspect-ratio not honored */
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease-soft);
}
.sobre-figure:hover .sobre-photo img { transform: scale(1.03); }
.sobre-photo-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--violet);
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
}
.sobre-photo-corner--tl { top: 8px;    left: 8px;    border-right: 0; border-bottom: 0; }
.sobre-photo-corner--tr { top: 8px;    right: 8px;   border-left: 0;  border-bottom: 0; }
.sobre-photo-corner--bl { bottom: 8px; left: 8px;    border-right: 0; border-top: 0; }
.sobre-photo-corner--br { bottom: 8px; right: 8px;   border-left: 0;  border-top: 0; }

/* Polaroid inset: maquina.jpeg como "mi compañera de oficio" */
.sobre-photo-inset {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 44%;
  max-width: 180px;
  padding: 9px 9px 34px;
  background: var(--paper);
  border: 1px solid rgba(30,26,36,0.08);
  border-radius: 2px;
  box-shadow:
    0 18px 28px -10px rgba(74,59,92,0.35),
    0 4px 10px -4px rgba(0,0,0,0.2);
  transform: rotate(5deg);
  transition: transform .55s var(--ease-soft);
  z-index: 4;
}
.sobre-figure:hover .sobre-photo-inset {
  transform: rotate(2deg) translateY(-6px);
}
.sobre-photo-inset img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 90px;
  object-fit: cover;
}
.sobre-photo-inset-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  text-align: center;
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--violet);
  line-height: 1;
}
@media (max-width: 540px) {
  .sobre-photo-inset { width: 40%; max-width: 140px; bottom: -16px; right: -14px; padding: 7px 7px 28px; }
  .sobre-photo-inset-caption { font-size: 1rem; }
}

.sobre-figure-tape {
  position: absolute;
  width: 88px;
  height: 22px;
  background: rgba(139,90,139,0.32);
  border: 1px dashed rgba(74,59,92,0.18);
}
.sobre-figure-tape--a {
  top: -10px;
  left: 24px;
  transform: rotate(-8deg);
}
.sobre-figure-tape--b {
  bottom: -10px;
  right: 36px;
  transform: rotate(6deg);
  background: rgba(178,59,59,0.18);
}

.sobre-text { max-width: 36rem; }
.sobre-paragraph {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 1.4rem;
}
.sobre-paragraph:first-of-type { margin-top: 2rem; }

.sobre-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.6rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px dashed var(--line);
}
.sobre-stat dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.4rem;
}
.sobre-stat dd {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--violet);
  margin: 0;
  line-height: 1;
}

/* =============================================================
   11. MIMITOS featured section
   ============================================================= */
.section--mimitos { padding: clamp(3rem, 6vw, 5rem) var(--gutter); }

.mimitos-card {
  position: relative;
  background: linear-gradient(135deg, var(--violet) 0%, #3D2F4D 60%, var(--violet-2) 100%);
  color: var(--bg);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.mimitos-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 20% 100%, rgba(217,165,165,0.25), transparent 50%),
    radial-gradient(at 100% 0%, rgba(178,59,59,0.18), transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.mimitos-card::after {
  /* Subtle stitched border inside */
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(245,239,230,0.25);
  border-radius: calc(clamp(20px, 3vw, 32px) - 16px);
  z-index: 0;
  pointer-events: none;
}

.mimitos-badge {
  position: absolute;
  top: -14px;
  left: clamp(2rem, 5vw, 4rem);
  transform: rotate(-4deg);
  z-index: 3;
  width: 120px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.25));
}

.mimitos-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) {
  .mimitos-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

.mimitos-text { color: var(--bg); }
.mimitos-text .section-title { color: var(--bg); }
.mimitos-text .section-title em { color: var(--pink-stamp); font-variation-settings: "SOFT" 100, "wght" 400; }

.mimitos-lead {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: rgba(245,239,230,0.82);
  margin-top: 1.6rem;
  line-height: 1.65;
  max-width: 38rem;
}

.mimitos-items {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
  font-size: 0.95rem;
  color: rgba(245,239,230,0.92);
}
.mimitos-items li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.mimitos-item-dot {
  width: 8px; height: 8px;
  background: var(--pink-stamp);
  border-radius: 50%;
  flex-shrink: 0;
}

.mimitos-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  margin-top: 2.4rem;
}

/* Stack visual */
.mimitos-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.mimitos-stack {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.mimitos-stack-layer {
  position: absolute;
  width: 75%;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.28));
  border-radius: 10px;
  overflow: hidden;
  transition: transform .55s var(--ease-soft);
}
.mimitos-stack-layer svg { display: block; width: 100%; height: auto; }
.mimitos-stack-layer--1 { transform: rotate(-9deg) translate(-20%, -22%); z-index: 1; }
.mimitos-stack-layer--2 { transform: rotate(-3deg) translate(-6%, -2%);   z-index: 2; }
.mimitos-stack-layer--3 { transform: rotate(4deg)  translate(14%, 12%);   z-index: 3; }
.mimitos-stack-layer--4 { transform: rotate(8deg)  translate(28%, 28%);   z-index: 4; }
.mimitos-visual:hover .mimitos-stack-layer--1 { transform: rotate(-12deg) translate(-26%, -28%); }
.mimitos-visual:hover .mimitos-stack-layer--2 { transform: rotate(-4deg)  translate(-8%, -4%); }
.mimitos-visual:hover .mimitos-stack-layer--3 { transform: rotate(5deg)   translate(16%, 14%); }
.mimitos-visual:hover .mimitos-stack-layer--4 { transform: rotate(10deg)  translate(32%, 32%); }

.mimitos-visual-note {
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--pink-stamp);
  margin-top: 4rem;
  text-align: center;
}

@media (max-width: 720px) {
  .mimitos-items { grid-template-columns: 1fr; }
  .mimitos-stack { max-width: 280px; }
}

/* =============================================================
   12. GALERÍA
   ============================================================= */
.galeria-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(180px, auto);
  grid-auto-flow: dense;        /* packs LG and TALL tiles so no gaps */
  gap: 0.9rem;
}
@media (min-width: 720px) {
  .galeria-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}
@media (min-width: 1080px) {
  .galeria-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(240px, auto);
  }
}
.galeria-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
  cursor: pointer;
}
.galeria-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -16px rgba(74,59,92,0.28);
}
.galeria-tile--lg { grid-column: span 2; }
.galeria-tile--tall { grid-row: span 2; }
@media (max-width: 719px) {
  .galeria-tile--lg { grid-column: span 2; }
  .galeria-tile--tall { grid-row: span 1; }
}

.galeria-photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  overflow: hidden;
  background: var(--bg-3);
}
.galeria-photo img,
.galeria-photo-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .8s var(--ease-soft), filter .55s;
}
.galeria-photo-art svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.galeria-tile:hover .galeria-photo img,
.galeria-tile:hover .galeria-photo-art {
  transform: scale(1.06);
  filter: saturate(1.1) brightness(1.03);
}

.galeria-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(0deg, rgba(30,26,36,0.85) 0%, rgba(30,26,36,0.5) 60%, transparent 100%);
  color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  transform: translateY(20%);
  opacity: 0;
  transition: transform .45s var(--ease-out), opacity .45s var(--ease-out);
}
.galeria-tile:hover .galeria-caption {
  transform: translateY(0);
  opacity: 1;
}
.galeria-cat {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(245,239,230,0.4);
  border-radius: 999px;
  color: var(--bg);
  background: rgba(74,59,92,0.45);
}

.galeria-note {
  text-align: center;
  margin-top: 2.4rem;
  font-size: 0.95rem;
  color: var(--ink-mute);
}
.galeria-note a { color: var(--violet); border-bottom: 1px solid currentColor; }

/* =============================================================
   13. PROCESO — Scroll-driven stitched thread
   ============================================================= */
.proceso-track {
  position: relative;
}

/* The thread SVG — stretches over the top edge of the steps on desktop.
   On mobile it's hidden and the steps revert to a regular stacked layout. */
.proceso-thread {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.proceso-thread-base,
.proceso-thread-draw {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.proceso-thread-base {
  stroke: var(--ink-mute);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.32;
}
.proceso-thread-draw {
  stroke: var(--violet);
  stroke-width: 2;
  stroke-dasharray: 6 4;          /* visible stitch pattern */
  /* stroke-dashoffset is driven by JS / ScrollTrigger.
     Initial fallback (no JS) shows it fully drawn. */
  stroke-dashoffset: 0;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.6));
}
.proceso-thread.is-armed .proceso-thread-draw {
  /* Once JS arms it, hide until scroll reveals */
  stroke-dashoffset: var(--thread-len, 1200);
  transition: stroke-dashoffset .12s linear;
}

.proceso-needle {
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  transform-box: fill-box;
}
.proceso-thread.is-armed.is-progressing .proceso-needle {
  opacity: 1;
}

/* === The steps grid === */
.proceso-line {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 2;            /* sits above the thread */
}
@media (min-width: 720px) {
  .proceso-line {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem 2rem;
  }
}
@media (min-width: 1080px) {
  .proceso-thread { display: block; }
  .proceso-line {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    padding-top: 56px;     /* space for the thread above */
  }
}

.proceso-step {
  position: relative;
  padding: 1.8rem 1.4rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform .55s var(--ease-soft),
              border-color .35s var(--ease-out),
              box-shadow .55s var(--ease-soft),
              opacity .55s var(--ease-out);
}
.proceso-step:hover {
  transform: translateY(-4px);
  border-color: rgba(74,59,92,0.35);
}
.proceso-step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--ink-mute);
  line-height: 1;
  margin-bottom: 0.4rem;
  transition: color .5s var(--ease-out), transform .5s var(--ease-soft);
}
.proceso-step h3 {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.proceso-step p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* === The "knot" (where the thread passes through each card) === */
.proceso-knot {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.6px solid var(--violet);
  display: grid;
  place-items: center;
  z-index: 3;
  transition: transform .5s var(--ease-bounce),
              background .5s var(--ease-out),
              box-shadow .5s var(--ease-out);
}
.proceso-knot-fill {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  transform: scale(0);
  transition: transform .55s var(--ease-bounce), background .35s;
}
.proceso-knot-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--violet);
  opacity: 0;
  pointer-events: none;
}

/* When a step becomes "active" (thread reached its knot) */
.proceso-step[data-active="true"] {
  border-color: rgba(74,59,92,0.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 24px 36px -14px rgba(74,59,92,0.22);
}
.proceso-step[data-active="true"] .proceso-step-num {
  color: var(--violet);
  transform: translateY(-2px);
}
.proceso-step[data-active="true"] .proceso-knot {
  transform: translateX(-50%) scale(1.18);
  background: var(--violet);
  box-shadow:
    0 0 0 6px rgba(74,59,92,0.12),
    0 12px 22px -6px rgba(74,59,92,0.45);
}
.proceso-step[data-active="true"] .proceso-knot-fill {
  background: var(--bg);
  transform: scale(1);
}
.proceso-step[data-active="true"] .proceso-knot-pulse {
  animation: knotPulse 1.3s var(--ease-out) 1;
}
@keyframes knotPulse {
  0%   { opacity: 0.6; transform: scale(0.7); }
  100% { opacity: 0;   transform: scale(2.2); }
}

/* On mobile (no thread), let the knot sit as a small accent dot above the card */
@media (max-width: 1079px) {
  .proceso-knot {
    top: -14px;
    width: 18px; height: 18px;
  }
  .proceso-knot-fill { width: 6px; height: 6px; }
  .proceso-line { padding-top: 14px; }
  /* Without scroll-driven thread, knots activate when their step enters viewport */
  .proceso-step.is-revealed[data-active="true"] .proceso-knot {
    transform: translateX(-50%) scale(1.15);
  }
}

/* =============================================================
   14. TESTIMONIOS
   ============================================================= */
.testimonios-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 720px) { .testimonios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .testimonios-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; } }

.testimonio {
  position: relative;
  padding: 2.2rem 2rem 1.8rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
.testimonio:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -16px rgba(74,59,92,0.22);
}
.testimonio-quote {
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 5rem;
  line-height: 1;
  color: var(--violet);
  opacity: 0.18;
}
.testimonio blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}
.testimonio blockquote p { font-style: italic; font-variation-settings: "SOFT" 100; }
.testimonio-author {
  display: flex;
  flex-direction: column;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.testimonio-author strong {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}
.testimonio-author span {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  margin-top: 0.2rem;
}

/* =============================================================
   15. FAQ
   ============================================================= */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 960px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.35;
  transition: color .25s var(--ease-out);
}
.faq-q:hover { color: var(--violet); }
.faq-icon {
  position: relative;
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: inline-block;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--violet);
}
.faq-icon::before {
  top: 50%; left: 0; right: 0;
  height: 1.4px;
  transform: translateY(-50%);
}
.faq-icon::after {
  left: 50%; top: 0; bottom: 0;
  width: 1.4px;
  transform: translateX(-50%);
  transition: transform .35s var(--ease-soft);
}
.faq-item[data-open="true"] .faq-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease-soft);
}
.faq-item[data-open="true"] .faq-a { max-height: 400px; }
.faq-a p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  padding: 0 0 1.4rem;
  max-width: 56ch;
}
.faq-a a { color: var(--violet); border-bottom: 1px solid currentColor; }

/* =============================================================
   16. CTA FINAL
   ============================================================= */
.section--cta { padding: clamp(3rem, 6vw, 6rem) var(--gutter); }
.cta-card {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  border-radius: clamp(20px, 3vw, 36px);
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 25% 30%, rgba(139,90,139,0.4), transparent 50%),
    radial-gradient(at 80% 70%, rgba(178,59,59,0.25), transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(245,239,230,0.18);
  border-radius: calc(clamp(20px, 3vw, 36px) - 22px);
  z-index: 0;
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1;
  color: var(--bg);
  margin: 0 auto;
  max-width: 18ch;
  font-weight: 350;
}
.cta-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "wght" 400;
  color: var(--pink-stamp);
}
.cta-lead {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: rgba(245,239,230,0.82);
  margin: 1.6rem auto 0;
  max-width: 50ch;
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.4rem;
}
.cta-meta {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(245,239,230,0.65);
}
.cta-meta a {
  color: var(--pink-stamp);
  border-bottom: 1px solid currentColor;
}

/* =============================================================
   17. FOOTER
   ============================================================= */
.footer {
  background: var(--bg-2);
  padding: clamp(3rem, 5vw, 4.5rem) var(--gutter) 1.6rem;
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 4rem);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 3rem;
  }
}

.footer-brand { display: flex; flex-direction: column; gap: 0.7rem; color: var(--violet); }
.footer-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.footer-tag {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 36ch;
}

.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-nav-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.4rem;
}
.footer-nav a, .footer-contact a {
  font-size: 0.94rem;
  color: var(--ink-soft);
  transition: color .25s var(--ease-out);
  width: fit-content;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--violet); }

.footer-bottom {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.footer-credit { font-family: var(--serif); font-style: italic; }

/* =============================================================
   18. WHATSAPP FLOATING
   ============================================================= */
.wa-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #25D366;
  color: #ffffff;
  padding: 0.85rem;
  border-radius: 999px;
  box-shadow:
    0 12px 30px -8px rgba(37,211,102,0.55),
    0 4px 12px -2px rgba(0,0,0,0.18);
  transition: padding .35s var(--ease-soft), gap .35s var(--ease-soft), transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.wa-float-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.9rem;
  transition: max-width .45s var(--ease-soft), padding .35s var(--ease-out);
}
.wa-float:hover {
  padding: 0.85rem 1.3rem 0.85rem 0.85rem;
  gap: 0.6rem;
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px -8px rgba(37,211,102,0.65),
    0 8px 16px -2px rgba(0,0,0,0.22);
}
.wa-float:hover .wa-float-text {
  max-width: 120px;
}

/* Subtle bounce on idle */
@keyframes waIdle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.wa-float { animation: waIdle 4.5s ease-in-out infinite; }
.wa-float:hover { animation: none; }

/* =============================================================
   19. REVEAL ON SCROLL
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
/* Defensive: if an element has both reveal AND data-split (none here, but for safety) */
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   20. TILT (set via JS custom props)
   ============================================================= */
.has-tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

/* =============================================================
   21. REDUCED MOTION
   Only kill INTRUSIVE animations. Keep micro-interactions.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-needle, .hero-wheel, .hero-spool { animation: none; }
  /* Show the embroidered phrase fully, without infinite redrawing */
  .hero-stitch-text--1,
  .hero-stitch-text--2 {
    stroke-dashoffset: 0;
    animation: none;
  }
  .hero-stitch-dot { display: none; }
  .hero-kicker-dot::after { animation: none; opacity: 0.4; }
  .wa-float { animation: none; }
  .hero-scroll-cue-line::after { animation: none; }
  /* Proceso: show thread fully drawn + every step looking active, no pulse */
  .proceso-thread.is-armed .proceso-thread-draw { stroke-dashoffset: 0; }
  .proceso-needle { display: none; }
  .proceso-knot-pulse { animation: none !important; opacity: 0; }
  .proceso-step .proceso-knot {
    background: var(--violet);
  }
  .proceso-step .proceso-knot-fill {
    background: var(--bg);
    transform: scale(1);
  }
  .proceso-step .proceso-step-num { color: var(--violet); }
  /* Do NOT disable: tilt, hover, reveal, marquee — they need to run. */
}

/* =============================================================
   22. RESPONSIVE TWEAKS
   ============================================================= */
@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 2rem; padding-bottom: 3rem; }
  .hero-art { min-height: 340px; margin-top: 1rem; }
  .hero-art-label { font-size: 1rem; padding: 0.5rem 0.85rem 0.5rem 1.2rem; }
  .hero-art-thread { display: none; }
  .nav-brand-sub { display: none; }
  .nav-brand-name { font-size: 1.1rem; }
  .testimonio { padding: 1.8rem 1.5rem 1.5rem; }
  .testimonio-quote { font-size: 3.6rem; top: 6px; }
}

@media (max-width: 540px) {
  .sobre-stats { grid-template-columns: 1fr; gap: 1.2rem; text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .wa-float { padding: 0.75rem; }
  .wa-float svg { width: 22px; height: 22px; }
}
