/* ---------- Fuente (self-hosted, solo latin + latin-ext) ---------- */
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (Mercury) ---------- */
:root{
  --canvas: #171721;        /* onyx */
  --card: #1e1e2a;          /* graphite */
  --button-2: #272735;      /* obsidian */
  --border-strong: #70707d; /* slate */
  --border-hair: rgba(226,227,237,.16); /* mist, atenuado sobre onyx */
  --text: #ededf3;          /* ivory */
  --text-muted: #c3c3cc;    /* ash */
  --accent: #5266eb;        /* cobalt, SOLO CTA primario */
  --white: #ffffff;

  --r-card: 12px;
  --r-pill: 32px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);

  --w-heading: 480;

  --sp-section: clamp(3rem, 2rem + 4vw, 4.5rem);  /* ~72px */
  --sp-3: clamp(1.25rem, 1rem + 1.2vw, 2rem);     /* ~32px */
  --sp-2: clamp(.75rem, .6rem + .6vw, 1.25rem);   /* ~20px */
  --sp-1: .75rem;

  --fs-display: clamp(2.5rem, 1.8rem + 3.4vw, 4.05rem);  /* ~65px */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.6rem);       /* ~42px */
  --fs-h3: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);         /* ~24px */
  --fs-sub: clamp(1.15rem, 1.05rem + .4vw, 1.3rem);      /* ~21px */
  --fs-body: 1rem;
  --fs-small: .875rem;
  --measure: 60ch;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color: inherit; }
