/* =========================================================
   SEDA BEAUTY STUDIO — Landing page front-end
   Paleta: crema elegante + negro cálido + dorado champán
   ========================================================= */

:root {
  /* Paleta */
  --cream-50: #faf6f1;
  --cream-100: #f2e9dd;
  --sand-200: #e7d9c5;

  --ink-950: #171310;
  --ink-900: #201a15;
  --ink-800: #2a2219;
  --ink-700: #362c20;
  --ink-600: #4a3d2d;

  --stone-500: #8d7d6a;
  --stone-400: #a89880;
  --taupe-200: #ddcdb8;
  --white: #fffdfa;

  --brand-400: #d8b878;
  --brand-500: #b9925a;
  --brand-600: #8f6a3a;

  --rose-400: #c99b8e;

  --success-500: #25d366;

  /* Tipografía */
  --font-display: 'Playfair Display', serif;
  --font-head: 'Jost', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 4px 16px rgba(23,19,16,.10);
  --shadow-md: 0 18px 46px rgba(23,19,16,.14);
  --shadow-dark: 0 12px 40px rgba(0,0,0,.4);
  --shadow-brand: 0 10px 28px rgba(185,146,90,.35);

  --ease: cubic-bezier(.22,.61,.36,1);
  --nav-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-800);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink-950); }
p { margin: 0 0 1em; color: var(--stone-500); }
svg { display: block; }

::selection { background: var(--brand-500); color: var(--white); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-100); }
::-webkit-scrollbar-thumb { background: var(--taupe-200); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-500); }

/* ===== Layout helpers ===== */
.section { max-width: var(--container); margin: 0 auto; padding: clamp(64px, 9vw, 128px) 24px; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(30px, 4vw, 44px); }
.section__lead { font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em;
  font-size: .76rem; font-weight: 500; color: var(--brand-600); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--brand-500); }
.eyebrow--light { color: var(--brand-400); }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 28px; border-radius: var(--radius-full);
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  letter-spacing: .03em; border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn--solid { background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); color: var(--ink-950); box-shadow: var(--shadow-brand); }
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(185,146,90,.45); }
.btn--ghost { background: transparent; border-color: rgba(23,19,16,.22); color: var(--ink-900); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-600); transform: translateY(-3px); }
.btn--ghost-light { background: transparent; border-color: rgba(255,253,250,.32); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--brand-400); color: var(--brand-400); transform: translateY(-3px); }
.btn--nav { padding: 11px 22px; font-size: .84rem; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1.in-view { transition-delay: .05s; }
.reveal.d2.in-view { transition-delay: .15s; }
.reveal.d3.in-view { transition-delay: .25s; }
.reveal.d4.in-view { transition-delay: .35s; }
.reveal.d5.in-view { transition-delay: .45s; }
.reveal.d6.in-view { transition-delay: .55s; }

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink-950);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { text-align: center; }
.preloader__ring { width: 56px; height: 56px; margin: 0 auto 16px; animation: spin 1.4s linear infinite; }
.preloader__word { font-family: var(--font-display); font-style: italic; letter-spacing: .18em; font-size: 1.4rem; color: var(--cream-50); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Navbar ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center; color: var(--white);
  background: transparent;
  transition: background .35s var(--ease), height .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease), color .35s var(--ease);
}
.nav.is-scrolled { background: rgba(250,246,241,.92); backdrop-filter: blur(14px); height: 72px; box-shadow: 0 2px 24px rgba(23,19,16,.1); color: var(--ink-900); }
.nav__inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand-mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); color: var(--ink-950);
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem;
}
.nav__brand-text { font-family: var(--font-head); font-weight: 600; letter-spacing: .12em; line-height: 1.1; display: flex; flex-direction: column; color: inherit; }
.nav__brand-text em { font-style: normal; font-size: .56rem; letter-spacing: .24em; color: var(--brand-500); font-weight: 500; margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { font-family: var(--font-head); font-size: .9rem; font-weight: 400; color: inherit; position: relative; padding: 4px 0; opacity: .92; }
.nav__links a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--brand-500); transition: width .25s var(--ease); }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; z-index: 1002; }
.nav__burger span { width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.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); }
.nav__overlay { position: fixed; inset: 0; background: rgba(23,19,16,.5); z-index: 998; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease); }
.nav__overlay.is-visible { opacity: 1; visibility: visible; }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; transform: scale(1.08); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,19,16,.5) 0%, rgba(23,19,16,.72) 55%, var(--ink-950) 100%); }
.hero__grain { position: absolute; inset: 0; background-image: radial-gradient(rgba(216,184,120,.10) 1px, transparent 1px); background-size: 4px 4px; mix-blend-mode: overlay; opacity: .5; }
.hero__content { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: calc(var(--nav-h) + 40px) 24px 60px; width: 100%; }
.hero__eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; color: var(--brand-400); margin-bottom: 20px; font-weight: 500; }
.hero__title { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: .002em; max-width: 16ch; margin-bottom: 24px; color: var(--white); }
.hero__title span { color: var(--brand-400); }
.hero__subtitle { font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 48ch; color: var(--taupe-200); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; max-width: 760px; padding-top: 32px; border-top: 1px solid rgba(255,253,250,.16); }
.hero__stat .counter { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.3rem); color: var(--white); display: block; }
.hero__stat p { font-size: .78rem; color: var(--taupe-200); margin: 4px 0 0; text-transform: uppercase; letter-spacing: .04em; }
.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1px solid rgba(255,253,250,.4); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.hero__scroll-line { width: 3px; height: 8px; border-radius: 2px; background: var(--brand-400); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0);} 70% { opacity: 0; transform: translateY(14px);} 100% { opacity: 0; } }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; fill: var(--cream-50); z-index: 1; }

