/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =============================================================================
   Sanstroy — sitio multipágina, paleta oscura premium
   Grafito / oro mate / marfil · tipografía Cormorant Garamond + Outfit
   ============================================================================= */
:root {
  --bg: #0e0e0f;
  --bg-2: #141416;
  --bg-3: #1a1a1c;
  --bg-elev: #1c1c1f;
  --navy: #1a1a1c;
  --navy-3: #0a0a0b;
  --ink: #f3efe6;
  --muted: #9a9286;
  --gold: #c9a45c;
  --gold-2: #d4b56e;
  --gold-dim: #a68645;
  --gold-line: rgba(201, 164, 92, 0.38);
  --gold-soft: rgba(201, 164, 92, 0.12);
  --ivory: #f3efe6;
  --line: rgba(201, 164, 92, 0.22);
  --line-subtle: rgba(255, 255, 255, 0.07);
  --danger: #e8a0a0;
  --ok: #9ad4b0;
  --wa: #25D366;
  --tg: #229ED9;
  --vb: #7360F2;
  --radius: 2px;
  --header-h: 84px;
  --max: 1160px;
  --font: "Outfit", system-ui, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face { font-family: "Outfit"; src: url("../fonts/outfit-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-500i.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 0.65em;
  color: var(--ivory);
}
h1 em, h2 em, .hero-line em {
  font-style: italic;
  font-weight: 400;
  color: inherit;
}
p { margin: 0 0 1em; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

/* Grain + page fade */
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.9  0 0 0 0 0.7  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
html.js body { opacity: 0; }
html.js body.is-ready { opacity: 1; transition: opacity 0.7s var(--ease-out); }
html.js body.is-leaving { opacity: 0; transition: opacity 0.35s ease; }

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #0c0c0d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  height: 56px;
  width: auto;
  opacity: 0;
  transform: translateY(8px);
  animation: preIn 0.5s var(--ease-out) 0.05s forwards;
}
@keyframes preIn {
  to { opacity: 1; transform: none; }
}

/* Corner ornaments */
.has-corners { position: relative; }
.has-corners::before,
.has-corners::after,
.has-corners .corner-br,
.has-corners .corner-bl {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}
.has-corners::before {
  top: 10px; left: 10px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.has-corners::after {
  top: 10px; right: 10px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  content: "";
}
.corner-bl, .corner-br {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  z-index: 2;
}
.corner-bl { bottom: 10px; left: 10px; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner-br { bottom: 10px; right: 10px; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

/* Section typography */
.section { padding: 128px 0; position: relative; }
.section-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-index {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-index::before {
  content: attr(data-index);
}
.section-lead { font-size: 1.12rem; font-weight: 300; color: var(--muted); max-width: 38em; line-height: 1.75; }
.section-head { margin-bottom: 72px; }
.section-head h2 { font-size: clamp(2.15rem, 4vw, 3.4rem); font-weight: 500; max-width: 18ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 0;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s, transform 0.3s var(--ease), letter-spacing 0.3s;
  line-height: 1.2;
  background: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #0e0e0f; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); color: #0e0e0f; border-color: var(--gold-2); }
.btn-ghost { color: var(--ivory); border-color: rgba(243, 239, 230, 0.35); }
.btn-ghost:hover { background: rgba(243, 239, 230, 0.08); color: var(--ivory); border-color: var(--gold); }
.btn-outline { color: var(--gold); border-color: var(--gold-line); }
.btn-outline:hover { background: var(--gold); color: #0e0e0f; border-color: var(--gold); }

/* Header — wider than the content container; logo close to the left edge */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  /* Frosted bar lives on ::before so backdrop-filter does not clip the mobile menu. */
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  pointer-events: none;
  transition: background 0.4s var(--ease);
}
.site-header.is-scrolled::before,
.site-header.is-open::before {
  background: rgba(10, 10, 10, 0.92);
}
.site-header.is-scrolled,
.site-header.is-open {
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.header-inner {
  width: 100%;
  margin: 0;
  padding: 0 36px 0 28px; /* logo closer to the left edge than the 1160px grid */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 1px 1px rgba(0,0,0,0.85))
    drop-shadow(0 2px 10px rgba(0,0,0,0.55))
    drop-shadow(0 0 14px rgba(201,164,92,0.22));
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  height: 100%;
}
.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0 14px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  position: relative;
  border-radius: 0;
}
.site-nav a:hover,
.site-nav a:focus-visible { background: transparent; color: var(--gold); }
.site-nav a.is-active,
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 20px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
  pointer-events: none;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-nav .btn {
  margin-left: 14px;
  padding: 10px 18px;
  font-size: 0.72rem;
  height: auto;
  align-self: center;
}
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: #0e0e0f; background: var(--gold); }
.site-nav a.btn-primary::after { display: none; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
  height: 100%;
}
.site-nav + .header-tools { margin-left: 8px; }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 164, 92, 0.5);
  background: rgba(14, 14, 15, 0.4);
  padding: 0;
  cursor: pointer;
  position: relative;
  color: var(--ivory);
  flex-shrink: 0;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
  position: absolute;
  left: 12px;
  transition: transform 0.3s var(--ease), opacity 0.3s, top 0.3s;
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.site-header.is-open .menu-toggle span { background: transparent; }
.site-header.is-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 14, 15, 0.58);
  border: 1px solid rgba(201, 164, 92, 0.5);
  border-radius: 0;
  padding: 6px 12px;
  position: relative;
}
.site-header.is-scrolled .lang-switch,
.site-header.is-open .lang-switch { background: rgba(20, 20, 22, 0.88); }
.lang-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  pointer-events: none;
}
.lang-switch-label svg { width: 14px; height: 14px; flex-shrink: 0; }
.lang-switch-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23c9a45c' d='M1 1l5 5 5-5'/></svg>") no-repeat right 2px center;
  padding: 2px 16px 2px 0;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--ivory);
  cursor: pointer;
  max-width: 11em;
  line-height: 1.2;
}
.lang-switch-select option { background: #1a1a1c; color: #f3efe6; }
.lang-switch-select:focus { outline: none; }
.lang-switch-select:focus-visible { box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.28); }
#google_translate_element {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap;
  border: 0; padding: 0; pointer-events: none;
}
.goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip,
.goog-te-spinner-pos, iframe.skiptranslate, body > .skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-l4eHXEb, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important; visibility: hidden !important;
}
body { top: 0 !important; }
.goog-text-highlight, font.goog-text-highlight { background: none !important; box-shadow: none !important; color: inherit !important; }
.goog-te-gadget { font-size: 0 !important; }
font { background: transparent !important; box-shadow: none !important; }

