/* =====================================================================
   PINTURAS TAVIRA — styles.css
   Rebranding 2026: negro, oro y blanco roto, a juego con el logo nuevo
   (tejado dorado + TAVIRA en Playfair Display). Los nombres --almagre, --anil y --ocre
   se mantienen por compatibilidad: ahora son oro oscuro, negro y oro.
   ===================================================================== */

/* =============================================================
   1. Tokens
   ============================================================= */
/* Letras alojadas en la propia web (sin pedir nada a Google: más rápido y sin ceder la IP de las visitas) */
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display-italic.woff") format("woff"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope.woff") format("woff"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("assets/fonts/space-mono-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("assets/fonts/space-mono-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

@property --p { syntax: "<number>"; inherits: true; initial-value: 1; }

:root {
  --bg:        #FFFFFF;   /* blanco */
  --bg-2:      #F5F2ED;
  --paper:     #FFFFFF;
  --ink:       #13213B;   /* azul noche: texto y botones */
  --ink-soft:  #3A4660;
  --ink-mute:  #6F788C;
  --almagre:   #A47E45;   /* champán oscuro: acentos y texto sobre claro */
  --almagre-d: #7F6135;
  --anil:      #13213B;
  --ocre:      #C9A66B;   /* champán: botones */
  --ocre-d:    #A47E45;
  --crema:     #F2E9DB;
  --gold:      #D4AF37;   /* oro: acento sobre fondos oscuros */
  --gold-2:    #EAD9A0;   /* oro claro */
  --night:     #0B1426;   /* azul noche profundo: portada y pie */
  --wa:        #128C4A;
  --line:      rgba(19, 33, 59, .14);
  --line-2:    rgba(19, 33, 59, .28);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(1.1rem, 4.2vw, 3.6rem);
  --maxw: 1360px;
  --nav-h: 72px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --hero-delay: .3s;
}
/* El hero espera a que se vaya el splash (main.js quita .hero-hold; red de seguridad en <head> a los 4,6 s) */
html.hero-hold .hero-title, html.hero-hold .hero-roller, html.hero-hold .drip, html.hero-hold .hero-img,
html.hero-hold .hero-kicker, html.hero-hold .hero-tagline, html.hero-hold .hero-sub,
html.hero-hold .hero-ctas, html.hero-hold .hero-facts { animation-play-state: paused; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
em { font-style: italic; }
::selection { background: var(--almagre); color: var(--paper); }
:focus-visible { outline: 2px solid var(--almagre); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker, .eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.eyebrow .num { color: var(--almagre); font-weight: 700; }
.eyebrow::after { content: ""; width: 3.2rem; height: 1px; background: var(--line-2); }

.h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.3rem, 5.6vw, 4.8rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 1.6rem;
}
.h2 em { color: var(--almagre); font-weight: 340; }
.h2--sm { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-bottom: 0; }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  font-variation-settings: "opsz" 24;
  margin-bottom: 1.2rem;
  max-width: 40ch;
}

/* split-text words (reveal) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em 0; margin: 0 -.08em -.14em 0; }
.wi { display: inline-block; will-change: transform; }

/* =============================================================
   5. Components
   ============================================================= */
/* --- Buttons --- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .82em 1.3em;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 650; font-size: .95rem; letter-spacing: .005em; line-height: 1.1;
  transition: transform .5s var(--ease-out), color .4s var(--ease-out), background-color .4s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .6s var(--ease-out);
  border-radius: inherit;
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { transform: translateY(-2px); }
.btn .btn-arrow { transition: transform .5s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn--lg { font-size: 1.02rem; padding: 1.02em 1.55em; }
.btn--accent { background: var(--almagre); color: var(--paper); box-shadow: 0 14px 28px -16px rgba(164, 126, 69, .85); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--almagre); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); background: rgba(251, 249, 244, .35); }
.btn--ghost:hover { color: var(--paper); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 14px 28px -16px rgba(18, 140, 74, .8); }
.btn--wa svg { width: 1.3em; height: 1.3em; }

/* --- Nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.2rem;
  padding-inline: var(--gutter);
  transition: background-color .5s var(--ease-out), box-shadow .5s, transform .5s var(--ease-out);
}
.nav.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 var(--line); }
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .nav.is-scrolled { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
}
.nav-logo { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.nav-logo-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background:
    linear-gradient(var(--almagre), var(--almagre)) 50% 8px / 18px 5px no-repeat,
    linear-gradient(var(--almagre), var(--almagre)) 50% 9px / 5px 15px no-repeat,
    var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  position: relative;
}
.nav-logo-mark::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--almagre);
}
.nav-logo-text { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.nav-logo-text em { color: var(--almagre); }
.nav-links { display: none; gap: clamp(1rem, 1.8vw, 2rem); }
.nav-links a {
  position: relative; font-size: .9rem; font-weight: 550; padding: .4rem 0;
  display: inline-flex; align-items: baseline; gap: .35rem;
}
.nav-links small { font-family: var(--mono); font-size: .64rem; color: var(--almagre); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--almagre);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .7em 1.1em; font-size: .86rem; }
.nav-burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 50%; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease-out), opacity .3s; }
.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; transform: scaleX(.2); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile menu --- */
.mmenu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 2.6rem) 2.2rem);
  transition: clip-path .8s var(--ease-inout);
}
.mmenu.is-open { clip-path: circle(150% at calc(100% - 2.6rem) 2.2rem); }
.mmenu[hidden] { display: none; }
.mmenu nav { display: flex; flex-direction: column; }
.mmenu nav a {
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.15; letter-spacing: -.02em;
  padding: .35rem 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: .8rem;
}
.mmenu nav small { font-family: var(--mono); font-size: .75rem; color: var(--almagre); }
.mmenu .mmenu-cta { color: var(--almagre); font-style: italic; }
.mmenu-foot { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }

/* --- Cursor (gota de pintura) --- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-drop, .cursor-ring { position: fixed; left: 0; top: 0; will-change: transform; }
.cursor-drop { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.cursor-drop::before {
  content: ""; position: absolute; inset: 0;
  background: var(--almagre);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg) scale(var(--ds, 1));
  transition: transform .35s var(--ease-out), background-color .3s;
}
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid rgba(20, 20, 20, .55); border-radius: 50%;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .4s, border-color .4s;
}
.cursor-label {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-hover .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--almagre); border-color: transparent; }
.cursor.is-hover .cursor-label { opacity: 1; transform: none; }
.cursor.is-hover .cursor-drop { --ds: 0; }
.cursor.is-down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor.is-text .cursor-ring { opacity: 0; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-cursor] { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --- Sidemark (marca lateral) --- */
.sidemark {
  position: fixed; right: 0; top: 50%; z-index: 80;
  display: none; align-items: center; gap: .7rem;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  padding: 1.1rem .6rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(251, 249, 244, .9); border-right: 1px solid var(--line); border-radius: 0 10px 10px 0;
  transition: background-color .4s, color .4s;
}
.sidemark:hover { background: var(--almagre); color: var(--paper); }
.sidemark-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--almagre); box-shadow: 0 0 0 0 rgba(140, 109, 31, .6); animation: pulse 2.2s infinite; }
.sidemark:hover .sidemark-dot { background: var(--paper); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(140, 109, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(140, 109, 31, 0); } }