/* ============ Marquee ============ */
.marquee { background: var(--brand-500); color: var(--ink-950); overflow: hidden; padding: 15px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 500; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; padding-right: 14px; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ About ============ */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 68px; align-items: center; }
.about__images { position: relative; }
.about__img--main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; }
.about__img--main img { width: 100%; height: 100%; object-fit: cover; }
.about__img--float { position: absolute; width: 42%; bottom: -8%; right: -10%; border-radius: var(--radius-md); overflow: hidden; border: 5px solid var(--cream-50); box-shadow: var(--shadow-md); aspect-ratio: 1/1; }
.about__img--float img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; top: 6%; left: -8%; background: var(--white); border: 1px solid var(--sand-200);
  border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-md); text-align: center;
}
.about__badge-stars { display: flex; gap: 2px; color: var(--brand-500); justify-content: center; margin-bottom: 6px; }
.about__badge strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-950); }
.about__badge span { font-size: .72rem; color: var(--stone-500); }
.about__lead { font-size: 1.06rem; }
.about__features { display: grid; gap: 14px; margin: 24px 0 32px; }
.about__features li { display: flex; align-items: center; gap: 12px; color: var(--ink-800); font-weight: 500; }
.about__features svg { color: var(--brand-500); flex-shrink: 0; }

/* ============ Servicios ============ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-lg);
  padding: 36px 30px; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-8px); border-color: var(--brand-500); box-shadow: var(--shadow-md); }
.service-card__icon {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(185,146,90,.12); color: var(--brand-600); margin-bottom: 22px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--brand-500); color: var(--ink-950); transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { font-size: .92rem; margin-bottom: 18px; }
.service-card a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .85rem; font-weight: 500; color: var(--brand-600); }
.service-card a svg { transition: transform .25s var(--ease); }
.service-card a:hover svg { transform: translateX(4px); }

/* ============ Proceso ============ */
.process__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.process__list::before { content: ''; position: absolute; top: 26px; left: 8%; right: 8%; height: 1px; background: repeating-linear-gradient(90deg, var(--sand-200) 0 10px, transparent 10px 20px); z-index: 0; }
.process__item { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.process__num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--brand-500); color: var(--brand-600);
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem; margin-bottom: 16px;
}
.process__item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.process__item p { font-size: .86rem; }

/* ============ Why (parallax) ============ */
.why { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 130px) 24px; }
.why__bg { position: absolute; inset: -10% -10%; background-size: cover; background-position: center; will-change: transform; }
.why__overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(23,19,16,.92), rgba(23,19,16,.82)); }
.why__content { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; text-align: center; }
.why__content h2 { font-size: clamp(28px, 4vw, 42px); max-width: 22ch; margin: 0 auto 48px; color: var(--white); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why__item { background: rgba(255,253,250,.05); border: 1px solid rgba(255,253,250,.12); border-radius: var(--radius-lg); padding: 32px 22px; backdrop-filter: blur(6px); }
.why__item svg { color: var(--brand-400); margin: 0 auto 16px; }
.why__item h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--white); }
.why__item p { font-size: .85rem; margin: 0; color: var(--taupe-200); }