/* Hero slider — fullscreen */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  color: var(--ivory);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0e0e0f;
}
.hero-media .hero-poster,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}
.hero-media video {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.hero.is-video-ready .hero-media video { opacity: 1; }
.hero.is-reduced .hero-media video { display: none; }

  to   { transform: scale(1.02) translate(-1%, 0.8%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,11,0.88) 0%, rgba(10,10,11,0.46) 42%, rgba(10,10,11,0.18) 100%),
    linear-gradient(180deg, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0.12) 26%, rgba(10,10,11,0.50) 58%, rgba(10,10,11,0.90) 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Keep the title clear of the fixed header; shrink the bottom inset on short viewports */
  padding: calc(var(--header-h) + 20px) 0 clamp(72px, 12vh, 128px);
  box-sizing: border-box;
  overflow: visible;
  min-height: 0;
}
.hero-inner::before {
  content: "";
  position: absolute;
  left: -12%;
  bottom: 0;
  width: min(52rem, 92%);
  height: 72%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 18% 78%, rgba(10,10,11,0.72) 0%, rgba(10,10,11,0.40) 46%, rgba(10,10,11,0) 74%);
}
.hero-inner h1 {
  color: var(--ivory);
  /* Scale with both width and height so 5.4rem type does not slide under the header at 650–768px tall */
  font-size: clamp(2.25rem, 1.1rem + 4.8vh + 0.8vw, 5rem);
  font-weight: 500;
  max-width: 18ch;
  margin: 0 0 22px;
  text-wrap: balance;
  letter-spacing: 0.005em;
  line-height: 1.18;
  overflow: visible;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 2px 12px rgba(0,0,0,0.8), 0 8px 40px rgba(0,0,0,0.7);
}
.hero-line {
  display: block;
  overflow: visible;
  padding-block: 0.06em;
  margin-block: -0.06em;
}
html.js .hero-line span,
html.js .hero-line em {
  display: inline-block;
}
html.js .hero-line {
  opacity: 0;
  transform: translateY(1.1em);
}
html.js body.is-ready .hero-line {
  animation: lineIn 1s var(--ease-out) forwards;
}
html.js body.is-ready .hero-line:nth-child(1) { animation-delay: 0.15s; }
html.js body.is-ready .hero-line:nth-child(2) { animation-delay: 0.32s; }
html.js body.is-ready .hero-line:nth-child(3) { animation-delay: 0.48s; }
@keyframes lineIn {
  to { opacity: 1; transform: none; }
}
.hero-lead {
  margin: 0 0 36px;
  max-width: 34em;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  font-weight: 300;
  color: rgba(243, 239, 230, 0.92);
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 2px 14px rgba(0,0,0,0.75), 0 6px 28px rgba(0,0,0,0.6);
}
.hero .btn-ghost {
  background: rgba(14,14,15,0.4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; position: relative; z-index: 3; }
html.js .hero-actions, html.js .hero-lead { opacity: 0; }
html.js body.is-ready .hero-actions,
html.js body.is-ready .hero-lead {
  animation: lineIn 1s var(--ease-out) 0.55s forwards;
}


.hero-video-toggle {
  position: absolute;
  z-index: 4;
  left: 28px;
  right: auto;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14,14,15,0.7);
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video-toggle svg { width: 16px; height: 16px; fill: currentColor; display: none; }
.hero-video-toggle .icon-pause { display: block; }
.hero-video-toggle.is-paused .icon-pause { display: none; }
.hero-video-toggle.is-paused .icon-play { display: block; }
.hero-video-toggle:hover, .hero-video-toggle:focus-visible {
  background: var(--gold);
  color: #0e0e0f;
  outline: none;
}
body.has-cookie .hero-video-toggle { bottom: calc(28px + var(--cookie-h, 118px)); }
.hero.is-reduced .hero-video-toggle { display: none; }


/* Page hero for inner pages */
.page-hero {
  position: relative;
  min-height: 52vh;
  min-height: 52svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: var(--ivory);
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.45) 0%, rgba(10,10,11,0.2) 40%, rgba(10,10,11,0.82) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.5) 0%, transparent 60%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  padding: calc(var(--header-h) + 56px) 0 72px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--gold); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs span[aria-hidden] { color: var(--gold-line); }
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); margin: 0 0 12px; max-width: 16ch; }
.page-hero .section-lead { color: rgba(243,239,230,0.82); margin: 0; }