/* --- WhatsApp flotante --- */
.wa-float {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 85;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.1rem .8rem .9rem; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: .92rem;
  box-shadow: 0 16px 30px -12px rgba(18, 100, 54, .7), 0 0 0 4px rgba(251, 249, 244, .7);
  transition: transform .5s var(--ease-out), opacity .4s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:active { transform: scale(.95); }
.wa-float.is-hidden { transform: translateY(140%); opacity: 0; }

/* --- Toast --- */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 500; max-width: min(92vw, 520px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: .9rem 1.2rem; border-radius: 12px;
  font-size: .92rem; line-height: 1.4; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast code { font-family: var(--mono); font-size: .82em; color: var(--ocre); }

/* =============================================================
   6. Fondo de cal reactivo
   ============================================================= */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--bg); overflow: hidden; pointer-events: none; }
.bg-blob {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  translate: calc(var(--mx, 0) * 26px) calc(var(--my, 0) * 26px);
  transition: translate 1.2s var(--ease-soft);
  animation: drift 70s ease-in-out infinite alternate;
}
.bg-blob--a { left: -25vmax; top: -20vmax; background: radial-gradient(circle, rgba(164, 126, 69, .07) 0%, rgba(164, 126, 69, 0) 62%); }
.bg-blob--b { right: -30vmax; top: 30vh; background: radial-gradient(circle, rgba(19, 33, 59, .05) 0%, rgba(19, 33, 59, 0) 62%); animation-duration: 90s; animation-delay: -30s; }
.bg-blob--c { left: 10vw; bottom: -40vmax; background: radial-gradient(circle, rgba(201, 166, 107, .08) 0%, rgba(201, 166, 107, 0) 62%); animation-duration: 80s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(8vw, 6vh, 0) scale(1.08); }
  100% { transform: translate3d(-6vw, -4vh, 0) scale(.96); }
}
.bg-grain {
  position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='4' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 220px 220px, 600px 600px;
  opacity: .32;
  mix-blend-mode: multiply;
}

/* =============================================================
   7. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 600;
  display: grid; place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-inout);
  animation: splashSafety .01s 4.5s forwards; /* red de seguridad sin JS */
}
html:not(.js) .splash { display: none; }
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-inner { display: grid; justify-items: center; gap: 1.1rem; }
.splash-word {
  font-family: var(--serif); font-weight: 420; font-size: clamp(3.6rem, 15vw, 9rem);
  line-height: .9; letter-spacing: .02em; display: flex; overflow: hidden; padding-bottom: .06em;
  font-variation-settings: "opsz" 144;
}
.splash-word span { display: inline-block; animation: letterUp .95s var(--ease-out) calc(var(--i) * .075s + .15s) both; }
.splash-word span:nth-child(odd) { font-style: italic; color: var(--almagre); }
@keyframes letterUp { from { transform: translateY(105%) rotate(6deg); opacity: 0; } }
.splash-stroke { width: min(68vw, 360px); height: 34px; overflow: visible; }
.splash-stroke path {
  fill: none; stroke: var(--ocre); stroke-width: 18; stroke-linecap: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  animation: strokeIn 1.35s var(--ease-inout) .55s forwards;
}
@keyframes strokeIn { to { stroke-dashoffset: 0; } }
.splash-meta { font-family: var(--mono); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-mute); animation: fadeIn .8s .9s both; }
@keyframes fadeIn { from { opacity: 0; } }

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 1.5rem) 0 5.5rem;
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%;
  transform-origin: 70% 45%;
  animation: heroZoom 2.8s var(--ease-out) calc(var(--hero-delay) - .5s) both;
}
@keyframes heroZoom { from { transform: scale(1.14); filter: saturate(.7) brightness(1.05); } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(246,244,239,.55) 0%, rgba(246,244,239,.86) 38%, rgba(246,244,239,.9) 72%, var(--bg) 100%);
}
.hero-content { position: relative; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: 1.6rem; }
.kicker-sep { width: 22px; height: 1px; background: var(--almagre); }