/* ============ Antes / Después ============ */
.ba { position: relative; max-width: 900px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/10; cursor: ew-resize; user-select: none; }
.ba__before, .ba__after { position: absolute; inset: 0; overflow: hidden; }
.ba__before img, .ba__after img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ba__after { width: 50%; }
.ba__after img { width: var(--ba-img-w, 900px); max-width: none; }
.ba__label { position: absolute; z-index: 2; bottom: 16px; padding: 6px 16px; border-radius: var(--radius-full); font-family: var(--font-head); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(23,19,16,.7); color: var(--white); backdrop-filter: blur(4px); }
.ba__label--before { right: 16px; }
.ba__label--after { left: 16px; }
.ba__handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--brand-400); transform: translateX(-50%); cursor: ew-resize; }
.ba__handle-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--brand-400); display: flex; align-items: center; justify-content: center; gap: 2px; color: var(--ink-950); box-shadow: var(--shadow-sm); }

/* ============ Calculadora ============ */
.quote__box { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-lg); padding: 42px; }
.quote__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: end; }
.quote__field { display: flex; flex-direction: column; gap: 8px; }
.quote__field label { font-family: var(--font-head); font-size: .8rem; letter-spacing: .04em; color: var(--stone-500); text-transform: uppercase; }
.quote__field select {
  background: var(--cream-100); border: 1px solid var(--sand-200); color: var(--ink-900);
  padding: 13px 14px; border-radius: var(--radius-sm); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9925a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  transition: border-color .2s var(--ease);
}
.quote__field select:focus { outline: none; border-color: var(--brand-500); }
.quote__submit { height: 50px; }
.quote__result { margin-top: 30px; padding-top: 30px; border-top: 1px dashed var(--sand-200); text-align: center; }
.quote__result-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--stone-500); margin-bottom: 6px; }
.quote__result-price { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--brand-600); margin-bottom: 6px; }
.quote__result-note { font-size: .82rem; margin-bottom: 20px; }

/* ============ Testimonios ============ */
.testi { position: relative; max-width: 780px; margin: 0 auto; }
.testi__track { display: flex; transition: transform .5s var(--ease); }
.testi__card { flex: 0 0 100%; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-lg); padding: 42px; text-align: center; }
.testi__quote { color: var(--brand-500); opacity: .8; margin: 0 auto 14px; }
.testi__stars { display: flex; justify-content: center; gap: 3px; color: var(--brand-500); margin-bottom: 18px; }
.testi__card p { font-size: 1.06rem; color: var(--ink-800); font-style: italic; font-family: var(--font-display); margin-bottom: 24px; }
.testi__author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi__author img { width: 48px; height: 48px; border-radius: 50%; }
.testi__author div { text-align: left; }
.testi__author strong { display: block; color: var(--ink-950); font-size: .92rem; font-family: var(--font-body); }
.testi__author span { font-size: .8rem; color: var(--stone-500); }
.testi__controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 30px; }
.testi__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sand-200); background: var(--white); color: var(--ink-900); display: grid; place-items: center; transition: border-color .25s var(--ease), color .25s var(--ease); }
.testi__arrow:hover { border-color: var(--brand-500); color: var(--brand-600); }
.testi__dots { display: flex; gap: 8px; }
.testi__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sand-200); border: none; padding: 0; transition: background .25s var(--ease), width .25s var(--ease); }
.testi__dot.is-active { background: var(--brand-500); width: 22px; border-radius: var(--radius-full); }