/* Home teasers */
.intro-band { background: var(--bg); }
.services { background: var(--bg-2); }
.about, .portfolio { background: var(--bg); }
.process { background: var(--bg-3); }
.faq, .cta-band { background: var(--bg); }
.contact { background: var(--bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-3);
  border: 1px solid var(--line-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
a.service-card:hover { color: inherit; transform: translateY(-4px); border-color: var(--gold); }
.service-card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; position: relative; }
.service-card figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,15,0.12) 0%, rgba(14,14,15,0.5) 100%);
  pointer-events: none;
}
.service-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.service-card:hover img { transform: scale(1.06); }
.service-body { padding: 28px 28px 32px; }
.service-icon { width: 40px; height: 40px; margin-bottom: 14px; color: var(--gold); }
.service-icon svg { width: 100%; height: 100%; }
.service-body h3 { font-size: 1.55rem; margin-bottom: 10px; }
.service-body p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Editorial service rows (servicios.html) */
.service-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 96px;
}
.service-detail:nth-child(even) { grid-template-columns: 0.95fr 1.05fr; }
.service-detail:nth-child(even) .service-detail-copy { order: -1; }
.service-detail-photo {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--gold-line);
}
.service-detail-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.service-detail-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,15,0.08), rgba(14,14,15,0.32));
  pointer-events: none;
}
.service-detail-copy h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.service-detail-copy p { color: var(--muted); }
.service-detail { scroll-margin-top: calc(var(--header-h) + 28px); }
.service-detail-icon {
  width: 40px; height: 40px;
  color: var(--gold);
  margin: 0 0 16px;
}
.service-detail-icon svg { width: 100%; height: 100%; display: block; }
.service-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin: 6px 0 18px;
  letter-spacing: 0.01em;
}
.service-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--gold-line);
  padding-top: 18px;
}
.service-points li {
  position: relative;
  padding: 0 0 10px 20px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.about-photo {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--gold-line);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,15,0.1), rgba(14,14,15,0.4));
  pointer-events: none;
}
.about-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  background: rgba(14,14,15,0.78);
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border: 1px solid var(--gold-line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gold-line);
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--gold);
}
.stat span { font-size: 0.88rem; color: var(--muted); }
.placeholder-note {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a746a;
  margin-top: 4px;
  font-style: normal;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.value-card {
  border: 1px solid var(--line-subtle);
  border-top: 1px solid var(--gold-line);
  padding: 32px 26px;
  background: var(--bg-3);
}
.value-card h3 { font-size: 1.45rem; }
.value-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Process */
.process h2, .process .section-kicker { color: var(--ivory); }
.process .section-kicker { color: var(--gold); }
.process .section-lead { color: rgba(243,239,230,0.72); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  padding: 0; margin: 0;
}
.step {
  padding: 32px 26px 34px;
  border: 1px solid var(--gold-line);
  background: rgba(14,14,15,0.35);
}
.step h3 { color: var(--ivory); font-size: 1.3rem; }
.step p { color: rgba(243,239,230,0.7); margin: 0; font-size: 0.95rem; }
.step-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
  letter-spacing: 0.12em;
}
.step-num::before { content: attr(data-num); }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; scroll-margin-top: calc(var(--header-h) + 16px); }
.filters button {
  border: 1px solid var(--gold-line);
  background: transparent;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filters button:hover { border-color: var(--gold); color: var(--gold); }
.filters button.is-active { background: var(--gold); color: #0e0e0f; border-color: var(--gold); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-grid.editorial .project-card:nth-child(1) { grid-column: span 2; aspect-ratio: 16/10; }
.project-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  border: 1px solid var(--line-subtle);
  transition: border-color 0.35s;
}
.project-card[hidden] { display: none !important; }
.project-card:hover, .project-card:focus-visible { border-color: var(--gold); outline: none; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(14,14,15,0.28);
  pointer-events: none;
  transition: background 0.35s;
}
.project-card:hover::after, .project-card:focus-visible::after { background: rgba(14,14,15,0.08); }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.05); }
.project-card-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(14,14,15,0.92));
  color: var(--ivory);
  font-size: 0.92rem;
}
.project-card-meta strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.project-card-meta span { opacity: 0.8; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.photo-disclaimer { margin-top: 22px; font-size: 0.82rem; color: var(--muted); }

.teaser-projects { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.teaser-projects .project-card:first-child { min-height: 480px; aspect-ratio: auto; }
.teaser-side { display: grid; gap: 16px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8,8,9,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 64px 80px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 140px);
  width: auto; height: auto;
  object-fit: contain;
  border: 1px solid var(--gold-line);
}
.lightbox-caption {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--ivory); text-align: center; font-size: 0.95rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  cursor: pointer;
  width: 48px; height: 48px;
  font-size: 1.6rem; line-height: 1;
}
.lightbox-close { top: 12px; right: 16px; font-size: 2rem; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--gold); color: #0e0e0f;
}

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--gold-line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none; border: 0;
  padding: 24px 36px 24px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  position: relative;
  color: var(--ivory);
}
.faq-q::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq-item.is-open .faq-q::after { transform: translateY(-20%) rotate(225deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding: 0 8px 24px 0; color: var(--muted); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.field { margin-bottom: 18px; position: relative; }
.field label { display: block; font-weight: 400; margin-bottom: 8px; font-size: 0.86rem; letter-spacing: 0.06em; color: var(--ivory); }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-subtle);
  background: var(--bg-elev);
  color: var(--ivory);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select option { background: #1a1a1c; color: #f3efe6; }
.field input::placeholder, .field textarea::placeholder { color: #7a746a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-check { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.field-check input { width: auto; margin-top: 4px; }
.field-check input[type="checkbox"] { accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.field-check .field-error { flex-basis: 100%; margin-left: 26px; }
.field-error { display: block; color: var(--danger); font-size: 0.82rem; min-height: 1.1em; margin-top: 4px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.form-status { margin-top: 14px; padding: 12px 14px; }
.form-status.is-ok { background: rgba(154,212,176,0.12); color: var(--ok); border: 1px solid rgba(154,212,176,0.35); }
.form-status.is-error { background: rgba(232,160,160,0.12); color: var(--danger); border: 1px solid rgba(232,160,160,0.35); }
.contact-aside .contact-card { height: fit-content; }
.contact-card {
  background: var(--bg-3);
  padding: 36px 32px;
  border: 1px solid var(--gold-line);
}
.contact-card h3 { font-size: 1.55rem; margin-bottom: 16px; }
.contact-card p, .contact-card a { color: var(--ivory); text-decoration: none; }
.contact-card a:hover { color: var(--gold); }
.contact-area { color: var(--ivory) !important; letter-spacing: 0.02em; margin-top: 16px; }
/* contact-msg chip styles replaced by .msg-btn in v5 */

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 16ch; margin-left: auto; margin-right: auto; }
.cta-band .section-lead { margin-inline: auto; }

/* Footer */
.site-footer {
  background: var(--navy-3);
  color: rgba(243,239,230,0.78);
  padding: 88px 0 32px;
  border-top: 1px solid var(--gold-line);
}
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.15fr 0.9fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: start;
}
.footer-services a { display: inline-block; margin-bottom: 6px; }
.site-footer .logo img { height: 64px; }
.footer-title { color: var(--ivory); font-size: 1.2rem; letter-spacing: 0.1em; }
.footer-legal {
  border-top: 1px solid var(--line-subtle);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(243,239,230,0.55);
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.template-flag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Floating messengers */
.float-stack {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: bottom 0.35s var(--ease);
}
body.has-cookie .float-stack { bottom: calc(28px + var(--cookie-h, 118px)); }
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  border: 1px solid rgba(201,164,92,0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  position: relative;
}
.float-btn:hover { transform: scale(1.07); color: #fff; }
.float-btn svg { width: 26px; height: 26px; fill: currentColor; }
.float-btn span {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}
.float-tg { background: var(--tg); }
.float-vb { background: var(--vb); }
.float-wa { background: var(--wa); }

/* Cookie */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  background: #161618;
  color: var(--ivory);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  max-width: 960px;
  margin-inline: auto;
  border: 1px solid var(--gold-line);
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--ivory); }
.cookie-banner a { color: var(--gold); }

/* Legal */
.legal-main { padding: calc(var(--header-h) + 56px) 0 120px; max-width: 760px; }
.legal-main h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.legal-main h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal-main p, .legal-main li { color: var(--muted); }
.banner-template {
  background: var(--bg-3);
  border: 1px solid var(--gold-line);
  border-left: 2px solid var(--gold);
  padding: 14px 18px;
  font-size: 0.92rem;
  margin: 0 0 32px;
  color: var(--ivory);
}
.legal-main table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.92rem; }
.legal-main th, .legal-main td { border: 1px solid var(--gold-line); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--muted); }
.legal-main th { background: var(--bg-3); color: var(--ivory); }
.legal-main code { font-size: 0.88em; background: var(--bg-3); color: var(--gold); padding: 1px 5px; }

/* Reveal / mask / parallax */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.23s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.41s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }
.media-reveal { overflow: hidden; }
.media-reveal img {
  transform: scale(1.12);
  clip-path: inset(0 0 100% 0);
  transition: transform 1.4s var(--ease-out), clip-path 1.15s var(--ease-out);
}
.media-reveal.is-visible img,
.media-reveal.reveal.is-visible img {
  transform: scale(1);
  clip-path: inset(0 0 0 0);
}
.parallax-media img { will-change: transform; }