.hero-title {
  position: relative; display: inline-block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.5rem, 18.5vw, 11.4rem);
  line-height: .86; letter-spacing: -0.045em;
  font-variation-settings: "opsz" 144;
  margin: 0 0 1.4rem -.04em;
  --p: 1;
  animation: heroPaint 1.7s var(--ease-inout) var(--hero-delay) both;
}
@keyframes heroPaint { from { --p: 0; } to { --p: 1; } }
.hero-paint {
  position: relative; display: block;
  clip-path: inset(-30% calc(100% - var(--p) * 100%) -45% -6%);
}
.hero-line { display: block; }
.hero-line--offset { padding-left: .82em; }
.hero-line em { color: var(--almagre); font-weight: 360; }
.hero-swash {
  position: absolute; z-index: -1; left: .95em; right: -.1em; bottom: .02em; height: .3em;
  background: var(--ocre); opacity: .5; mix-blend-mode: multiply;
  border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
  transform: skewX(-12deg) rotate(-1.2deg);
}
.hero-roller {
  position: absolute; top: -8%; bottom: -12%; left: calc(var(--p) * 100%);
  width: auto; transform: translateX(-30%);
  pointer-events: none; opacity: 0;
  animation: rollerFade 1.7s linear var(--hero-delay) both;
}
@keyframes rollerFade { 0% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.hero-roller svg { height: 100%; width: auto; overflow: visible; }
.hr-body { fill: var(--almagre); stroke: var(--ink); stroke-width: 2.5; }
.hr-lines { stroke: rgba(251, 249, 244, .45); stroke-width: 2; stroke-linecap: round; }
.hr-frame { stroke: #8d8f93; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.hr-handle { fill: var(--ink); }

.drip-host { position: relative; display: inline-block; }
.drip {
  position: absolute; left: 22%; top: .66em; width: .045em; height: .42em;
  background: var(--almagre); border-radius: 0 0 1em 1em;
  animation: drip 2.4s var(--ease-out) calc(var(--hero-delay) + 1.35s) both;
}
.drip::after {
  content: ""; position: absolute; left: 50%; bottom: -.06em; width: .085em; height: .1em; margin-left: -.0425em;
  background: var(--almagre); border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}
@keyframes drip { from { height: 0; } 50% { height: .3em; } to { height: .42em; } }

.hero-tagline { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.15; margin-bottom: .8rem; }
.hero-sub { max-width: 42ch; color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.12rem); margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.hero-facts b { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink); margin-right: .35rem; text-transform: none; }

/* entrada del resto del hero tras el rodillo */
.hero-kicker, .hero-tagline, .hero-sub, .hero-ctas, .hero-facts { animation: heroIn 1.1s var(--ease-out) both; }
.hero-kicker  { animation-delay: calc(var(--hero-delay) - .2s); }
.hero-tagline { animation-delay: calc(var(--hero-delay) + .9s); }
.hero-sub     { animation-delay: calc(var(--hero-delay) + 1.05s); }
.hero-ctas    { animation-delay: calc(var(--hero-delay) + 1.2s); }
.hero-facts   { animation-delay: calc(var(--hero-delay) + 1.35s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute);
}
.hero-scroll i { width: 1px; height: 42px; background: linear-gradient(var(--ink) 50%, transparent 50%) 0 0 / 1px 200%; animation: scrollLine 2s var(--ease-inout) infinite; opacity: .6; }
@keyframes scrollLine { to { background-position: 0 -84px; } }

/* =============================================================
   9. Cinta de carrocero (marquee)
   ============================================================= */
.tape {
  position: relative; z-index: 3;
  width: 106vw; margin: -1.8rem 0 0 -3vw;
  transform: rotate(-1.6deg);
  background-color: var(--ocre);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.05));
  box-shadow: 0 14px 26px -16px rgba(20, 20, 20, .5);
  overflow: hidden;
}
.tape-track, .materials-track, .footer-display-track { display: flex; width: max-content; }
.tape-track { animation: marquee 42s linear infinite; }
.tape-track p {
  white-space: nowrap; padding: 1rem 0; padding-right: 1.4rem;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.tape-track i { font-style: normal; color: var(--almagre); margin: 0 .9rem; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes marqueeRev { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }

/* =============================================================
   10. Secciones genéricas + reveals
   ============================================================= */
.section { position: relative; padding-block: clamp(5.5rem, 12vw, 10rem); }
.watermark {
  position: absolute; z-index: -1; top: clamp(1.5rem, 4vw, 3rem); right: var(--gutter);
  font-family: var(--serif); font-weight: 300; font-size: clamp(9rem, 30vw, 27rem); line-height: .78;
  letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.2px rgba(20, 20, 20, .1);
  pointer-events: none; user-select: none; font-variation-settings: "opsz" 144;
}

.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Defensa CSS: un elemento con split nunca se queda invisible */
.reveal[data-split] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; translate: 0 50px; transition: opacity 1s var(--ease-out), translate 1.3s var(--ease-out); }
.js [data-reveal].is-revealed { opacity: 1; translate: 0 0; }

/* =============================================================
   11. 01 · Empresa
   ============================================================= */
.about-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.collage { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 620px; }
.polaroid {
  position: absolute; background: var(--paper);
  padding: 10px 10px 30px; box-shadow: 0 24px 40px -24px rgba(20, 20, 20, .45), 0 2px 6px rgba(20,20,20,.08);
  transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out), opacity 1s var(--ease-out), translate 1.3s var(--ease-out);
}
.polaroid img { width: 100%; object-fit: cover; }
.polaroid--a { width: 54%; left: 2%; top: 0; transform: rotate(-4.5deg); z-index: 2; transition-delay: 0s; }
.polaroid--a img { aspect-ratio: 4 / 5; }
.polaroid--b { width: 52%; right: 0; top: 22%; transform: rotate(3.5deg); z-index: 1; transition-delay: .12s; }
.polaroid--b img { aspect-ratio: 4 / 3.4; }
.polaroid--c { width: 50%; left: 18%; bottom: 0; transform: rotate(-1.2deg); z-index: 3; transition-delay: .24s; }
.polaroid--c img { aspect-ratio: 4 / 3; }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 5; box-shadow: 0 34px 50px -24px rgba(20, 20, 20, .5); }
.tape-corner {
  position: absolute; width: 74px; height: 24px;
  background: rgba(234, 217, 160, .86);
  clip-path: polygon(4% 0, 96% 6%, 100% 30%, 95% 55%, 100% 82%, 96% 100%, 3% 94%, 0 70%, 4% 46%, 0 22%);
  box-shadow: inset 0 0 0 100px rgba(255,255,255,.04);
}
.tape-corner--tl { left: -22px; top: 6px; transform: rotate(-38deg); }
.tape-corner--tr { right: -22px; top: 6px; transform: rotate(38deg); }
.tape-corner--br { right: -22px; bottom: 10px; transform: rotate(-38deg); }
.stamp {
  position: absolute; right: 6%; bottom: 8%; z-index: 4;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .22em; color: var(--almagre);
  border: 1.5px solid var(--almagre); box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6.5px var(--almagre);
  background: var(--bg); transform: rotate(-14deg);
}
.stamp b { display: block; font-family: var(--serif); font-size: 1.6rem; letter-spacing: -.01em; line-height: 1; margin-top: .2rem; color: var(--ink); }

.facts { display: grid; gap: 0 2rem; margin-top: 2.4rem; }
.facts div { border-top: 1px solid var(--line); padding: .9rem 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; }
.facts dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.facts dd { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
.about-body > p:not(.lead):not(.eyebrow) { color: var(--ink-soft); max-width: 52ch; }

.about-aside { border-top: 1px solid var(--ink); padding-top: 1.4rem; display: grid; gap: 1.4rem; align-content: start; }
.aside-label {
  justify-self: start; font-family: var(--mono); font-size: .66rem; letter-spacing: .3em;
  padding: .35rem .6rem; background: var(--ink); color: var(--paper);
}
.about-aside blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.35; }
.aside-zone { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--ink-soft); }
.pin { width: 12px; height: 12px; flex: none; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--almagre); }

/* =============================================================
   12. 02 · Servicios (carrusel horizontal)
   ============================================================= */
.services { position: relative; padding-top: clamp(5rem, 10vw, 8rem); }
.svc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.4rem 2rem; padding-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.svc-progress { display: flex; align-items: center; gap: 1rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; color: var(--ink-soft); }
.svc-count b { color: var(--almagre); font-size: 1.05rem; }
.svc-bar { position: relative; width: clamp(80px, 14vw, 180px); height: 2px; background: var(--line); overflow: hidden; }
.svc-bar i { position: absolute; inset: 0; background: var(--almagre); transform-origin: left; transform: scaleX(var(--prog, .2)); transition: transform .4s var(--ease-out); }
.svc-hint { text-transform: uppercase; font-size: .66rem; letter-spacing: .2em; }
.svc-hint span { display: inline-block; animation: nudge 1.8s var(--ease-inout) infinite; color: var(--almagre); }
@keyframes nudge { 50% { transform: translateX(6px); } }

.svc-viewport {
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
  outline-offset: -4px;
}
.svc-viewport::-webkit-scrollbar { display: none; }
.svc-track { display: flex; gap: 1rem; padding-inline: var(--gutter); width: max-content; }
.svc {
  --acc-on: var(--paper);
  flex: 0 0 min(86vw, 520px);
  scroll-snap-align: center;
  display: grid; gap: 1.6rem; align-content: start;
  background: rgba(251, 249, 244, .7);
  border: 1px solid var(--line-2);
  padding: 1rem 1rem 1.6rem;
}
.svc[data-service-index="2"] { --acc-on: var(--ink); }