/* ============ Planes ============ */
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan-card { position: relative; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-lg); padding: 40px 32px; display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.plan-card:hover { transform: translateY(-6px); }
.plan-card--featured { background: linear-gradient(165deg, var(--ink-800), var(--ink-900)); border-color: var(--brand-500); box-shadow: 0 0 0 1px var(--brand-500), var(--shadow-dark); transform: scale(1.03); }
.plan-card--featured:hover { transform: scale(1.03) translateY(-6px); }
.plan-card--featured h3, .plan-card--featured .plan-card__price { color: var(--white); }
.plan-card--featured .plan-card__desc { color: var(--taupe-200); }
.plan-card--featured .plan-card__price span { color: var(--stone-400); }
.plan-card--featured ul li { color: var(--taupe-200); }
.plan-card__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-500); color: var(--ink-950); font-family: var(--font-head); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 6px 18px; border-radius: var(--radius-full); }
.plan-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan-card__desc { font-size: .86rem; margin-bottom: 20px; }
.plan-card__price { font-family: var(--font-display); font-style: italic; font-size: 2.2rem; color: var(--brand-600); margin-bottom: 24px; }
.plan-card__price span { font-family: var(--font-body); font-style: normal; font-size: .78rem; color: var(--stone-400); font-weight: 400; }
.plan-card ul { display: grid; gap: 12px; margin-bottom: 28px; flex-grow: 1; }
.plan-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-800); }
.plan-card li svg { color: var(--brand-500); flex-shrink: 0; margin-top: 3px; }
.plan-card .btn { width: 100%; }
.plans__note { text-align: center; font-size: .78rem; color: var(--stone-500); margin: 30px 0 0; }

/* ============ Galería ============ */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; border: none; padding: 0; background: var(--sand-200); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(23,19,16,.72)); opacity: 0; transition: opacity .35s var(--ease); }
.gallery__item::before { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: var(--white); opacity: 0; transition: opacity .35s var(--ease); z-index: 1; font-family: var(--font-display); font-style: italic; }
.gallery__item:hover img { transform: scale(1.09); }
.gallery__item:hover::after, .gallery__item:hover::before { opacity: 1; }

.lightbox { position: fixed; inset: 0; background: rgba(15,12,10,.94); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-md); box-shadow: var(--shadow-dark); }
.lightbox__close { position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--ink-800); border: 1px solid var(--ink-600); color: var(--white); display: grid; place-items: center; }
.lightbox__close:hover { border-color: var(--brand-500); color: var(--brand-400); }

/* ============ Blog ============ */
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.blog-card:hover { transform: translateY(-8px); border-color: var(--brand-500); box-shadow: var(--shadow-md); }
.blog-card__img { aspect-ratio: 4/3; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card__img img { transform: scale(1.06); }
.blog-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card__cat { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--brand-600); margin-bottom: 10px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card p { font-size: .9rem; margin-bottom: 18px; flex-grow: 1; }
.blog-card a.blog-card__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .85rem; font-weight: 500; color: var(--brand-600); }
.blog-card a.blog-card__link svg { transition: transform .25s var(--ease); }
.blog-card a.blog-card__link:hover svg { transform: translateX(4px); }
.blog__more { text-align: center; margin-top: 44px; }

/* ============ Página de artigo individual ============ */
.article-hero { position: relative; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 44px; background: var(--cream-100); text-align: center; }
.article-hero__inner { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.article-hero__meta { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-600); margin-bottom: 18px; }
.article-hero__meta span:not(:last-child)::after { content: '·'; margin-left: 10px; color: var(--stone-400); }
.article-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.article-hero__img { max-width: 980px; margin: 0 auto; padding: 0 24px 8px; }
.article-hero__img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 16/9; object-fit: cover; }
.article { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 90px) 24px; }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article p { font-size: 1.02rem; color: var(--ink-800); }
.article ul { display: grid; gap: 10px; margin: 0 0 1.4em; padding-left: 1.3em; list-style: disc; }
.article ul li { font-size: 1.02rem; color: var(--ink-800); padding-left: 4px; }
.article__cta { margin-top: 3em; padding: 32px; background: var(--cream-100); border-radius: var(--radius-lg); text-align: center; }
.article__cta p { margin-bottom: 18px; }
.article__back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .85rem; color: var(--brand-600); margin-bottom: 8px; }

/* ============ FAQ ============ */
.faq__list { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-md); overflow: hidden; }
.faq__question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: none; color: var(--ink-950); font-family: var(--font-head); font-size: 1rem; font-weight: 500; text-align: left; }
.faq__question svg { color: var(--brand-500); flex-shrink: 0; transition: transform .3s var(--ease); }
.faq__question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__answer p { padding: 0 24px 20px; font-size: .92rem; margin: 0; }

