/* Montenegro Pro — Editorial Luxury × Event Production */

:root {
  color-scheme: light;

  /* OKLCH-derived tokens, tinted toward the Montenegro blue hue */
  --ink:        oklch(14% 0.02 250);   /* near-black, slightly cool */
  --ink-soft:   oklch(28% 0.02 250);
  --paper:      oklch(97% 0.006 90);   /* warm ivory */
  --paper-deep: oklch(93% 0.008 85);   /* slightly deeper ivory */
  --line:       oklch(85% 0.01 250);
  --line-soft:  oklch(90% 0.008 250);
  --muted:      oklch(45% 0.015 250);

  /* Brand: the Montenegro Pro blue, calibrated */
  --brand:      oklch(60% 0.20 245);   /* the celeste/azul */
  --brand-deep: oklch(38% 0.15 248);   /* deep blue for emphasis */
  --brand-soft: oklch(94% 0.04 240);   /* tinted background wash */

  /* Easing */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Type */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Geist", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--brand); color: var(--paper); }

/* Film-grain overlay (paper feel) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
}

/* ─── Layout primitives ─── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 28px; }

@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  body { font-size: 16px; }
}

/* ─── Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  background: var(--paper);
  background: color-mix(in oklch, var(--paper) 84%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 132px; width: auto; object-fit: contain; }
.nav__brand__name { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.nav__brand__name strong { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: -0.012em; color: var(--ink); }
.nav__brand__name em { font-style: normal; color: var(--muted); font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.nav__links a:hover { color: var(--ink); background: var(--paper-deep); }
.nav__links a.is-active { color: var(--ink); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px 11px 20px;
  background: var(--brand); color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform 200ms var(--ease-out-expo), background-color 220ms var(--ease-out);
}
.nav__cta:hover { background: var(--brand-deep); }
.nav__cta:active { transform: scale(0.97); }
.nav__cta::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.4px solid currentColor; border-top: 1.4px solid currentColor;
  transform: rotate(45deg); margin-left: 3px;
  transition: transform 220ms var(--ease-out-expo);
}
.nav__cta:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* Mobile nav */
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  margin: 5px 0; transition: transform 280ms var(--ease-out-expo), opacity 220ms;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  /* Quitar backdrop-filter del nav en mobile: si permanece activo crea un
     "containing block" que rompe el position:fixed del menú hijo */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; top: 64px;
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 0;
    padding: 24px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    z-index: 49;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 280ms var(--ease-out-expo), opacity 220ms;
  }
  .nav.is-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 18px 8px; font-size: 22px; font-family: var(--font-display); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin-top: 12px; align-self: flex-start; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: 120px 0 56px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  opacity: 0;
  animation: hero-crossfade 60s infinite;
}
.hero__bg:nth-child(1) { animation-delay: 0s; }
.hero__bg:nth-child(2) { animation-delay: -15s; }
.hero__bg:nth-child(3) { animation-delay: -30s; }
.hero__bg:nth-child(4) { animation-delay: -45s; }
@keyframes hero-crossfade {
  0%, 2%   { opacity: 1; }
  23%, 27% { opacity: 0; }
  98%, 100%{ opacity: 1; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,28,0.30) 0%, rgba(8,12,28,0.10) 35%, rgba(8,12,28,0.62) 100%);
}
.hero__inner { width: 100%; color: #fff; position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px; backdrop-filter: blur(6px);
  margin-bottom: 28px;
}
.hero__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: color-mix(in oklch, #fff 78%, var(--brand) 22%);
}
.hero__sub {
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 54ch;
  color: rgba(255,255,255,0.85);
  margin-bottom: 42px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform 200ms var(--ease-out-expo), background-color 220ms, color 220ms, border-color 220ms;
  cursor: pointer; border: 0;
}
.btn--primary { background: #fff; color: var(--ink); }
.btn--primary:hover { background: var(--brand); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }
.btn__circle {
  width: 26px; height: 26px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  transition: transform 260ms var(--ease-out-expo);
}
.btn--primary .btn__circle { background: var(--brand-deep); color: #fff; }
.btn:hover .btn__circle { transform: translate(2px, -2px) scale(1.06); }

.hero__meta {
  position: absolute; right: 0; bottom: 56px;
  text-align: right; color: rgba(255,255,255,0.7);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; flex-direction: column; gap: 4px;
}
.hero__meta strong { color: #fff; font-size: 28px; font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; text-transform: none; line-height: 1; }
@media (max-width: 720px) { .hero__meta { display: none; } }

/* ─── Section primitives ─── */
section { padding: clamp(72px, 9vw, 140px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 64px; align-items: end; }
.section-head .eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.section-head .eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--ink); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 0.98; letter-spacing: -0.022em;
  margin-top: 14px;
  max-width: 14ch;
}
.section-head h2 em { font-style: italic; color: var(--brand-deep); }
.section-head p { color: var(--muted); font-size: 17px; max-width: 48ch; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
}

/* ─── Services grid (homepage) ─── */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; grid-auto-flow: dense; }
.service {
  position: relative; overflow: hidden;
  border-radius: 28px;
  background: var(--paper-deep);
  aspect-ratio: 4/5;
  isolation: isolate;
}

.service img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: transform 900ms var(--ease-out-expo), filter 900ms var(--ease-out);
  filter: saturate(108%) contrast(102%);
}
.service__slide {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(108%) contrast(102%);
  opacity: 0;
  animation: service-slide 30s infinite;
  transition: transform 900ms var(--ease-out-expo);
}
.service__slide:nth-child(1) { animation-delay: 0s; }
.service__slide:nth-child(2) { animation-delay: -20s; }
.service__slide:nth-child(3) { animation-delay: -10s; }
@keyframes service-slide {
  0%,   28.3% { opacity: 1; }
  33.3%       { opacity: 0; }
  95%         { opacity: 0; }
  100%        { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .service__slide { animation: none; }
  .service__slide:nth-child(1) { opacity: 1; }
}
.service::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,12,28,0.0) 35%, rgba(8,12,28,0.85) 100%);
  transition: opacity 500ms var(--ease-out);
}
.service__body { position: relative; z-index: 2; padding: 28px; color: #fff; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.service__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; opacity: 0.6; }
.service h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.02em;
  margin-top: 8px;
}
.service p { font-size: 14px; max-width: 32ch; opacity: 0.84; margin-top: 8px; }
.service__arrow {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform 320ms var(--ease-out-expo), background-color 240ms;
}
.service:hover img { transform: scale(1.06); }
.service:hover .service__slide { transform: scale(1.06); }
.service:hover .service__arrow { background: var(--brand); border-color: transparent; transform: translate(3px, -3px); }