ul,ol{ padding: 0; margin: 0; list-style: none; }
h1,h2,h3,p{ margin: 0; }
h1,h2,h3{ font-weight: var(--w-heading); letter-spacing: .012em; }
.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--text); color: var(--canvas);
  padding: .75em 1.2em; z-index: 1000; border-radius: var(--r-pill);
}
.skip-link:focus{ left: var(--sp-2); top: var(--sp-2); }
:focus-visible{ outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap{
  max-width: 75rem; /* 1200px */
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}
.section{ padding-block: var(--sp-section); }
.eyebrow{
  display: block;
  font-size: var(--fs-small);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
}
.sr-only{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section-head h2{ font-size: var(--fs-h2); line-height: 1.15; }
.section-head{ margin-bottom: var(--sp-3); }
.section-sub{ color: var(--text-muted); margin-top: .6em; max-width: var(--measure); }

/* ---------- Header ---------- */
header.site{
  position: sticky; top: 0; z-index: 20;
  background: rgba(23,23,33,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hair);
}
.site-bar{
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); padding-block: .8rem;
}
.brand{
  display: flex; align-items: center; gap: .6em;
  text-decoration: none; min-height: 44px;
}
.brand-mark{ width: 36px; height: 36px; flex: none; border-radius: 8px; }
.brand-name{ font-weight: var(--w-heading); font-size: 1.05rem; }
nav.site-nav ul{ display: flex; gap: .35rem; }
nav.site-nav a{
  text-decoration: none;
  font-size: var(--fs-small);
  color: var(--text-muted);
  padding: .55em 1em;
  border-radius: 40px;
  min-height: 40px;
  display: inline-flex; align-items: center;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
nav.site-nav a:hover{ background: var(--button-2); color: var(--text); }
@media (max-width: 560px){
  .site-bar{ flex-wrap: wrap; row-gap: .25rem; }
}

/* ---------- Botones (píldora) ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .8em 1.6em;
  font-size: var(--fs-body);
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: opacity .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg{ width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn-primary{ background: var(--accent); color: var(--white); }
.btn-primary:hover{ opacity: .9; transform: translateY(-1px); }
.btn:active{ transform: scale(.98); }
.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn-ghost:hover{ background: var(--button-2); }
.btn-row{ display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding-block: clamp(5rem, 4rem + 8vw, 10rem) var(--sp-section);
  overflow: hidden;
}
.hero::before{
  /* atmósfera "blue hour" sin foto: glow frío sobre el ónix */
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 120%;
  background:
    radial-gradient(60% 50% at 70% 10%, rgba(82,102,235,.16), transparent 65%),
    radial-gradient(45% 40% at 20% 0%, rgba(237,237,243,.05), transparent 60%);
  pointer-events: none;
}
@keyframes hero-glow-pulse{
  0%,100%{ opacity: 1; transform: translateY(0) scale(1); }
  50%{ opacity: .85; transform: translateY(2%) scale(1.03); }
}
.hero::before{ animation: hero-glow-pulse 14s var(--ease) infinite; }
.hero-sello{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  opacity: .08;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 720px){
  .hero-sello{ height: auto; width: min(240px, 62vw); right: 8px; opacity: .06; }
}
.hero .wrap{ position: relative; }
.hero h1{
  font-size: var(--fs-display);
  line-height: 1.1;
  max-width: 20ch;
}
.hero .lede{
  margin-top: var(--sp-2);
  font-size: var(--fs-sub);
  line-height: 1.35;
  color: var(--text-muted);
  max-width: var(--measure);
}
.hero .btn-row{ margin-top: var(--sp-3); }

/* ---------- Cards ---------- */
.card{
  background: var(--card);
  border-radius: var(--r-card);
  padding: var(--sp-3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -18px rgba(0,0,0,.45);
}

/* ---------- Principios ---------- */
.principios{
  display: grid; grid-template-columns: 1fr; gap: var(--sp-2);
}
.principio h3{ font-size: var(--fs-h3); margin-bottom: .4em; line-height: 1.2; }
.principio p{ color: var(--text-muted); }
.principio-n{
  display: inline-block;
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
@media (min-width: 780px){
  .principios{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Servicios ---------- */
.servicios{ display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
.servicio-bloque h3{ font-size: var(--fs-h3); margin-bottom: var(--sp-2); line-height: 1.2; }
.servicio-bloque ul{ display: flex; flex-direction: column; }
.servicio-bloque li{
  padding-block: .7rem;
  border-top: 1px solid var(--border-hair);
  color: var(--text-muted);
}
.servicio-bloque li:first-child{ border-top: none; }
@media (min-width: 860px){
  .servicios{ grid-template-columns: 1fr 1fr; }
}

/* ---------- Trabajos ---------- */
.work-list{ display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
.work-item{ display: flex; flex-direction: column; gap: var(--sp-2); overflow: hidden; scroll-margin-top: 5.5rem; }
.work-shot, .work-pattern{ transition: transform .3s var(--ease); }
.work-item:hover .work-shot, .work-item:hover .work-pattern{ transform: scale(1.03); }
.work-shot-link{ display: block; }
.work-card-link{
  display: flex; flex-direction: column; gap: var(--sp-2);
  text-decoration: none; color: inherit;
}
.work-shot{
  width: 100%;
  height: clamp(9rem, 7rem + 8vw, 14rem);
  object-fit: cover; object-position: top center;
  border-radius: 8px;
  filter: saturate(.85) brightness(.96);
}
.work-pattern{
  height: clamp(9rem, 7rem + 8vw, 14rem);
  border-radius: 8px;
  background-color: var(--button-2);
  background-image: repeating-linear-gradient(-45deg, rgba(237,237,243,.07) 0 2px, transparent 2px 12px);
}
.work-head{ display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; }
.work-num{ font-size: var(--fs-small); color: var(--text-muted); }
.work-item h3{ font-size: var(--fs-h3); line-height: 1.2; }
.work-tag{
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--button-2);
  border-radius: 40px;
  padding: .3em .9em;
}
.work-item p{ color: var(--text-muted); }
@media (min-width: 860px){
  .work-list{ grid-template-columns: 1fr 1fr; }
}
.trabajos-cta{ margin-top: var(--sp-3); }

/* ---------- Cómo trabajo ---------- */
.pasos{ display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
.paso-n{
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--button-2);
  color: var(--text);
  font-size: var(--fs-small);
  margin-bottom: var(--sp-2);
}
.paso p{ color: var(--text-muted); }
@media (min-width: 780px){
  .pasos{ grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cómo cobro ---------- */
.cobro, .quien{ max-width: var(--measure); }
.cobro p, .quien p{ color: var(--text-muted); }
.cobro p + p, .quien p + p{ margin-top: 1em; }

/* ---------- Contacto ---------- */
.contacto-grid{
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3); align-items: start;
}
.contacto-links{ display: flex; flex-direction: column; gap: var(--sp-2); }
.contacto-link{
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2);
  text-decoration: none;
  background: var(--card);
  border-radius: var(--r-card);
  padding: var(--sp-2) var(--sp-3);
  min-height: 56px;
  transition: background-color .2s var(--ease);
}
.contacto-link:hover{ background: var(--button-2); }
.contacto-link strong{ font-weight: var(--w-heading); font-size: var(--fs-sub); }
.contacto-link .detalle{ color: var(--text-muted); font-size: var(--fs-small); }
.cierre{
  font-size: var(--fs-h3);
  font-weight: var(--w-heading);
  line-height: 1.3;
  max-width: 24ch;
}
@media (min-width: 780px){
  .contacto-grid{ grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */
footer.site{
  border-top: 1px solid var(--border-hair);
  padding-block: var(--sp-3);
  margin-top: var(--sp-section);
}
footer.site .wrap{
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: var(--sp-1);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
footer.site a{ text-decoration: none; }
footer.site a:hover{ color: var(--text); }

/* ---------- Reveal ---------- */
.reveal{ opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-hidden{ opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal.is-hidden{ opacity: 1; transform: none; transition: none; }
  html{ scroll-behavior: auto; }
  .hero::before{ animation: none; }
  .card{ transition: none; }
  .card:hover{ transform: none; }
  .work-shot, .work-pattern{ transition: none; }
  .work-item:hover .work-shot, .work-item:hover .work-pattern{ transform: none; }
}

/* ---------- FAQ ---------- */
.faq{ display: flex; flex-direction: column; gap: var(--sp-2); }
.faq-item summary{ cursor: pointer; font-weight: var(--w-heading); }
.faq-item[open] summary{ margin-bottom: var(--sp-2); }
.faq-item p{ color: var(--text-muted); }

/* ---------- Page head (paginas interiores) ---------- */
.page-head h1{ font-size: var(--fs-display); line-height: 1.1; max-width: 24ch; }
.page-head .lede{
  margin-top: var(--sp-2);
  font-size: var(--fs-sub);
  line-height: 1.35;
  color: var(--text-muted);
  max-width: var(--measure);
}
.breadcrumb{
  display: inline-block; margin-bottom: var(--sp-2);
  font-size: var(--fs-small); color: var(--text-muted); text-decoration: none;
}
.breadcrumb:hover{ color: var(--text); }
.page-head .tag-row{ display:flex; gap:.5em; margin-top: var(--sp-2); }
.page-head .btn-row{ margin-top: var(--sp-3); }

/* ---------- Embed ---------- */
.embed-frame{
  width: 100%;
  height: clamp(28rem, 20rem + 30vw, 46rem);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-card);
  background: var(--text);
}
.embed-note{ margin-top: var(--sp-2); color: var(--text-muted); font-size: var(--fs-small); }

/* ---------- Galería ---------- */
.gallery{ display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
.gallery-item{ padding: 0; overflow: hidden; cursor: zoom-in; }
.gallery-item img{
  width: 100%;
  height: clamp(8rem, 6rem + 9vw, 13rem);
  object-fit: cover; object-position: top center;
  filter: saturate(.85) brightness(.96);
  transition: filter .2s var(--ease);
}
.gallery-item:hover img, .gallery-item:focus-visible img{ filter: saturate(1) brightness(1.04); }
.gallery-item figcaption{
  padding: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-small);
}
@media (min-width: 640px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px){
  .gallery{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Lightbox ---------- */
.lightbox{
  border: none; border-radius: var(--r-card);
  background: var(--card); color: var(--text);
  padding: var(--sp-2);
  max-width: min(94vw, 1400px); max-height: 94vh;
}
.lightbox::backdrop{ background: rgba(10,10,15,.85); }
.lightbox img{ display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; object-fit: contain; border-radius: 8px; }
.lightbox-head{ display: flex; justify-content: flex-end; }
.lightbox-close{
  background: var(--button-2); color: var(--text); border: none; border-radius: 50%;
  width: 2.2rem; height: 2.2rem; font-size: 1rem; line-height: 1; cursor: pointer;
  margin-bottom: var(--sp-1);
}
.lightbox-close:hover{ background: var(--border-strong); }
.lightbox figcaption{ margin-top: var(--sp-2); color: var(--text-muted); text-align: center; }
