/* ==========================================================================
   Contenedores Getxo — estilos
   Paleta: blanco roto #F7F7F5 · negro carbón #1A1A1A · amarillo #FFC400 (solo acento)
   ========================================================================== */

/* ---------- Fuentes (alojadas en la propia web, sin enviar datos a Google) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --ink-2: #4A4A47;
  --ink-3: #6B6B66;
  --line: rgba(26, 26, 26, .12);
  --line-strong: rgba(26, 26, 26, .26);
  --accent: #FFC400;
  --accent-hover: #FFD23F;
  --on-accent: #1A1A1A;
  --dark: #1A1A1A;
  --on-dark: #F7F7F5;
  --on-dark-2: rgba(247, 247, 245, .68);
  --on-dark-line: rgba(247, 247, 245, .16);
  --shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 18px 40px -18px rgba(26, 26, 26, .22);
  --grain: .045;

  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(96px, 12vw, 176px);
  --header-h: 76px;
  --radius: 22px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #121211;
  --surface: #1B1B19;
  --ink: #F2F1EC;
  --ink-2: #BDBCB5;
  --ink-3: #908F89;
  --line: rgba(242, 241, 236, .12);
  --line-strong: rgba(242, 241, 236, .26);
  --dark: #0B0B0A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px -18px rgba(0, 0, 0, .7);
  --grain: .06;
  color-scheme: dark;
}

/* Sin JavaScript: respeta la preferencia del sistema */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121211;
    --surface: #1B1B19;
    --ink: #F2F1EC;
    --ink-2: #BDBCB5;
    --ink-3: #908F89;
    --line: rgba(242, 241, 236, .12);
    --line-strong: rgba(242, 241, 236, .26);
    --dark: #0B0B0A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px -18px rgba(0, 0, 0, .7);
    --grain: .06;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Textura de papel: ruido muy sutil detrás del contenido */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}