.section-cta { margin-top: 48px; }

[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 1100px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
  .service-detail, .service-detail:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
  .service-detail:nth-child(even) .service-detail-copy { order: 0; }
  .service-detail-photo { min-height: 340px; }
  .teaser-projects { grid-template-columns: 1fr; }
  .teaser-projects .project-card:first-child { min-height: 320px; }
}
@media (max-width: 960px) {
  .services-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid.editorial .project-card:nth-child(1) { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 340px; }
  .section { padding: 96px 0; }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .header-inner { padding: 0 14px 0 12px; gap: 10px; }
  .logo img { height: 44px; }
  .header-tools,
  .site-nav + .header-tools { margin-left: auto; }
  .lang-switch { padding: 4px 6px 4px 8px; max-width: 148px; gap: 5px; }
  .lang-switch-label { letter-spacing: 0.12em; font-size: 0.62rem; }
  .lang-switch-label svg { width: 13px; height: 13px; }
  .lang-switch-select { max-width: 6.2em; font-size: 0.78rem; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px 48px;
    gap: 4px;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    height: auto;
    min-height: calc(100svh - var(--header-h));
    margin-left: 0;
    z-index: 60;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    border-top: 1px solid var(--gold-line);
  }
  .site-header.is-open .site-nav {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }
  .site-nav a {
    padding: 14px 8px;
    font-size: 1.15rem;
    height: auto;
    border-bottom: 1px solid var(--line-subtle);
  }
  .site-nav a:not(.btn)::after,
  .site-nav a:hover::after,
  .site-nav a:focus-visible::after,
  .site-nav a.is-active::after,
  .site-nav a[aria-current="page"]::after {
    bottom: 8px; left: 8px; right: auto; width: 28px;
    transform: none;
  }
  .site-nav .btn { margin: 16px 0 0; width: 100%; border-bottom: 0; }
  .services-grid, .portfolio-grid, .steps, .values-grid { grid-template-columns: 1fr; }
  .portfolio-grid.editorial .project-card:nth-child(1) { grid-column: auto; aspect-ratio: 4/3; }
  .stats { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 132px; padding-top: calc(var(--header-h) + 16px); }
  .hero-inner h1 { font-size: clamp(2.05rem, 1.15rem + 4.6vh, 3.05rem); max-width: 16ch; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  body.has-cookie .float-stack { bottom: calc(28px + var(--cookie-h, 168px)); }
  body.has-cookie .hero-video-toggle { bottom: calc(28px + var(--cookie-h, 168px)); }
  .lightbox { padding: 56px 12px 80px; }
  .container, .hero-inner, .page-hero-inner { width: min(var(--max), calc(100% - 32px)); }
  .float-stack { right: 12px; bottom: 16px; }
  .float-btn { width: 48px; height: 48px; }
  .float-btn svg { width: 22px; height: 22px; }
  .site-footer .logo img { height: 52px; }
  .page-hero-inner { padding-bottom: 48px; }
}

@media (max-width: 760px) and (max-height: 740px) {
  .hero-inner { padding-bottom: 100px; }
  .hero-inner h1 { font-size: clamp(1.95rem, 1rem + 4.2vh, 2.55rem); margin-bottom: 14px; }
  .hero-lead { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .service-card img, .project-card img, .btn { transition: none; }
  html.js .hero-line,
  html.js .hero-actions,
  html.js .hero-lead,
  html.js body.is-ready .hero-line,
  html.js body.is-ready .hero-actions,
  html.js body.is-ready .hero-lead {
    opacity: 1; transform: none; animation: none;
  }
  html.js body, html.js body.is-ready, html.js body.is-leaving { opacity: 1; transition: none; }
  .media-reveal img { transform: none; clip-path: none; transition: none; }
  .preloader-logo { animation: none; opacity: 1; transform: none; }
  .parallax-media img { transform: none !important; }
}

/* ===== v5: messengers, before/after, video, facts, large teasers ===== */
:root {
  --wa: #25D366;
  --tg: #229ED9;
  --vb: #7360F2;
}

.hero-inner h1 { max-width: 22ch; }

/* Qualitative facts (replaces numeric stats) */
.stats.facts .stat strong {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem);
  line-height: 1.2;
  margin-bottom: 6px;
}
.placeholder-note { display: none; }

/* Large homepage project teasers */
.teaser-projects-lg {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}
.teaser-projects-lg .project-card {
  min-height: 480px;
  aspect-ratio: auto;
}
.teaser-projects-lg .project-card:first-child { min-height: 520px; }

/* Unified messenger buttons */
.msg-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #161618;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  flex: 0 0 48px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.msg-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
  flex-shrink: 0;
}
.msg-tg svg { width: 21px; height: 21px; transform: translate(0.5px, 0.5px); }
.msg-vb svg { width: 21px; height: 21px; }
.msg-wa svg { width: 22px; height: 22px; }
.msg-btn:hover,
.msg-btn:focus-visible {
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 12px 24px rgba(0,0,0,0.38);
  outline: none;
}
.msg-tg:hover, .msg-tg:focus-visible { background: var(--tg); }
.msg-vb:hover, .msg-vb:focus-visible { background: var(--vb); }
.msg-wa:hover, .msg-wa:focus-visible { background: var(--wa); }