.service--wide { grid-column: 1 / -1; aspect-ratio: 21/5; }
.service--wide .service__body { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
.service--wide h3 { margin-top: 0; }
.service--wide p { margin-top: 4px; }

@media (max-width: 880px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(1), .service:nth-child(2), .service:nth-child(3), .service:nth-child(4) {
    grid-column: span 1; aspect-ratio: 4/5;
  }
}
@media (max-width: 600px) {
  .service--wide { aspect-ratio: 4/5; }
  .service--wide .service__body { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
}

/* ─── Marquee / Strip ─── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 11px 0;
  background: var(--paper-deep);
}
.marquee__track {
  display: flex; gap: 40px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee__track span {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: var(--ink); letter-spacing: -0.015em;
  display: inline-flex; align-items: center; gap: 40px;
}
@media (max-width: 600px) {
  .marquee { padding: 8px 0; }
  .marquee__track { gap: 28px; }
  .marquee__track span { font-size: 0.7rem; gap: 28px; }
}
.marquee__track span::after { content: "✦"; color: var(--brand); font-size: 0.5em; font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ─── Quote / Manifesto ─── */
.manifesto { background: var(--ink); color: var(--paper); }
.manifesto blockquote {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.12; letter-spacing: -0.018em;
  max-width: 22ch;
}
.manifesto blockquote em { font-style: italic; color: #1ea0ff; }
.manifesto .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.manifesto__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.manifesto__stat { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.manifesto__stat strong { white-space: nowrap; }
.manifesto__stat strong {
  display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 4vw, 3.6rem); letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--paper);
}
.manifesto__stat span { font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; }
@media (max-width: 880px) {
  .manifesto .grid { grid-template-columns: 1fr; gap: 36px; }
  .manifesto__stats { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .manifesto__stat strong { font-size: clamp(1.7rem, 7vw, 2.4rem); white-space: normal; }
}

/* ─── Gallery preview ─── */
.gallery-preview { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gallery-preview a { display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 4/5; }
.gallery-preview a img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out-expo); }
.gallery-preview a:hover img { transform: scale(1.05); }
.gallery-preview a:nth-child(1) { grid-column: span 4; }
.gallery-preview a:nth-child(2) { grid-column: span 4; aspect-ratio: 4/5; }
.gallery-preview a:nth-child(3) { grid-column: span 4; aspect-ratio: 4/5; }
.gallery-preview a:nth-child(4) { grid-column: span 5; aspect-ratio: 16/11; }
.gallery-preview a:nth-child(5) { grid-column: span 4; aspect-ratio: 16/11; }
.gallery-preview a:nth-child(6) { grid-column: span 3; aspect-ratio: 16/11; }

@media (max-width: 880px) {
  .gallery-preview { grid-template-columns: 1fr 1fr; }
  .gallery-preview a { grid-column: span 1 !important; aspect-ratio: 4/5 !important; }
}

/* ─── Brands strip ─── */
.brands { background: var(--ink); padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.brands__head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.brands__head .eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
}
.brands__head .eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
.brands__head h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-top: 14px; color: var(--paper);
}
.brands__head h2 em { font-style: italic; color: var(--brand); }
.brands__rows { display: flex; flex-direction: column; gap: 22px; }
.brands__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands__track {
  display: flex; gap: 18px; width: max-content;
  animation: brands-scroll 52s linear infinite;
}
.brands__row--reverse .brands__track { animation-duration: 60s; animation-direction: reverse; }
.brands__chip {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: 118px; padding: 0 36px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.brands__chip img {
  height: 58px; width: 184px; object-fit: contain;
  opacity: 0.9;
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.brands__chip:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.brands__chip:hover img { opacity: 1; }
@keyframes brands-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brands__track { animation: none; }
}
@media (max-width: 880px) {
  .brands__chip { height: 92px; padding: 0 28px; }
  .brands__chip img { height: 44px; width: 144px; }
  .brands__rows { gap: 16px; }
}

/* ─── CTA section ─── */
.cta-final {
  background: var(--paper-deep);
  text-align: center;
  padding: clamp(96px, 12vw, 180px) 0;
}
.cta-final h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1; letter-spacing: -0.025em;
  max-width: 16ch; margin: 0 auto 24px;
}
.cta-final h2 em { font-style: italic; color: var(--brand-deep); }
.cta-final p { color: var(--muted); max-width: 50ch; margin: 0 auto 36px; }
.cta-final .btn--primary { background: var(--ink); color: var(--paper); }
.cta-final .btn--primary:hover { background: var(--brand-deep); }

/* ─── Footer ─── */
.footer {
  background: #000000; color: var(--paper);
  padding: 80px 0 36px;
}
.footer__top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand img { width: 128px; opacity: 0.95; }
.footer__brand p { font-size: 14px; color: rgba(255,255,255,0.6); max-width: 30ch; margin-top: 18px; }
.footer__col h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; font-size: 15px; color: rgba(255,255,255,0.85); padding: 4px 0; transition: color 180ms var(--ease-out); }
.footer__col a:hover { color: var(--brand); }
.footer__social { display: flex; gap: 10px; margin-top: 14px; }
.footer__social a { display: block; line-height: 0; opacity: 0.9; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.footer__social a:hover { opacity: 1; transform: translateY(-2px); }
.footer__social svg { width: 30px; height: 30px; display: block; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 13px; color: rgba(255,255,255,0.45);
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__brand { grid-column: span 2; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ─── Contact form ─── */
.contact-form {
  margin-top: 48px; text-align: left;
  display: flex; flex-direction: column; gap: 24px;
}
.cf-row { display: grid; gap: 16px; }
.cf-row--2 { grid-template-columns: 1fr 1fr; }
.cf-row--3 { grid-template-columns: 0.85fr 1.5fr 0.75fr; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field > label:first-child {
  font: 500 12px/1 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.cf-field input[type="text"],
.cf-field input[type="date"],
.cf-field input[type="number"] {
  background: var(--paper-deep); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 16px;
  font: 400 15px/1 var(--font-sans); color: var(--ink);
  outline: none; transition: border-color 180ms var(--ease-out);
  width: 100%; box-sizing: border-box;
}
.cf-field input:focus { border-color: var(--brand); }
.cf-field input.cf-error { border-color: #e53e3e; }
.cf-field input[type="number"]::-webkit-inner-spin-button,
.cf-field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cf-field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.cf-radios { display: flex; gap: 16px; flex-wrap: wrap; }
.cf-radio {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 15px; color: var(--ink);
  padding: 12px 20px; border: 1px solid var(--line);
  border-radius: 8px; transition: border-color 180ms, background 180ms;
  user-select: none;
}
.cf-radio input { display: none; }
.cf-radio__box {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); flex-shrink: 0;
  transition: border-color 180ms, background 180ms;
  position: relative;
}
.cf-radio__box::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--brand);
  opacity: 0; transition: opacity 150ms;
}
.cf-radio input:checked ~ .cf-radio__box { border-color: var(--brand); }
.cf-radio input:checked ~ .cf-radio__box::after { opacity: 1; }
.cf-radio:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.cf-radio.cf-error { border-color: #e53e3e; }
.cf-checks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.cf-check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 8px; transition: border-color 180ms, background 180ms;
  user-select: none;
}
.cf-check input { display: none; }
.cf-check__box {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  border: 2px solid var(--line); background: transparent;
  transition: border-color 180ms, background 180ms;
  position: relative;
}
.cf-check__box::after {
  content: ''; position: absolute; left: 3px; top: 0px;
  width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg); opacity: 0; transition: opacity 150ms;
}
.cf-check input:checked ~ .cf-check__box { border-color: var(--brand); background: var(--brand); }
.cf-check input:checked ~ .cf-check__box::after { opacity: 1; }
.cf-check:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.cf-msg {
  display: block; font-size: 12px; color: #e53e3e;
  margin-top: 5px; opacity: 0; transform: translateY(-4px);
  transition: opacity 180ms, transform 180ms;
  pointer-events: none;
}
.cf-msg--show { opacity: 1; transform: translateY(0); }
.cf-submit { margin-top: 8px; align-self: center; }
@media (max-width: 640px) {
  .cf-row--2, .cf-row--3 { grid-template-columns: 1fr; }
  .cf-checks { grid-template-columns: repeat(2, 1fr); }
  .cf-radios { flex-direction: column; }
}
@media (max-width: 400px) {
  .cf-checks { grid-template-columns: 1fr; }
}

/* ─── Page header (interior) ─── */
.page-head {
  padding: 180px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-head__eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.page-head h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem); line-height: 0.95; letter-spacing: -0.025em;
  margin: 16px 0 28px; max-width: 14ch;
}
.page-head h1 em { font-style: italic; color: var(--brand-deep); }
.page-head p { color: var(--muted); max-width: 56ch; font-size: 18px; }

/* ─── Service nav (botonera de anclas) ─── */
.service-nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 64px;
  z-index: 10;
}
.service-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-nav__btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.service-nav__btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