.hero :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible,
.site-header:not(.is-solid) :focus-visible { outline-color: var(--accent); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 .9375rem/1 var(--font-display);
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía editorial ---------- */
.display-2 {
  font-size: clamp(2.25rem, 1.35rem + 3.7vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.038em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font: 600 .8125rem/1 var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow-num { color: var(--ink); }
.eyebrow-num::after { content: "/"; margin-left: 10px; color: var(--ink-3); opacity: .6; }
.eyebrow--light { color: rgba(255, 255, 255, .78); }
.eyebrow--light .eyebrow-num { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  --pad-y: .95em;
  --pad-x: 1.45em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.1 var(--font-display);
  letter-spacing: -.005em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn svg {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(255, 196, 0, .7);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }
.btn-ghost-light:hover .arrow { transform: translateY(3px); }
.btn-sm { --pad-y: .72em; --pad-x: 1.1em; font-size: .9375rem; }
.btn-lg { --pad-y: 1.05em; --pad-x: 1.6em; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.site-header.is-solid,
.menu-open .site-header {
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo: dorado sobre fondos oscuros, negro sobre la cabecera clara */
.brand { position: relative; display: block; flex: none; }
.logo {
  display: block;
  width: auto;
  height: 46px;
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.logo--ink { position: absolute; inset: 0; opacity: 0; }
.brand:hover .logo { transform: scale(1.03); }
.site-header.is-solid .logo--gold,
.menu-open .site-header .logo--gold { opacity: 0; }
.site-header.is-solid .logo--ink,
.menu-open .site-header .logo--ink { opacity: 1; }
[data-theme="dark"] .site-header .logo--gold { opacity: 1; }
[data-theme="dark"] .site-header .logo--ink { opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-header .logo--gold { opacity: 1; }
  :root:not([data-theme]) .site-header .logo--ink { opacity: 0; }
}
@media (min-width: 960px) { .logo { height: 50px; } }

.nav { display: none; }
.nav ul { display: flex; gap: clamp(24px, 2.6vw, 40px); margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font: 500 .9375rem/1 var(--font-display);
  opacity: .82;
  transition: opacity .3s var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.header-call { width: 44px; height: 44px; padding: 0; }
.header-call span { display: none; }

.menu-lines { position: relative; width: 18px; height: 10px; }
.menu-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-lines span:first-child { top: 0; }
.menu-lines span:last-child { top: calc(100% - 1.6px); }
[aria-expanded="true"] .menu-lines span:first-child { top: calc(50% - .8px); transform: rotate(45deg); }
[aria-expanded="true"] .menu-lines span:last-child { top: calc(50% - .8px); transform: rotate(-45deg); }

@media (min-width: 640px) {
  .header-call { width: auto; height: auto; padding: var(--pad-y) var(--pad-x); }
  .header-call span { display: inline; }
}
@media (min-width: 960px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- Menú móvil ---------- */
.menu-open { overflow: hidden; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  padding-top: var(--header-h);
  overflow-y: auto;
  background: var(--bg);
  animation: menuIn .6s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-block: 24px max(28px, env(safe-area-inset-bottom));
}
.mobile-links { margin: 0; padding: 0; list-style: none; }
.mobile-links li { animation: fadeUp .7s var(--ease-out) both; }
.mobile-links li:nth-child(2) { animation-delay: .05s; }
.mobile-links li:nth-child(3) { animation-delay: .1s; }
.mobile-links li:nth-child(4) { animation-delay: .15s; }
.mobile-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font: 700 clamp(2rem, 9vw, 3.25rem)/1.05 var(--font-display);
  letter-spacing: -.035em;
}
.mobile-links a span {
  font: 600 .8125rem/1 var(--font-display);
  letter-spacing: .08em;
  color: var(--ink-3);
}
.mobile-menu-foot { display: grid; gap: 18px; justify-items: center; }
.mobile-mail { color: var(--ink-2); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background: #141413;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 60%;
  transform: scale(1.14);
  animation: heroZoom 2.8s var(--ease-out) .1s forwards;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 11, .75) 0%, rgba(12, 12, 11, 0) 30%),
    linear-gradient(0deg, rgba(12, 12, 11, .9) 0%, rgba(12, 12, 11, .5) 50%, rgba(12, 12, 11, .3) 75%),
    rgba(12, 12, 11, .15);
}
.hero-inner {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: clamp(32px, 5vw, 64px);
  will-change: transform, opacity;
}
.hero-title {
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  font-size: clamp(2.25rem, .9rem + 6.6vw, 7.25rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1.2s var(--ease-out) forwards;
  animation-delay: calc(.2s + var(--i) * .1s);
}
.hero-title .mark {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 94% / 0% .09em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: markGrow 1.1s var(--ease-in-out) 1.15s forwards;
}
.hero-lead {
  max-width: 36rem;
  margin-bottom: clamp(28px, 3vw, 40px);
  font-size: clamp(1.0625rem, .98rem + .45vw, 1.3125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .86);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1.1s var(--ease-out) forwards;
  animation-delay: calc(.2s + var(--i) * .1s);
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 20px 0 max(24px, env(safe-area-inset-bottom));
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.hero-facts li { display: flex; flex-direction: column; gap: 4px; }
.hero-facts strong {
  font: 700 clamp(.9375rem, .85rem + .5vw, 1.25rem)/1.15 var(--font-display);
  letter-spacing: -.015em;
}
.hero-facts span { font-size: clamp(.8125rem, .78rem + .2vw, .9375rem); line-height: 1.35; color: rgba(255, 255, 255, .7); }

@media (min-width: 768px) {
  .hero-media img { object-position: 62% 62%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(12, 12, 11, .7) 0%, rgba(12, 12, 11, 0) 28%),
      linear-gradient(90deg, rgba(12, 12, 11, .86) 0%, rgba(12, 12, 11, .6) 45%, rgba(12, 12, 11, .2) 78%),
      linear-gradient(0deg, rgba(12, 12, 11, .75) 0%, rgba(12, 12, 11, 0) 45%);
  }
}

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--section-y); }

.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-intro {
  max-width: 30rem;
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  color: var(--ink-2);
}
.section-intro strong { color: var(--ink); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 64px; }
}

/* ---------- Nosotros ---------- */
.about-grid { display: grid; gap: 32px; }
.about-copy p { color: var(--ink-2); }
.about-copy p:first-child { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .about-title { grid-column: 1 / span 7; }
  .about-copy { grid-column: 9 / span 4; align-self: end; }
}

.values {
  display: grid;
  gap: 0 32px;
  margin: clamp(64px, 8vw, 120px) 0 0;
  padding: 0;
  list-style: none;
}
.value { position: relative; padding: 24px 0 36px; border-top: 1px solid var(--line-strong); }
.value::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 2px;
  background: var(--accent);
}
.value-num {
  display: block;
  margin-bottom: 28px;
  font: 600 .8125rem/1 var(--font-display);
  letter-spacing: .08em;
  color: var(--ink-3);
}
.value h3 { margin-bottom: 10px; font-size: 1.375rem; letter-spacing: -.02em; }
.value p { max-width: 30ch; margin: 0; font-size: 1rem; color: var(--ink-2); }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Banda fotográfica (se expande al hacer scroll) ---------- */
.band-frame {
  --p: 1;
  position: relative;
  height: clamp(400px, 72vh, 820px);
  overflow: hidden;
  color: #fff;
  background: #141413;
  clip-path: inset(calc((1 - var(--p)) * 7%) calc((1 - var(--p)) * 8%) round calc((1 - var(--p)) * 36px));
}
.js .band-frame { --p: 0; }
.band-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 62%;
  transform: scale(calc(1.22 - var(--p) * .22));
  will-change: transform;
}
.band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 12, 11, .75) 0%, rgba(12, 12, 11, .15) 55%, rgba(12, 12, 11, 0) 100%);
}
.band-quote {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(28px, 5vw, 72px);
  margin: 0 auto;
  font: 800 clamp(2rem, 1rem + 4.4vw, 5.25rem)/1 var(--font-display);
  letter-spacing: -.04em;
  opacity: calc(.15 + var(--p) * .85);
  transform: translateY(calc((1 - var(--p)) * 48px));
}