.plate {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 10%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 10% 100%,
    var(--paper);
  background-blend-mode: normal;
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 -1px var(--bg), 7px 7px 0 0 var(--line-2);
  padding: 8%;
}
.plate::before, .plate::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--ink);
}
.plate::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.plate::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.plate-tag, .plate-scale {
  position: absolute; font-family: var(--mono); font-size: clamp(.5rem, .8vw, .62rem); letter-spacing: .16em; color: var(--ink-soft);
}
.plate-tag { top: 12px; left: 34px; }
.plate-scale { bottom: 12px; right: 34px; }
.plate-ruler {
  position: absolute; left: 0; top: 16%; bottom: 16%; width: 9px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 9px);
  opacity: .4;
}
.svc-svg { width: 100%; height: 100%; color: var(--ink); overflow: visible; }

/* trazado line-art */
.draw {
  stroke-dasharray: 1 1; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s var(--ease-inout) var(--d, 0s);
}
.js [data-draw]:not(.is-drawn) .draw { stroke-dashoffset: 1; }
.svc-svg .acc { stroke: var(--acc); }
.svc-svg .acc2 { stroke: var(--almagre); }
.svc-svg .letter { stroke: var(--paper); stroke-width: 7; transition-delay: calc(var(--d, 0s) + 1.1s); }
.svc-svg .letter.thin { stroke-width: 2.6; }
.svc-svg .glass { stroke: var(--paper); stroke-width: 1.8; opacity: .55; transition-delay: calc(var(--d, 0s) + 1.1s); }
.fill {
  clip-path: circle(150% at 46% 56%);
  transition: clip-path 1.6s var(--ease-inout) 1.15s;
}
.js [data-draw]:not(.is-drawn) .fill { clip-path: circle(0% at 46% 56%); }
.f-main { fill: var(--fill); }
.f-acc { fill: var(--acc); }
.f-acc2 { fill: var(--almagre); }
.f-shadow { filter: drop-shadow(9px 9px 0 rgba(20, 20, 20, .13)); }
.svc[data-service-index="0"] .f-main { fill: #E3D6BC; }

.svc-text { display: grid; gap: .9rem; align-content: start; padding-inline: .3rem; }
.svc-meta { display: flex; align-items: center; gap: .8rem; }
.svc-num { font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--ink-mute); }
.svc-tag {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem .7rem .32rem; border-radius: 999px; background: var(--acc); color: var(--acc-on);
}
.svc-name { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 380; letter-spacing: -.03em; line-height: 1; font-variation-settings: "opsz" 144; }
.svc-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.7vw, 1.45rem); color: var(--ink-soft); }
.svc-desc { color: var(--ink-soft); max-width: 46ch; }
.svc-list { display: grid; gap: .1rem; margin-top: .3rem; }
.svc-list li {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem 0; border-top: 1px solid var(--line); font-weight: 550; font-size: .95rem;
}
.svc-list li::before { content: ""; width: 14px; height: 10px; flex: none; background: var(--acc); border-radius: 2px 5px 3px 6px; box-shadow: inset 0 0 0 1px rgba(20,20,20,.15); }
.svc-link { justify-self: start; margin-top: .6rem; font-weight: 700; font-size: .95rem; color: var(--almagre); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease-out); }
.svc-link:hover { background-size: 30% 1.5px; }

/* materiales — marquee inverso */
.materials { border-block: 1px solid var(--line); overflow: hidden; margin-top: .5rem; }
.materials-track { animation: marqueeRev 55s linear infinite; translate: var(--mtx, 0px) 0; }
.materials-track p {
  white-space: nowrap; padding: 1rem 0; padding-right: 1.4rem;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.8rem); color: var(--ink-soft);
}
.materials-track i { font-style: normal; font-family: var(--mono); font-size: .8em; color: var(--almagre); margin: 0 1rem; }

/* modo fijado (desktop + GSAP) */
.services.is-pinned { height: 100vh; height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + .6rem); padding-bottom: 0; }
.services.is-pinned .svc-head { flex: none; padding-bottom: 1rem; }
.services.is-pinned .svc-viewport { flex: 1; min-height: 0; overflow: visible; padding: 0; scroll-snap-type: none; }
.services.is-pinned .svc-track { height: 100%; gap: 0; padding: 0; will-change: transform; }
.services.is-pinned .svc {
  flex: 0 0 100vw; height: 100%;
  background: transparent; border: 0;
  padding: 1rem var(--gutter) 1.4rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; align-content: stretch;
}
.services.is-pinned .svc-art { height: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.services.is-pinned .plate { width: auto; height: min(94%, 44vw); max-width: 100%; }
.services.is-pinned .svc-hint { display: none; }

/* =============================================================
   13. 03 · Cómo trabajamos
   ============================================================= */
.method-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.steps { counter-reset: s; border-bottom: 1px solid var(--line-2); }
.step {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 56px 1fr; gap: .4rem 1.2rem; align-items: center;
  padding: 1.6rem .4rem;
  border-top: 1px solid var(--line-2);
}
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--acc); transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-out) .2s;
}
.step.is-visible::before, html:not(.js) .step::before { transform: scaleX(1); }
.step-num { grid-column: 1 / -1; font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.step-icon { width: 56px; height: 56px; color: var(--ink); }
.step-icon .acc { stroke: var(--acc); stroke-width: 2.6; }
.step h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.6rem); letter-spacing: -.025em; line-height: 1.05; margin-bottom: .3rem; }
.step p { color: var(--ink-soft); }
.step-wash {
  position: absolute; inset: 0; z-index: -1; background: var(--acc); opacity: .13;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out);
  border-radius: 0 40px 40px 0 / 0 50% 50% 0;
}
.step:hover .step-wash { transform: scaleX(1); }

/* =============================================================
   14. 04 · Trabajos (antes / después + galería)
   ============================================================= */
.works-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.ba-list { display: grid; gap: clamp(2rem, 4vw, 3rem); max-width: 560px; margin-inline: auto; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ba-fig { position: relative; overflow: hidden; background: var(--bg-2); }
.ba-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ba-fig figcaption {
  position: absolute; top: .8rem; left: .8rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .35rem .6rem; background: rgba(20, 20, 20, .82); color: var(--paper);
}
.ba-after figcaption { background: var(--almagre); }
.ba-handle, .ba-range { display: none; }

.ba.is-slider {
  display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  box-shadow: 0 30px 60px -36px rgba(20, 20, 20, .55);
}
.ba.is-slider .ba-fig { position: absolute; inset: 0; }
.ba.is-slider .ba-fig img { height: 100%; aspect-ratio: auto; pointer-events: none; }
.ba.is-slider .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba.is-slider .ba-after figcaption { left: auto; right: .8rem; }
.ba.is-slider .ba-handle {
  display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 2; pointer-events: none;
}
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--paper); box-shadow: 0 0 12px rgba(0,0,0,.25); }
.ba-handle span {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--almagre); font-size: 1.4rem; font-weight: 700;
  box-shadow: 0 10px 24px -8px rgba(20, 20, 20, .5), 0 0 0 5px rgba(251, 249, 244, .35);
  transition: transform .4s var(--ease-out);
}
.ba.is-dragging .ba-handle span { transform: translate(-50%, -50%) scale(1.12); }
.ba.is-slider .ba-range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--almagre); outline-offset: 4px; }
.ba-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding-top: .9rem; border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.ba-caption span { font-family: var(--serif); font-size: 1.2rem; }
.ba-caption small { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); align-self: center; }