/* ─── Catalog grid (interior pages) ─── */
.catalog-section { padding: clamp(64px, 8vw, 110px) 0; }
.catalog-section:nth-child(even) { background: var(--paper-deep); }
.catalog-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; align-items: end; }
.catalog-head h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -0.02em; line-height: 1;
  max-width: 12ch;
}
.catalog-head h2 em { font-style: italic; color: var(--brand-deep); }
.catalog-head__meta { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 48ch; }
.catalog-head__meta strong { color: var(--ink); font-weight: 500; }

.specs {
  margin-top: 24px;
  padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0;
}
.specs__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.specs__row span:first-child { color: var(--muted); flex-shrink: 0; }
.specs__row span:last-child { text-align: right; }

/* chips dentro de specs */
.specs__chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.chip {
  display: inline-block; padding: 3px 10px;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 12px; font-family: var(--font-sans); font-weight: 500;
  color: var(--ink); white-space: nowrap;
}
.chip--accent { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.chip--dark  { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.chip--beige { background: #e8dcc8; border-color: #d4c8a8; color: #5a4a30; }

/* checklist */
.specs--check { display: flex; flex-direction: column; gap: 8px; }
.specs--check .check-item { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink); }
.specs--check .check-item::before { content: "✓"; color: var(--brand-deep); font-weight: 700; flex-shrink: 0; font-size: 13px; }
.check-muted { color: var(--muted); font-size: 12px; margin-left: 2px; }

/* option cards (ej: barras — servicio completo vs alquiler) */
.specs--options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 0; }
.specs__option { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.specs__option-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
.specs__option ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.specs__option li { font-size: 13px; color: var(--ink); display: flex; align-items: baseline; gap: 7px; }
.specs__option li::before { content: "·"; color: var(--brand-deep); font-weight: 700; flex-shrink: 0; }

/* pill row (ej: climatización — servicios como pills grandes) */
.specs--pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-lg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; font-weight: 500; font-family: var(--font-sans); color: var(--ink);
}
.pill-lg::before { content: "✓"; color: var(--brand-deep); font-weight: 700; font-size: 13px; }

@media (max-width: 600px) {
  .specs--options { grid-template-columns: 1fr; }
}

/* ── Justified Gallery */
.jg-container { display: flex; flex-direction: column; gap: 16px; }
.jg-figure {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.jg-figure img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 700ms var(--ease-out-expo); }
.jg-figure:hover img { transform: scale(1.04); }
.jg-figure figcaption {
  position: absolute; left: 8px; bottom: 8px;
  max-width: calc(100% - 16px);
  font: 500 11px/1.3 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; padding: 5px 9px; border-radius: 10px;
  background: rgba(8,12,28,0.55); backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(6px);
  overflow-wrap: break-word;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.jg-figure:hover figcaption { opacity: 1; transform: translateY(0); }
/* Variante con leyenda siempre visible (catálogos de producto, ej. Mobiliario) */
.jg-container--labeled .jg-figure figcaption { opacity: 1; transform: translateY(0); }
@media (max-width: 880px) {
  .catalog-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .jg-figure figcaption { font-size: 8px; letter-spacing: 0.04em; padding: 3px 6px; left: 6px; bottom: 6px; max-width: calc(100% - 12px); border-radius: 7px; }
}

/* ─── Reveal-on-scroll ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out-expo), transform 800ms var(--ease-out-expo);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 60ms; }
[data-reveal-delay="2"] { transition-delay: 120ms; }
[data-reveal-delay="3"] { transition-delay: 180ms; }
[data-reveal-delay="4"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ─── Lightbox ─── */
/* ─── Botón flotante WhatsApp ─── */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 12px 32px rgba(0,0,0,0.34); }
@media (max-width: 720px) {
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 12, 28, 0.94);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 240ms var(--ease-out);
  padding: 24px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 200ms var(--ease-out);
}
.lightbox__close:hover { background: rgba(255,255,255,0.16); }