.msg-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #161618;
  border: 1px solid var(--gold-line);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
  z-index: 3;
}
.msg-row .msg-tip {
  right: auto;
  left: 50%;
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
}
.msg-btn:hover .msg-tip,
.msg-btn:focus-visible .msg-tip { opacity: 1; }

.msg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.site-footer .msg-row { margin-top: 14px; }
.contact-msg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.float-stack {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: bottom 0.35s var(--ease);
}
body.has-cookie .float-stack { bottom: calc(28px + var(--cookie-h, 118px)); }
.float-stack .msg-btn {
  width: 48px;
  height: 48px;
}

/* Before / after */
.ba-grid {
  display: grid;
  gap: 48px;
  margin: 12px 0 64px;
}
.ba-compare[hidden] { display: none !important; }
.ba-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line-subtle);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.ba-after,
.ba-before-clip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-before-clip {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--pos, 50%);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.ba-before-clip img { width: var(--frame-w, 100%); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 44px;
  margin-left: -22px;
  z-index: 2;
  cursor: ew-resize;
  background: transparent;
  border: 0;
}
.ba-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(14,14,15,0.35);
}
.ba-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: #161618;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.ba-knob svg { width: 18px; height: 18px; display: block; }
.ba-handle:focus-visible .ba-knob {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.ba-label {
  position: absolute;
  bottom: 14px;
  z-index: 2;
  background: rgba(14,14,15,0.78);
  color: var(--ivory);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }
.ba-compare figcaption {
  margin-top: 16px;
}
.ba-compare figcaption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--ivory);
}
.ba-compare figcaption span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Video band */
.video-band {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
  background: #0e0e0f;
  color: var(--ivory);
}
.video-media,
.video-band video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-band video {
  transform: scale(1.06);
  transition: transform 1.6s var(--ease);
}
.video-band.is-visible video { transform: scale(1); }
.video-overlay {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 80px 0 88px;
  background:
    linear-gradient(180deg, rgba(14,14,15,0.28) 0%, rgba(14,14,15,0.18) 40%, rgba(14,14,15,0.78) 100%),
    linear-gradient(90deg, rgba(14,14,15,0.55) 0%, rgba(14,14,15,0.15) 55%, rgba(14,14,15,0.35) 100%);
}
.video-copy {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  max-width: 22em;
}
.video-copy .section-kicker { color: var(--gold); }
.video-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 12px;
}
.video-copy p { color: rgba(243,239,230,0.82); max-width: 28em; }
.video-toggle {
  position: absolute;
  left: 28px;
  right: auto;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14,14,15,0.7);
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-toggle svg { width: 16px; height: 16px; fill: currentColor; display: none; }
.video-toggle .icon-pause { display: block; }
.video-toggle.is-paused .icon-pause { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-toggle:hover, .video-toggle:focus-visible {
  background: var(--gold);
  color: #0e0e0f;
  outline: none;
}

@media (max-width: 900px) {
  .teaser-projects-lg { grid-template-columns: 1fr; }
  .teaser-projects-lg .project-card,
  .teaser-projects-lg .project-card:first-child { min-height: 360px; }
  .video-band, .video-overlay { min-height: calc(100vh - var(--header-h)); }
  .hero-inner h1 { max-width: 18ch; }
}
@media (max-width: 720px) {
  body.has-cookie .float-stack { bottom: calc(28px + var(--cookie-h, 168px)); }
  body.has-cookie .hero-video-toggle { bottom: calc(28px + var(--cookie-h, 168px)); }
  .float-stack { right: 12px; bottom: 16px; }
  .msg-tip { display: none; }
  .ba-frame { aspect-ratio: 4 / 3; }
  .video-toggle, .hero-video-toggle { left: 16px; right: auto; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-band video { transform: none; transition: none; }
  .msg-btn, .ba-knob { transition: none; }
}


.ba-heading { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin: 8px 0 28px; color: var(--ivory); }
.gallery-heading { margin-top: 16px; }


/* ---------- Selector de estilo ---------- */
.style-picker {
  --style-t: 0;
  --style-accent: color-mix(in srgb, #9aa8b5 calc((1 - var(--style-t)) * 55%), var(--gold));
  margin: 8px 0 56px;
  padding-bottom: 12px;
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.style-picker-head { margin-bottom: 24px; }
.style-picker-head h2, .style-picker-head h3 {
  margin: 0 0 12px;
}
.style-picker-teaser .style-picker-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.style-materials {
  position: relative;
  min-height: 1.7em;
  margin: 0 0 8px;
  max-width: 36em;
  color: rgba(243,239,230,0.86);
}
.style-mat {
  display: block;
  transition: opacity 0.3s var(--ease);
}
.style-mat.is-classic {
  position: absolute;
  left: 0; right: 0; top: 0;
  opacity: 0;
  pointer-events: none;
}
.style-mat.is-modern { opacity: 1; }
.style-picker.is-classic-copy .style-mat.is-modern { opacity: 0; }
.style-picker.is-classic-copy .style-mat.is-classic { opacity: 1; }
.style-meter {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--style-accent);
}
.style-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 0 28px;
}
.style-end {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243,239,230,0.55);
  white-space: nowrap;
}
.style-end.is-modern { color: color-mix(in srgb, var(--ivory) calc((1 - var(--style-t)) * 80% + 20%), var(--gold)); }
.style-end.is-classic { color: color-mix(in srgb, var(--ivory) calc(var(--style-t) * 80% + 20%), var(--gold)); }
.style-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(154,168,181,0.85), var(--gold));
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}
.style-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-2, #161618);
  border: 1px solid var(--style-accent);
  box-shadow: 0 0 0 3px rgba(14,14,15,0.45);
  cursor: grab;
}
.style-control input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #161618;
  border: 1px solid var(--gold);
  cursor: grab;
}
.style-control input[type="range"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.style-grid-compact { grid-template-columns: repeat(3, 1fr); }
.style-card h3, .style-card h4 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ivory);
}
.style-pair {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #141416;
  filter: sepia(calc(var(--style-t) * 0.28)) saturate(calc(1 + var(--style-t) * 0.18)) hue-rotate(calc(var(--style-t) * -12deg));
}
.style-pair picture, .style-pair img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.style-pair img {
  object-fit: cover;
  object-position: center;
}
.style-pair .is-modern { opacity: calc(1 - var(--style-t)); }
.style-pair .is-classic { opacity: var(--style-t); }
@media (max-width: 900px) {
  .style-grid, .style-grid-compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .style-grid, .style-grid-compact { grid-template-columns: 1fr; }
  .style-control { gap: 10px; }
  .style-end { font-size: 0.72rem; letter-spacing: 0.06em; }
}