/* ---------- Marquee de materiales ---------- */
.catalog { padding-top: clamp(48px, 6vw, 88px); }
.marquee {
  margin-bottom: var(--section-y);
  padding-block: clamp(18px, 2.4vw, 32px);
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  font: 800 clamp(2.5rem, 1.2rem + 5vw, 6.25rem)/1.05 var(--font-display);
  letter-spacing: -.04em;
  will-change: transform;
}
.marquee-track > * { margin-right: clamp(22px, 3vw, 48px); }
.marquee-track i {
  width: .2em; height: .2em;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.marquee-track .outline { color: #C5A441; } /* dorado del logo */

/* ---------- Tarjetas de contenedores ---------- */
.cards {
  display: grid;
  gap: clamp(16px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: clamp(24px, 2.4vw, 32px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: translate .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.card:hover { translate: 0 -6px; box-shadow: var(--shadow); border-color: var(--line-strong); }
.card:hover::before { transform: scaleX(1); }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.card-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), color .5s var(--ease-out), transform .7s var(--ease-out);
}
.card-icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .card-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: rotate(-6deg);
}
.card-tag {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 .8125rem/1 var(--font-display);
  color: var(--ink-2);
}
.card-title { margin-bottom: 12px; font-size: clamp(1.5rem, 1.25rem + .7vw, 1.875rem); letter-spacing: -.028em; }
.card-text { margin: 0 0 28px; font-size: 1rem; color: var(--ink-2); }
.card-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 600 1rem/1 var(--font-display);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.card-link .i-wa { width: 20px; height: 20px; flex: none; }
.card-link .i-arrow {
  width: 16px; height: 16px;
  flex: none;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease-out);
}
.card-link:hover { background: var(--accent); color: var(--on-accent); }
.card-link:hover .i-arrow { transform: translate(2px, -2px); }

/* Cómo funciona + pago */
.catalog-info { display: grid; gap: clamp(16px, 1.6vw, 24px); margin-top: clamp(16px, 1.6vw, 24px); }
@media (min-width: 960px) { .catalog-info { grid-template-columns: 1.45fr 1fr; } }
.steps, .payment {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps { background: var(--surface); }
.info-title { margin-bottom: 24px; font-size: 1.25rem; letter-spacing: -.02em; }
.steps-list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: flex; gap: 16px; }
.steps-list strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; }
.steps-list p { margin: 0; font-size: .9688rem; color: var(--ink-2); }
.step-num {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 .9375rem/1 var(--font-display);
}
@media (min-width: 640px) { .steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps-list li { flex-direction: column; } }
.payment p { font-size: 1rem; color: var(--ink-2); }
.payment strong { color: var(--ink); }
.text-link {
  display: inline-block;
  margin-top: 4px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--accent);
  font: 600 1rem/1.3 var(--font-display);
  transition: border-color .3s var(--ease-out);
}
.text-link:hover { border-color: var(--ink); }