.gallery {
  display: grid; gap: clamp(.6rem, 1.2vw, 1rem);
  margin: clamp(4.5rem, 9vw, 8rem) 0 0 -4vw; width: 108vw;
  transform: rotate(-2.2deg);
}
.gal-row { overflow: hidden; }
.gal-track { display: flex; gap: clamp(.6rem, 1.2vw, 1rem); width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.gal-row--fast { --dur: 48s; }
.gal-row--slow { --dur: 95s; }
.gal-row--reverse { --dur: 70s; }
.gal-row--reverse .gal-track { animation-name: marqueeRev; }
.gal-row:hover .gal-track { animation-play-state: paused; }
.gal-track figure {
  height: clamp(200px, 24vw, 360px); aspect-ratio: 3 / 4; flex: none;
  overflow: hidden; background: var(--bg-2);
}
.gal-track figure.is-tall { aspect-ratio: 3 / 4; }
.gal-track img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .8s; }
.gal-track figure:hover img { transform: scale(1.07); filter: saturate(1.15) brightness(1.04); }

/* =============================================================
   15. 05 · Comunidades
   ============================================================= */
.community { perspective: 1400px; }
.community-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 50px 80px -50px rgba(20, 20, 20, .6);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .9s var(--ease-out);
  transform-style: preserve-3d;
}
.community-img {
  position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; z-index: -2;
  transform: translate3d(var(--ix, 0px), var(--iy, 0px), 0);
  transition: transform .9s var(--ease-out);
}
.community-veil { display: none; }
.community-body { padding: clamp(1.4rem, 5vw, 4.5rem); max-width: 680px; }
.community-body > p:not(.eyebrow) { color: var(--ink-soft); max-width: 50ch; margin-bottom: 1.4rem; }
.community-list { display: grid; gap: .5rem; margin-bottom: 2rem; }
.community-list li { display: flex; gap: .7rem; align-items: baseline; font-weight: 600; }
.community-list li::before { content: "✓"; color: var(--almagre); font-weight: 800; }

/* =============================================================
   16. 06 · Presupuesto
   ============================================================= */
.quote-grid { display: grid; gap: clamp(3rem, 5vw, 5rem); align-items: start; }
.qform { display: grid; gap: 1.4rem; margin-top: 1rem; }
.field { display: grid; gap: .35rem; position: relative; }
.field label { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: .7rem; align-items: baseline; }
.field label small { text-transform: none; letter-spacing: 0; color: var(--ink-mute); }
.fnum { color: var(--almagre); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; padding: .65rem 0 .7rem;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3;
  transition: border-color .3s, background-color .3s, padding .4s var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 3.4em; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='%238E6A33' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .2rem center; background-size: 18px; padding-right: 2rem;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(20, 20, 20, .35); font-style: italic; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--almagre); background: rgba(140, 109, 31, .05); padding-left: .6rem; }
.field--split { grid-template-columns: 1.6fr 1fr; gap: 1rem; }
.field--split > div { display: grid; gap: .35rem; }
.ferr { font-size: .82rem; color: #A3271C; font-weight: 600; min-height: 0; }
.field.is-error input, .field.is-error select { border-color: #A3271C; }
.qform-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: .6rem; }
.qform-alt { font-weight: 650; color: var(--ink-soft); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease-out), color .3s; }
.qform-alt:hover { background-size: 100% 1.5px; color: var(--almagre); }
.qform-status { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--wa); min-height: 1.4em; }
.qform-status a { text-decoration: underline; }

.quote-panel {
  background: var(--ink); color: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: 6px; position: relative; overflow: hidden;
}
.quote-panel::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 109, 31, .55), transparent 70%);
}
.panel-badge { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; margin-bottom: 1.6rem; position: relative; z-index: 1; }
.panel-badge em { color: var(--ocre); }
.quote-panel dl > div { display: grid; grid-template-columns: 6.2rem 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid rgba(251, 249, 244, .15); align-items: baseline; }
.quote-panel dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ocre); }
.quote-panel dd { font-size: .98rem; overflow-wrap: anywhere; }
.quote-panel dd a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.panel-note { margin-top: 1.4rem; font-size: .9rem; color: rgba(251, 249, 244, .7); }

/* marcadores [PENDIENTE] — visibles para no olvidarlos */
.is-pending { background: repeating-linear-gradient(-45deg, rgba(212,175,55,.25) 0 6px, transparent 6px 12px); outline: 1px dashed var(--ocre); outline-offset: 2px; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-2); overflow: hidden; padding-bottom: 6.5rem; }
.footer-display { padding: clamp(2rem, 4vw, 3.4rem) 0 clamp(1.4rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); }
.footer-display-track { animation: marquee 60s linear infinite; }
.footer-display-track span {
  white-space: nowrap; font-family: var(--serif); font-weight: 380; font-size: clamp(4rem, 14vw, 12rem); line-height: .9;
  letter-spacing: -.045em; padding-right: .3em; font-variation-settings: "opsz" 144;
}
.footer-display-track em { color: var(--almagre); }
.footer-display-track i { font-style: normal; color: var(--ocre); }
.footer-grid { display: grid; gap: 2.4rem; padding-block: clamp(2.6rem, 5vw, 4rem); }
.footer-claim { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; margin-bottom: 1.2rem; }
.footer-h { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--almagre); margin-bottom: .9rem; font-weight: 700; }
.footer-col p { margin-bottom: .35rem; }
.footer-muted { color: var(--ink-mute); font-size: .95rem; }
.footer-links { display: grid; gap: .45rem; }
.footer-links a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out), color .3s; }
.footer-links a:hover { background-size: 100% 1px; color: var(--almagre); }
.footer-map { min-height: 240px; border: 1px solid var(--ink); background: var(--bg); }
.footer-map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; filter: grayscale(.55) sepia(.28) contrast(.96); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.footer-legal a:hover { color: var(--almagre); }

/* =============================================================
   18. Página de créditos
   ============================================================= */