/* ============ Contacto ============ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact__lead { font-size: 1.02rem; }
.contact__list { display: grid; gap: 20px; margin: 28px 0 30px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg { color: var(--brand-600); flex-shrink: 0; margin-top: 2px; }
.contact__list strong { display: block; color: var(--ink-950); font-size: .92rem; margin-bottom: 2px; }
.contact__list span { font-size: .88rem; color: var(--stone-500); }
.contact__map { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--sand-200); filter: grayscale(.25) sepia(.12) contrast(1.02); }
.contact__map iframe { width: 100%; height: 100%; border: 0; }

.contact__form { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-lg); padding: 38px; }
.contact__form h3 { font-size: 1.2rem; margin-bottom: 22px; }
.contact__field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.contact__field label { font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--stone-500); }
.contact__field input, .contact__field textarea, .contact__field select {
  background: var(--cream-100); border: 1px solid var(--sand-200); color: var(--ink-900);
  padding: 13px 14px; border-radius: var(--radius-sm); resize: vertical; transition: border-color .2s var(--ease);
}
.contact__field input:focus, .contact__field textarea:focus, .contact__field select:focus { outline: none; border-color: var(--brand-500); }
.contact__field input::placeholder, .contact__field textarea::placeholder { color: var(--stone-400); }
.contact__form .btn { width: 100%; margin-top: 4px; }
.contact__form-note { font-size: .76rem; text-align: center; margin: 12px 0 0; color: var(--stone-400); }

/* ============ Footer ============ */
.footer { background: var(--ink-950); border-top: 1px solid var(--ink-700); padding: 64px 24px 0; }
.footer__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--white); }
.footer__brand .nav__brand-mark { margin-bottom: 4px; }
.footer__brand p { font-size: .86rem; margin-top: 4px; max-width: 32ch; color: var(--taupe-200); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-400); margin-bottom: 6px; font-family: var(--font-head); }
.footer__col a, .footer__col span { font-size: .9rem; color: var(--taupe-200); }
.footer__col a:hover { color: var(--brand-400); }
.footer__bottom { max-width: var(--container); margin: 0 auto; border-top: 1px solid var(--ink-700); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom p { margin: 0; font-size: .8rem; color: var(--stone-500); }
.footer__demo { color: var(--brand-500) !important; }

/* ============ Flotantes ============ */
.float-wa {
  position: fixed; bottom: 26px; right: 26px; z-index: 900; width: 58px; height: 58px; border-radius: 50%;
  background: var(--success-500); color: var(--white); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.4);
  animation: pulseWa 2.6s ease-in-out infinite;
}
.float-wa:hover { transform: scale(1.08); }
@keyframes pulseWa { 0%, 100% { box-shadow: 0 10px 26px rgba(37,211,102,.4); } 50% { box-shadow: 0 10px 26px rgba(37,211,102,.7), 0 0 0 10px rgba(37,211,102,.08); } }
.float-top {
  position: fixed; bottom: 26px; right: 96px; z-index: 900; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink-900); border: 1px solid var(--ink-600); color: var(--white); display: grid; place-items: center;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.float-top:hover { border-color: var(--brand-500); color: var(--brand-400); }
.float-top[hidden] { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .about__grid { grid-template-columns: 1fr; gap: 90px; }
  .about__images { max-width: 420px; margin: 0 auto; }
  .services__grid, .plans__grid, .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .process__list { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process__list::before { display: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 340px); background: var(--cream-50); border-left: 1px solid var(--sand-200); flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 40px; transform: translateX(100%); transition: transform .4s var(--ease); z-index: 1001; color: var(--ink-900); }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a.btn { margin-top: 10px; }
  .nav__burger { display: flex; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .quote__form { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .services__grid, .plans__grid, .why__grid, .blog__grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr 1fr; }
  .about__img--float { width: 46%; right: -4%; bottom: -6%; }
  .about__badge { left: 0; top: -6%; }
  .quote__box, .contact__form { padding: 26px; }
  .footer__inner { grid-template-columns: 1fr; }
  .float-top { right: 22px; bottom: 96px; }
}

/* ============ Accesibilidad: reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: marquee 30s linear infinite !important; }
}