/* ─── Contact strip ─── */
.contact-strip {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.contact-strip__item {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.contact-strip__item:last-child { border-right: 0; }
.contact-strip__item span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contact-strip__item a, .contact-strip__item p { font-family: var(--font-display); font-size: 22px; font-weight: 300; letter-spacing: -0.01em; color: var(--ink); }
.contact-strip__item a:hover { color: var(--brand-deep); }
@media (max-width: 880px) {
  .contact-strip { grid-template-columns: 1fr; }
  .contact-strip__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-strip__item:last-child { border-bottom: 0; }
}

/* ─── Services grid (home) ─── */
.services--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.btn--sm { padding: 9px 18px; font-size: 13px; }
@media (max-width: 1024px) {
  .services--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services--grid { grid-template-columns: 1fr; }
}

/* ─── Steps (cómo trabajamos) ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.step {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 16px;
}
.step h4 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2n) { border-right: 0; }
  .step { border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ─── Cobertura section ─── */
.cobertura { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper-deep); }
.cobertura__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.cobertura__inner h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1; letter-spacing: -0.025em; margin: 12px 0 20px;
}
.cobertura__inner h2 em { font-style: italic; color: var(--brand-deep); }
.cobertura__inner p { color: var(--muted); line-height: 1.7; max-width: 48ch; }
.cobertura__img-wrap { position: relative; max-width: 460px; margin: 0 auto; }
.cobertura__img img { width: 100%; height: auto; display: block; border-radius: 20px; }
.cob-dot {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 4px 2px rgba(0,240,255,0.4);
  transform: translate(-50%, -50%);
  animation: cob-glow 3.5s ease-in-out infinite;
}
.cob-dot--b { animation-delay: -1.17s; }
.cob-dot--c { animation-delay: -2.33s; }
@keyframes cob-glow {
  0%, 100% { opacity: 0.2; box-shadow: 0 0 3px 1px rgba(0,240,255,0.2); }
  50% { opacity: 1; box-shadow: 0 0 10px 5px rgba(0,240,255,0.9), 0 0 20px 8px rgba(0,240,255,0.35); }
}
@media (max-width: 880px) {
  .cobertura__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── Service detail page ─── */
.service-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: clamp(64px, 8vw, 110px) 0;
}
.service-intro__text h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 20px;
}
.service-intro__text h2 em { font-style: italic; color: var(--brand-deep); }
.service-intro__text p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.service-intro__img { border-radius: 24px; overflow: hidden; }
.service-intro__img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
@media (max-width: 880px) {
  .service-intro { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Sub-service cards ─── */
.sub-services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: clamp(64px, 8vw, 100px) 0;
}
.sub-service {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: box-shadow 240ms var(--ease-out);
}
.sub-service:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.sub-service img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sub-service__body { padding: 24px; }
.sub-service__body h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.4rem; letter-spacing: -0.01em; margin-bottom: 8px;
}
.sub-service__body p { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 880px) {
  .sub-services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sub-services { grid-template-columns: 1fr; }
}