.page-credits { padding: 2rem var(--gutter) 5rem; max-width: 980px; margin: 0 auto; }
.page-credits .back { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--almagre); }
.page-credits h1 { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 5rem); margin: 2rem 0 1rem; letter-spacing: -.035em; }
.page-credits h1 em { color: var(--almagre); }
.page-credits .intro { color: var(--ink-soft); max-width: 60ch; margin-bottom: 2rem; }
.credits-list li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); }
.credits-list img { width: 90px; height: 64px; object-fit: cover; }
.credits-list strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; display: block; }
.credits-list span { font-size: .85rem; color: var(--ink-mute); }

/* =============================================================
   19. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .2rem; }
  .step { grid-template-columns: 7rem 64px 1fr; gap: 1.6rem; padding: 2rem .6rem; }
  .step-num { grid-column: auto; }
  .step-icon { width: 64px; height: 64px; }
}

@media (min-width: 720px) {
  .hero-veil {
    background:
      linear-gradient(90deg, rgba(246,244,239,.95) 0%, rgba(246,244,239,.86) 36%, rgba(246,244,239,.32) 60%, rgba(246,244,239,0) 78%),
      linear-gradient(0deg, var(--bg) 0%, rgba(246,244,239,0) 22%);
  }
  .hero-scroll { display: flex; }
  .svc { flex-basis: min(78vw, 640px); }
  .community-card { flex-direction: row; align-items: center; min-height: clamp(560px, 78vh, 780px); background: none; }
  .community-img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; aspect-ratio: auto; }
  .community-veil {
    display: block; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(246,244,239,.97) 0%, rgba(246,244,239,.9) 46%, rgba(246,244,239,.2) 78%, rgba(246,244,239,0) 100%);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --nav-h: 80px; }
  .nav-links { display: flex; margin-right: 1rem; }
  .nav-burger { display: none; }
  .mmenu { display: none !important; }
  .sidemark { display: flex; }
  .wa-float { display: none; }
  .about-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 5vw; }
  .collage { grid-row: 1 / 3; align-self: start; position: sticky; top: calc(var(--nav-h) + 2rem); }
  .quote-grid { grid-template-columns: 1.45fr 1fr; }
  .ba-list { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .quote-panel { position: sticky; top: calc(var(--nav-h) + 1.5rem); margin-top: 7rem; }
  .footer-grid { grid-template-columns: 1.1fr 1fr 1.1fr 1.5fr; }
  .toast { bottom: 2rem; }
  .footer { padding-bottom: 2.2rem; }
  .svc { grid-template-columns: 1fr 1fr; align-items: center; flex-basis: min(86vw, 1100px); padding: 1.4rem; gap: 2.6rem; }
}

@media (min-width: 1280px) {
  .about-grid { grid-template-columns: 1.05fr 1fr .55fr; grid-template-rows: auto; }
  .collage { grid-row: auto; }
  .about-aside { position: sticky; top: calc(var(--nav-h) + 2rem); margin-top: 3.4rem; }
}

@media (max-width: 400px) {
  .nav-cta { padding: .6em .85em; font-size: .78rem; }
  .nav-cta span { display: none; }
  .nav-logo-text { font-size: 1.12rem; }
  .field--split { grid-template-columns: 1fr; }
}

/* Pantallas bajas (portátiles 13'') con modo fijado */
@media (min-width: 960px) and (max-height: 760px) {
  .services.is-pinned .svc-name { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
  .services.is-pinned .svc-list li { padding: .35rem 0; font-size: .88rem; }
  .services.is-pinned .svc-text { gap: .6rem; }
  .services.is-pinned .svc-desc { font-size: .92rem; }
}


/* =============================================================
   21. Portada de lujo · azul noche + latón + marfil
   ============================================================= */
.hero { background: var(--night); color: var(--paper); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(55% 70% at 80% 38%, rgba(212, 175, 55, .14), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(26, 26, 26, .95), transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-media { z-index: -2; }
.hero-img { object-position: 50% 35%; }
.hero-veil { background: linear-gradient(180deg, rgba(11, 20, 38, .74) 0%, rgba(11, 20, 38, .82) 45%, rgba(11, 20, 38, .95) 100%); }
.hero-kicker { color: var(--gold); }
.kicker-sep { background: var(--gold); }
.hero-title { font-weight: 300; color: var(--paper); font-variation-settings: "opsz" 144, "SOFT" 0; }
.hero-line em { color: var(--gold); font-weight: 300; }
.hero-swash { display: none; }
.hr-body { fill: var(--gold); stroke: var(--night); }
.hr-lines { stroke: rgba(11, 20, 38, .3); }
.hr-handle { fill: var(--paper); }
.drip, .drip::after { background: var(--gold); }
.hero-tagline { color: var(--gold-2); font-weight: 300; }
.hero-sub { color: rgba(251, 249, 244, .74); }
.hero-facts { color: rgba(251, 249, 244, .6); border-top: 1px solid rgba(212, 175, 55, .32); padding-top: 1.3rem; max-width: 34rem; }
.hero-facts b { color: var(--gold); font-weight: 300; font-size: 1.65rem; }
.hero .btn--accent { background: var(--ocre); color: var(--night); box-shadow: 0 18px 40px -20px rgba(164, 126, 69, .8); }
.hero .btn--accent::before { background: var(--paper); }
.hero .btn--ghost { border-color: rgba(251, 249, 244, .5); color: var(--paper); background: transparent; }
.hero .btn--ghost::before { background: var(--paper); }
.hero .btn--ghost:hover { color: var(--night); }
.hero-scroll { color: rgba(251, 249, 244, .55); }
.hero-scroll i { background-image: linear-gradient(var(--gold) 50%, transparent 50%); }
.hero-frame, .hero-caption { display: none; }

/* nav sobre la portada oscura */
.nav:not(.is-scrolled) .nav-logo-text, .nav:not(.is-scrolled) .nav-links a { color: var(--paper); }
.nav:not(.is-scrolled) .nav-logo-text em, .nav:not(.is-scrolled) .nav-links small { color: var(--gold); }
.nav:not(.is-scrolled) .nav-links a::after { background: var(--gold); }
.nav:not(.is-scrolled) .nav-cta { background: var(--ocre); color: var(--night); }
.nav:not(.is-scrolled) .nav-cta::before { background: var(--paper); }
.nav:not(.is-scrolled) .nav-burger span { background: var(--paper); }
html.menu-open .nav .nav-burger span { background: var(--ink); }
html.menu-open .nav .nav-logo-text { color: var(--ink); }
html.menu-open .nav .nav-logo-text em { color: var(--almagre); }
html.menu-open .nav .nav-cta { background: var(--ink); color: var(--paper); }

/* splash a juego */
.splash { background: var(--night); }
.splash-word { color: var(--paper); font-weight: 300; }
.splash-word span:nth-child(odd) { color: var(--gold); }
.splash-stroke path { stroke: var(--gold); stroke-width: 3; }
.splash-meta { color: rgba(234, 217, 160, .75); }

/* cinta bajo la portada: banda azul noche con filetes de latón */
.tape {
  width: 100%; margin: 0; transform: none;
  background: var(--night); background-image: none;
  border-block: 1px solid rgba(212, 175, 55, .45);
  box-shadow: none;
}
.tape-track p { color: var(--gold-2); font-size: .74rem; letter-spacing: .22em; padding-block: 1.05rem; }
.tape-track i { color: var(--gold); }

/* cursor visible sobre claro y oscuro */
.cursor-drop::before { background: var(--gold); }
.cursor-ring { border-color: rgba(212, 175, 55, .85); }
.cursor.is-hover .cursor-ring { background: var(--night); }
.cursor-label { color: var(--gold-2); }

@media (min-width: 960px) {
  .hero { min-height: max(100svh, 760px); }
  .hero-media {
    inset: auto; right: calc(var(--gutter) + 3vw); top: calc(var(--nav-h) + 4vh); bottom: 9vh;
    width: min(31vw, 500px); border-radius: 999px 999px 0 0; overflow: hidden;
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7);
  }
  .hero-veil { background: linear-gradient(180deg, rgba(11, 20, 38, 0) 55%, rgba(11, 20, 38, .4) 100%); }
  .hero-frame {
    display: block; position: absolute; pointer-events: none;
    right: calc(var(--gutter) + 3vw - 16px); top: calc(var(--nav-h) + 4vh - 16px); bottom: calc(9vh - 16px);
    width: calc(min(31vw, 500px) + 32px); border-radius: 999px 999px 0 0;
    border: 1px solid rgba(212, 175, 55, .6); border-bottom: 0;
    animation: heroIn 1.4s var(--ease-out) calc(var(--hero-delay) + .5s) both;
  }
  .hero-caption {
    display: block; position: absolute; right: calc(var(--gutter) + 3vw); bottom: calc(9vh - 2.4rem);
    width: min(31vw, 500px); text-align: center;
    font-family: var(--mono); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(234, 217, 160, .7);
    animation: heroIn 1.2s var(--ease-out) calc(var(--hero-delay) + 1.4s) both;
  }
  .hero-caption span { color: var(--gold); margin-right: .6rem; }
  .hero-content { padding-right: calc(min(31vw, 500px) + 6vw); }
  .hero-title { font-size: clamp(3.5rem, 8.4vw, 9.6rem); }
}
html.hero-hold .hero-frame, html.hero-hold .hero-caption { animation-play-state: paused; }


/* --- ajustes de lujo (2) --- */
.drip { width: .03em; height: .2em; top: .7em; left: 24%; }
.drip::after { width: .075em; height: .095em; margin-left: -.0375em; bottom: -.07em; border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; }
@keyframes drip { from { height: 0; } 60% { height: .16em; } to { height: .2em; } }
.hero-facts { flex-wrap: nowrap; gap: 1.2rem; max-width: 40rem; }
.hero-facts li { display: flex; flex-direction: column; gap: .15rem; line-height: 1.3; }
.hero-facts b { margin: 0; line-height: 1; }
@media (max-width: 959px) {
  .hero-veil { background: linear-gradient(180deg, rgba(11, 20, 38, .62) 0%, rgba(11, 20, 38, .78) 40%, rgba(11, 20, 38, .93) 100%); }
  .hero-facts { font-size: .6rem; letter-spacing: .06em; justify-content: space-between; }
  .hero-facts b { font-size: 1.45rem; }
}
.gallery { transform: none; width: 100%; margin-left: 0; }

/* comunidades en azul noche */
.community-card { background: var(--night); color: var(--paper); }
.community-card .eyebrow { color: var(--gold-2); }
.community-card .eyebrow .num { color: var(--gold); }
.community-card .eyebrow::after { background: rgba(212, 175, 55, .45); }
.community-card .h2 { color: var(--paper); }
.community-card .h2 em { color: var(--gold); }
.community-body > p:not(.eyebrow) { color: rgba(251, 249, 244, .74); }
.community-list li { color: var(--paper); }
.community-list li::before { color: var(--gold); }
@media (min-width: 720px) {
  .community-veil { background: linear-gradient(90deg, rgba(11, 20, 38, .96) 0%, rgba(11, 20, 38, .88) 44%, rgba(11, 20, 38, .25) 78%, rgba(11, 20, 38, .05) 100%); }
}

/* pie en azul noche */
.footer { background: var(--night); color: var(--paper); border-top: 1px solid rgba(212, 175, 55, .45); }
.footer-display { border-bottom-color: rgba(212, 175, 55, .25); }
.footer-display-track span { color: var(--paper); font-weight: 300; }
.footer-display-track em { color: var(--gold); }
.footer-display-track i { color: rgba(212, 175, 55, .6); }
.footer-claim { color: var(--gold-2); font-weight: 300; }
.footer-h { color: var(--gold); }
.footer-muted { color: rgba(251, 249, 244, .58); }
.footer-links a:hover, .footer-legal a:hover { color: var(--gold); }
.footer-map { border-color: rgba(212, 175, 55, .6); background: #101C33; }
.footer-map iframe { filter: grayscale(1) invert(.88) hue-rotate(180deg) sepia(.25) contrast(.9); }
.footer-legal { border-top-color: rgba(212, 175, 55, .25); color: rgba(251, 249, 244, .55); }
.footer .btn--accent { background: var(--ocre); color: var(--night); }
.footer .btn--accent::before { background: var(--paper); }
.footer .is-pending { outline-color: var(--gold); }

/* =============================================================
   20. Reduced-motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidemark-dot { animation: none; }
  .hero-scroll i { animation: none; }
  .svc-hint span { animation: none; }
}

/* =============================================================
   22. Rebranding 2026 · logo nuevo (tejado dorado + TAVIRA)
   El logo va dibujado en SVG dentro de index.html (letras convertidas
   en trazos), así se ve igual en cualquier móvil aunque no cargue la fuente.
   ============================================================= */
.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; }

.lg-roof { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: butt; stroke-linejoin: miter; }
.lg-word { fill: var(--ink); }
.lg-name { fill: var(--ink); }
.lg-tag  { fill: var(--almagre); }

/* nav */
.nav-logo { gap: 0; }
.nav-logo-svg { height: 52px; width: auto; overflow: visible; transition: transform .5s var(--ease-out); }
.nav-logo:hover .nav-logo-svg { transform: translateY(-2px); }
.nav .lg-word { fill: var(--ink); transition: fill .4s; }
.nav:not(.is-scrolled) .lg-word { fill: var(--gold); }
html.menu-open .nav .lg-word { fill: var(--ink); }
@media (max-width: 599px) { .nav-logo-svg { height: 38px; } }

/* splash: el tejado se dibuja y TAVIRA sube letra a letra */
.splash-logo { width: min(80vw, 470px); height: auto; overflow: visible; }
.sl-roof {
  fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: butt; stroke-linejoin: miter;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  animation: strokeIn 1s var(--ease-inout) .15s forwards;
}
.sl-letter { fill: var(--gold); transform-box: fill-box; transform-origin: 50% 100%; animation: slUp .85s var(--ease-out) calc(var(--i) * .07s + .45s) both; }
@keyframes slUp { from { opacity: 0; transform: translateY(40%); } }
.sl-name { fill: var(--paper); animation: fadeIn .8s 1.15s both; }
.sl-tag  { fill: var(--gold); animation: fadeIn .8s 1.35s both; }

/* portada: el rodillo pinta el logo */
.hero-title--logo { display: block; width: min(100%, 600px); margin: 0 0 1.3rem; line-height: 1; font-size: inherit; }
.hero-logo { display: block; width: 100%; height: auto; overflow: visible; }
.hero .lg-word { fill: var(--gold); }
.hero .lg-name { fill: var(--paper); }
.hero .lg-tag  { fill: var(--gold); }
.hero-title--logo .hero-roller { top: -4%; bottom: -6%; }
@media (min-width: 960px) { .hero-title--logo { width: min(100%, 470px); font-size: inherit; } }
.hero-tagline { margin-top: .2rem; }

/* pie */
.footer-logo { display: block; width: min(100%, 240px); height: auto; margin-bottom: 1.6rem; }
.footer .lg-word { fill: var(--gold); }
.footer .lg-name { fill: var(--paper); }
.footer .lg-tag  { fill: var(--gold); }
.footer-display-track span { font-family: var(--serif); }

/* oro un pelín más cálido en botones y detalles */
.btn--accent { background: var(--ocre); color: var(--night); box-shadow: 0 14px 28px -16px rgba(164, 126, 69, .8); }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline-color: var(--gold); }

/* =============================================================
   23. Rodillo realista + marca de pintura en la portada
   ============================================================= */
.hero-title--logo .hero-roller {
  top: -72%; bottom: 3%;
  width: 44.3%; /* = alto del rodillo x 160/440; fijo para que no encoja al llegar al borde */
  transform: translateX(-39.4%);
  filter: drop-shadow(10px 16px 14px rgba(0, 0, 0, .55));
  animation-name: rollerLift;
}
@keyframes rollerLift {
  0% { opacity: 1; transform: translateX(-39.4%) translateY(0); }
  88% { opacity: 1; transform: translateX(-39.4%) translateY(0); }
  100% { opacity: 0; transform: translateX(-39.4%) translateY(-6%); }
}
.hero-mark {
  position: absolute; z-index: 0; pointer-events: none;
  left: -2%; width: 104%; top: 4.5%; height: 84.5%;
}
.hero-paint .hero-logo { position: relative; z-index: 1; }
.hero-title--logo .hero-roller svg { width: 100%; height: 100%; }
/* la marca del rodillo se ve al pintar, aguanta un momento y se va secando hasta desaparecer.
   Sin calc() en el retardo (algunos Safari de iPhone no lo aceptan y la marca se quedaba fija);
   además main.js la quita del todo al terminar, por si algún navegador no anima. */
.hero-mark { animation: markLife 3.9s linear var(--hero-delay) both; }
@keyframes markLife {
  0%   { opacity: 1; }
  59%  { opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  100% { opacity: 0; }
}
html.hero-hold .hero-mark { animation-play-state: paused; }
.hero-mark.is-dry { opacity: 0 !important; transition: opacity 1.2s ease; }
@media (prefers-reduced-motion: reduce) { .hero-mark { display: none; } }

/* Paleta «azul noche, blanco y champán» (noviembre 2026): portada, pie, botones y texto
   en azul marino oscuro; fondo blanco; acentos en champán. El oro (--gold) queda para el logo. */
.svc[style] { --acc: var(--almagre) !important; }
.step[style] { --acc: var(--almagre) !important; }
.bg-grain { opacity: .16; }

/* =============================================================
   24. Mapa del pie sin Google incrustado (sin cookies de terceros)
   ============================================================= */
.fmap { position: relative; display: block; overflow: hidden; min-height: 240px; color: var(--paper); }
.fmap-art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease-out); }
.fmap:hover .fmap-art { transform: scale(1.04); }
.fmap-text {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .15rem;
  padding: 1rem 1.1rem; background: linear-gradient(180deg, transparent, rgba(11, 20, 38, .92) 45%);
}
.fmap-text b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1; }
.fmap-text span { font-size: .85rem; color: rgba(251, 249, 244, .7); }
.fmap-text em { font-style: normal; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: .35rem; }