/* ---------- Galería ---------- */
.gallery-grid { display: grid; gap: clamp(20px, 2vw, 32px); }
.g-item { margin: 0; }
.g-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--line);
  cursor: zoom-in;
}
.g-d .g-media { aspect-ratio: 16 / 9; }
.g-parallax { position: absolute; inset: -7% 0; display: block; will-change: transform; }
.g-parallax img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter .8s var(--ease-out);
}
.g-a .g-parallax img { object-position: 35% 50%; }
.g-b .g-parallax img { object-position: 42% 50%; }
.g-c .g-parallax img { object-position: 70% 50%; }
.g-d .g-parallax img { object-position: 60% 60%; }
.g-item:hover .g-parallax img { transform: scale(1.06); }

.g-zoom {
  position: absolute;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: #1A1A1A;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.g-zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.g-media:focus-visible .g-zoom,
.g-item:hover .g-zoom { opacity: 1; transform: none; }
.has-cursor .g-media { cursor: none; }
.has-cursor .g-item:hover .g-zoom { opacity: 0; }
@media (hover: none) { .g-zoom { opacity: 1; transform: none; } }

.g-item figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 14px;
  font-size: .9688rem;
  color: var(--ink-2);
}
.g-item figcaption span { font: 600 .8125rem/1 var(--font-display); letter-spacing: .06em; color: var(--ink-3); }

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-a, .g-d { grid-column: span 2; }
  .g-a .g-media { aspect-ratio: 16 / 10; }
  .g-d .g-media { aspect-ratio: 21 / 9; }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .g-a { grid-column: 1 / span 7; }
  .g-b { grid-column: 8 / span 5; margin-top: clamp(64px, 8vw, 140px); }
  .g-c { grid-column: 1 / span 5; }
  .g-d { grid-column: 6 / span 7; margin-top: clamp(48px, 6vw, 100px); }
  .g-a .g-media { aspect-ratio: 4 / 3; }
  .g-b .g-media { aspect-ratio: 1 / 1; }
  .g-d .g-media { aspect-ratio: 16 / 9; }
}

/* Cursor "Ver" de la galería */
.g-cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  width: 88px; height: 88px;
  margin: -44px 0 0 -44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #1A1A1A;
  font: 700 .9375rem/1 var(--font-display);
  pointer-events: none;
  transform: scale(0);
}
@media (hover: none), (pointer: coarse) { .g-cursor { display: none; } }