/* =============================================================
   25. Páginas legales (aviso legal y privacidad)
   ============================================================= */
.page-legal { max-width: 820px; }
.page-legal section { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.page-legal h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 1.7rem); letter-spacing: -.015em; margin-bottom: .8rem; }
.page-legal p, .page-legal li { color: var(--ink-soft); line-height: 1.65; max-width: 68ch; }
.page-legal p + p { margin-top: .8rem; }
.page-legal ul { display: grid; gap: .6rem; margin: .4rem 0 .9rem; padding-left: 1.1rem; list-style: disc; }
.page-legal li::marker { color: var(--almagre); }
.page-legal a { color: var(--almagre); text-decoration: underline; text-underline-offset: .18em; }
.page-legal strong { color: var(--ink); font-weight: 600; }
.legal-id { display: grid; gap: 0; margin: 1rem 0; border: 1px solid var(--line-2); background: var(--paper); }
.legal-id div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid var(--line); }
.legal-id div:first-child { border-top: 0; }
.legal-id dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); padding-top: .2rem; }
.legal-id dd { color: var(--ink); }
.legal-id small { color: var(--ink-mute); }
.legal-links { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-links a { color: var(--almagre); }
@media (max-width: 520px) { .legal-id div { grid-template-columns: 1fr; gap: .15rem; } }
.qform-legal { margin-top: .9rem; font-size: .8rem; line-height: 1.5; color: var(--ink-mute); max-width: 56ch; }
.qform-legal a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }

/* =============================================================
   26. Opiniones de clientes (solo se ve si hay reseñas en el manifest)
   ============================================================= */
.reviews[hidden] { display: none; }
.reviews .h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.reviews-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.review {
  display: grid; gap: 1rem; align-content: start; margin: 0;
  padding: 1.6rem 1.5rem 1.4rem; background: var(--paper);
  border: 1px solid var(--line-2); box-shadow: 7px 7px 0 -1px var(--bg), 7px 7px 0 0 var(--line-2);
}
.review-stars { color: var(--gold); font-size: 1.15rem; letter-spacing: .18em; line-height: 1; }
.review-stars i { font-style: normal; color: var(--line-2); }
.review blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
.review blockquote p::before { content: "«"; color: var(--almagre); }
.review blockquote p::after { content: "»"; color: var(--almagre); }
.review figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .9rem; }
.review figcaption b { font-weight: 600; }
.review figcaption span { color: var(--ink-mute); }
.review-src { margin-left: auto; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.reviews-cta { margin-top: 2rem; }
.reviews-cta[hidden] { display: none; }