/* ---------- Visor de fotos ---------- */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 12, 11, .95);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .45s var(--ease-out); }
.lightbox::backdrop { background: transparent; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 80px 16px;
}
.lightbox-figure img {
  width: auto;
  max-width: min(1400px, 92vw);
  max-height: 74vh;
  max-height: 74dvh;
  border-radius: 14px;
  opacity: 0;
  transform: scale(.98);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
}
.lightbox-figure img.is-loaded { opacity: 1; transform: none; }
.lightbox figcaption { font-size: .9688rem; text-align: center; color: rgba(255, 255, 255, .78); }
.lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: #1A1A1A; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count {
  position: absolute;
  top: 34px; left: 24px;
  margin: 0;
  font: 600 .875rem/1 var(--font-display);
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .7);
}
@media (max-width: 639px) {
  .lb-prev, .lb-next { top: auto; bottom: max(20px, env(safe-area-inset-bottom)); translate: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* ---------- Contacto ---------- */
.contact {
  padding-block: var(--section-y) clamp(64px, 8vw, 112px);
  background: var(--dark);
  color: var(--on-dark);
}
.contact .eyebrow-num::after { color: var(--on-dark-2); }
.contact-title {
  max-width: 14ch;
  margin-bottom: clamp(40px, 6vw, 80px);
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.042em;
}
.contact-phone {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px 24px;
  padding-block: clamp(24px, 3vw, 40px);
  border-block: 1px solid var(--on-dark-line);
}
.contact-phone::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
}
.contact-phone:hover::after { transform: scaleX(1); }
.contact-label {
  font: 600 .8125rem/1 var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.contact-phone .contact-label { grid-column: 1 / -1; }
.contact-number {
  font: 800 clamp(2.6rem, .6rem + 10vw, 10rem)/.95 var(--font-display);
  letter-spacing: -.05em;
  white-space: nowrap;
}
.contact-arrow {
  width: clamp(56px, 7vw, 112px);
  height: clamp(56px, 7vw, 112px);
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #1A1A1A;
  transition: transform .7s var(--ease-out);
}
.contact-arrow svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-phone:hover .contact-arrow { transform: rotate(45deg); }
@media (min-width: 560px) { .contact-arrow { display: grid; } }

.contact-grid {
  display: grid;
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--on-dark-line);
}
.contact-value {
  font: 600 clamp(1.0625rem, 1rem + .3vw, 1.25rem)/1.3 var(--font-display);
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
a.contact-item .contact-value {
  justify-self: start;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0% 2px;
  transition: background-size .6s var(--ease-out);
  width: fit-content;
  padding-bottom: 2px;
}
a.contact-item:hover .contact-value { background-size: 100% 2px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-item { border-bottom: 0; padding-top: 32px; }
}

/* ---------- Pie ---------- */
.site-footer {
  padding-block: 28px max(28px, env(safe-area-inset-bottom));
  background: var(--dark);
  color: var(--on-dark-2);
  font-size: .875rem;
  border-top: 1px solid var(--on-dark-line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-right: calc(var(--gutter) + 64px);
}
.footer-inner p { margin: 0; }
.footer-logo { width: auto; height: 40px; margin-right: auto; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); font-weight: 500; }
.to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }
@media (min-width: 640px) { .footer-inner { padding-right: calc(var(--gutter) + 150px); } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: var(--on-dark-2); transition: color .3s var(--ease-out); }
.footer-legal a:hover { color: var(--on-dark); }

/* ---------- Páginas legales ---------- */
.legal {
  max-width: calc(780px + var(--gutter) * 2);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(72px, 9vw, 128px);
}
.legal h1 { margin-bottom: 12px; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); letter-spacing: -.04em; line-height: 1; }
.legal-updated { margin-bottom: clamp(40px, 5vw, 64px); font-size: .9375rem; color: var(--ink-3); }
.legal h2 { margin: 48px 0 14px; font-size: 1.375rem; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal code { padding: 2px 6px; border-radius: 6px; background: var(--line); font-size: .9em; }
.legal-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 1em;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal-data dt { margin-top: 12px; font: 600 .75rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.legal-data dt:first-child { margin-top: 0; }
.legal-data dd { margin: 4px 0 0; color: var(--ink); }
@media (min-width: 640px) {
  .legal-data { grid-template-columns: 180px minmax(0, 1fr); gap: 12px 24px; }
  .legal-data dt { margin-top: 0; padding-top: 3px; }
  .legal-data dd { margin: 0; }
}
.pending { padding: 1px 6px; border-radius: 6px; background: var(--accent); color: #1A1A1A; font-weight: 600; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 45;
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #1A1A1A;
  font: 700 .9375rem/1 var(--font-display);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
  transition: transform .7s var(--ease-out), opacity .5s var(--ease-out), visibility .5s;
}
/* Aparece con JS: en móvil y tablet, cuando el hero deja de verse, para no tapar su contenido */
.js .wa-float:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(20px) scale(.85); }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: waPulse 2.4s ease-out 2.4s 3;
}
.wa-float svg { width: 27px; height: 27px; fill: currentColor; flex: none; }
.wa-label { display: none; }
.wa-float:hover { transform: translateY(-3px); }
.menu-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 640px) {
  .wa-float { width: auto; height: 60px; padding: 0 22px 0 18px; }
  .wa-label { display: inline; }
}

/* ---------- Animaciones al hacer scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .card[data-reveal] {
  transition:
    opacity 1s var(--ease-out) var(--d, 0ms),
    transform 1.2s var(--ease-out) var(--d, 0ms),
    translate .6s var(--ease-out),
    box-shadow .6s var(--ease-out),
    border-color .4s var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .value::before { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out) calc(var(--d, 0ms) + .35s); }
.js .value.is-in::before { transform: scaleX(1); }

/* Galería: la foto se descubre de abajo arriba y se asienta */
.js .g-media { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.4s var(--ease-in-out); }
.js .g-item.is-in .g-media { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .g-parallax img { transform: scale(1.28); transition: transform 1.8s var(--ease-out); }
.js .g-item.is-in .g-parallax img { transform: scale(1.001); }
.js .g-item.is-in:hover .g-parallax img { transform: scale(1.06); transition-duration: 1.2s; }
.js .g-item figcaption { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease-out) .55s, transform .9s var(--ease-out) .55s; }
.js .g-item.is-in figcaption { opacity: 1; transform: none; }

@keyframes heroZoom { to { transform: scale(1.02); } }
@keyframes lineUp { to { transform: none; } }
@keyframes markGrow { to { background-size: 100% .09em; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 196, 0, .55); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(255, 196, 0, 0); }
}

/* Cambio de tema con View Transitions */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .band-frame { --p: 1; }
  .js .g-media { clip-path: none; }
  .wa-float::after { display: none; }
}
