/* =========================================================
   Obras Yoiman · estilos
   Minimalista en blanco y negro: tipografía contenida,
   mucho aire y las fotos reales como protagonistas.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"),
       url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --paper: #f5f5f4;
  --ink: #0a0a0a;
  --ink-2: #3b3b3b;
  --grey: #5c5c5c;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.3);
  --line-dark: rgba(255, 255, 255, 0.16);
  --on-dark-2: #b5b5b5;

  /* Color del logo: turquesa a azul. Solo como acento; la web sigue en blanco y negro */
  --accent: #2f5be0;          /* azul legible sobre blanco (contraste 5,6:1) */
  --accent-light: #5ee3ec;    /* turquesa del logo */
  --accent-grad: linear-gradient(90deg, #1597aa 0%, #3a64e4 100%);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(64px, 7vw, 104px);
  --header-h: 68px;

  --fs-h1: clamp(2.3rem, 1.6rem + 2.2vw, 3.5rem);
  --fs-h2: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-small: 0.9375rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

h1, h2 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }



.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section-lead { margin-top: 12px; max-width: 34rem; font-size: var(--fs-lead); color: var(--grey); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip:focus { top: 12px; }

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-arrow { width: 15px; height: 15px; margin-left: 6px; stroke-width: 1.8; transition: transform 200ms var(--ease-out); }

/* ---------- Botones ---------- */

.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 550;
  font-size: 0.9875rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-sm { --btn-h: 38px; padding: 0 14px; font-size: 0.9rem; }
.btn-lg { --btn-h: 54px; padding: 0 26px; font-size: 1rem; }

.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-paper { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-outline-paper { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }

@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #2a2a2a; border-color: #2a2a2a; }
  .btn-outline:hover { border-color: var(--ink); }
  .btn-paper:hover { background: #e7e7e7; border-color: #e7e7e7; }
  .btn-outline-paper:hover { border-color: var(--white); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 140ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: currentColor; }
  .text-link:hover .ico-arrow { transform: translate(2px, -2px); }
}

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  position: relative;
  padding-block: 6px;
  font-size: 0.9375rem;
  color: var(--grey);
  text-decoration: none;
  transition: color 140ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 550; font-size: 0.9375rem; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}
.menu-lines, .menu-lines::before {
  display: block;
  width: 20px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 220ms var(--ease-out);
}
.menu-lines { position: relative; transform: translateY(-3.5px); }
.menu-lines::before { content: ""; position: absolute; left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-lines { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(-7px) rotate(-90deg); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--white); }
.mobile-menu nav { display: grid; padding-block: 6px 18px; }
.mobile-menu a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a { white-space: nowrap; }
@media (max-width: 1240px) { .nav { gap: 22px; } .header-inner { gap: 24px; } }
@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 1000px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: block; }
}
@media (max-width: 760px) { .header-wa { display: none; } }

/* ---------- Portada ---------- */

.hero { padding-block: clamp(20px, 2.5vw, 36px) clamp(48px, 5vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero h1 { max-width: 13ch; }
.hero-lead { margin-top: 20px; max-width: 30rem; font-size: var(--fs-lead); color: var(--grey); }
.hero-quick { display: none; gap: 10px; margin-top: 28px; }

.composer {
  margin-top: 40px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--paper);
}
.composer-title { font-size: 1rem; font-weight: 600; }
.composer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.field { display: block; min-width: 0; }
.field-label { display: block; margin-bottom: 6px; font-size: 0.8125rem; color: var(--grey); }
.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  font-size: 16px;
  transition: border-color 140ms ease;
}
.field select { appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap { position: relative; display: block; }
.select-wrap .ico { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; width: 16px; height: 16px; }
.field input::placeholder { color: var(--grey); }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.composer-submit { width: 100%; margin-top: 12px; }
.composer-note { margin-top: 12px; font-size: 0.875rem; color: var(--grey); }
.composer-note a { color: var(--ink); font-weight: 550; white-space: nowrap; }

/* Mosaico de tres obras */
.hero-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: clamp(460px, 44vw, 640px);
}
.hero-photo { position: relative; overflow: hidden; background: #e8e8e6; }
.hero-photo-main { grid-row: span 2; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }



/* Etiqueta blanca sobre la foto (como en la galería de Tarantino) */
.work-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: settle 650ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3), .hero-copy > :nth-child(4) { animation-delay: 120ms; }
  .hero-photo { animation: fade 900ms var(--ease-out) both; }
  .hero-photo:nth-child(2) { animation-delay: 120ms; }
  .hero-photo:nth-child(3) { animation-delay: 220ms; }
}
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .hero-lead { order: 2; }
  .hero-quick { display: grid; grid-template-columns: 1.4fr 1fr; order: 3; }
  .hero-photos { order: 4; margin-top: 32px; height: clamp(340px, 92vw, 520px); gap: 8px; }
  .composer { order: 5; margin-top: 32px; }
}
@media (max-width: 480px) {
  .composer-fields { grid-template-columns: 1fr; }
}

/* ---------- Cifras ---------- */

.stats { padding-block: clamp(8px, 2vw, 24px) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 4px;
  border-top: 1px solid var(--line-strong);
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat dt { order: -1; font-size: var(--fs-small); color: var(--grey); }
.stat dd { margin: 0; }
.stat dd:not(.stat-desc) { display: flex; align-items: baseline; margin-top: 10px; }
.stat-n { font-size: clamp(2.25rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-plus { margin-left: 2px; font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; color: var(--grey); line-height: 1; }
.stat-desc { margin-top: 12px; max-width: 16rem; font-size: var(--fs-small); color: var(--grey); line-height: 1.5; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding: 22px 18px 18px; }
}
@media (max-width: 480px) {
  .stat { padding: 18px 12px 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat-desc { font-size: 0.8125rem; }
}

/* ---------- Servicios ---------- */

.services { padding-top: 0; }
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: var(--section);
  background: linear-gradient(var(--line), var(--line)) no-repeat var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px;
}
/* Columna izquierda cuadrada con la lista: empieza en su línea superior y acaba en la inferior */
.services-intro, .faq-intro { display: flex; flex-direction: column; }
.services-intro h2, .faq-intro h2 { margin-top: -0.12em; }
.services-intro p { margin-top: 14px; margin-bottom: 8px; max-width: 24rem; color: var(--grey); }
.services-steps { margin-top: auto; max-width: 24rem; list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.services-steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.st-n { font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: var(--grey); }
.services-steps strong { font-size: 0.9875rem; font-weight: 600; color: var(--ink); }

/* Servicios desplegables, con el mismo lenguaje que las preguntas frecuentes */
.service-list { border-top: 1px solid var(--line-strong); }
.service-list details { border-bottom: 1px solid var(--line); }
.service-list summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 4px 32px;
  align-items: center;
  padding: 26px 44px 26px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary::before,
.service-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out);
}
.service-list summary::after { transform: rotate(90deg); }
.service-list details[open] summary::after { transform: rotate(0deg); }
.sl-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.sl-desc { font-size: var(--fs-small); color: var(--grey); }
@media (hover: hover) and (pointer: fine) {
  .service-list summary:hover .sl-name { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
}

.sl-body { padding: 2px 0 26px; }
.sl-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  padding: 20px;
  background: var(--paper);
}
.sl-items li { font-size: var(--fs-small); color: var(--grey); line-height: 1.5; }
.sl-items strong { display: block; margin-bottom: 2px; font-size: 0.9875rem; font-weight: 600; color: var(--ink); }
.sl-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 140ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .sl-cta:hover { text-decoration-color: currentColor; }
  .sl-cta:hover .ico-arrow { transform: translateX(3px); }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-steps { max-width: none; }
  .service-list summary { grid-template-columns: 1fr; padding-block: 20px; }
}
@media (max-width: 560px) {
  .sl-items { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .sl-body { padding-right: 0; }
}
@media (pointer: coarse) {
  .sl-cta { min-height: 44px; }
}

/* ---------- Obras (galería como la de Tarantino) ---------- */

.works { background: var(--paper); }
.works-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms var(--ease-out);
}
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .filter:hover { border-color: var(--ink); }
}

.works-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.work { view-transition-class: work; }
.work:first-child { grid-column: span 2; grid-row: span 2; }
.work:first-child .work-btn { aspect-ratio: auto; height: 100%; }
/* La foto grande no debe estirar las filas con su altura natural */
.work:first-child .work-btn img { position: absolute; inset: 0; }
.work[hidden] { display: none; }
.work-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e8e8e6;
  cursor: zoom-in;
}
.work-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .work-btn:hover img { transform: scale(1.03); }
}
.works-more { display: flex; justify-content: center; margin-top: 36px; }
.works-more[hidden] { display: none; }

@media (max-width: 640px) {
  /* Los filtros en una sola fila que se desliza con el dedo */
  .filters {
    flex-wrap: nowrap;
    width: calc(100% + var(--gutter) * 2);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
}
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .work:first-child { grid-column: span 2; grid-row: span 1; }
  .work:first-child .work-btn { aspect-ratio: 4 / 3; height: auto; }
}
::view-transition-group(*.work) { animation-duration: 360ms; animation-timing-function: var(--ease-out); }

/* Visor */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(8, 8, 8, 0.95); }
.lightbox[open] { display: grid; place-items: center; opacity: 1; transition: opacity 200ms var(--ease-out); }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox-figure { display: grid; gap: 14px; justify-items: center; padding: 64px 72px; max-height: 100dvh; touch-action: pan-y; }
.lightbox-figure img { max-width: min(92vw, 900px); max-height: calc(100dvh - 160px); width: auto; object-fit: contain; }
.lightbox-figure figcaption { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.82); text-align: center; }
.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 120ms ease, transform 120ms var(--ease-out);
}
.lightbox-btn:active { transform: scale(0.95); }
.lightbox-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-btn:focus-visible { outline-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .lightbox-btn:hover { background: rgba(255, 255, 255, 0.24); }
}
.lightbox-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lightbox-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox-figure { padding: 72px 12px 96px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: max(20px, env(safe-area-inset-bottom)); translate: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

/* ---------- Dónde estamos ---------- */

/* ---------- Cómo trabajamos ---------- */

.process { padding-bottom: 0; }
.process-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.process-head .section-lead { margin-top: 0; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}
.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 32px;
  border: 1px solid var(--line);
  background: var(--white);
}
.pc-n { position: absolute; top: 28px; right: 28px; font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: var(--grey); }
.pc-ico { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.process-card h3 { margin-top: 40px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.process-card p { margin-top: 10px; font-size: var(--fs-small); color: var(--grey); line-height: 1.6; }
@media (max-width: 900px) {
  .process-head { grid-template-columns: 1fr; gap: 12px; }
  .process-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .process-card { padding: 22px 22px 24px; }
  .pc-n { top: 22px; right: 22px; }
  .process-card h3 { margin-top: 24px; }
}

.where { padding-top: calc(var(--section) * 0.6); padding-bottom: clamp(56px, 6vw, 88px); }
.where-grid {
  padding-top: calc(var(--section) * 0.8);
  background: linear-gradient(var(--line), var(--line)) no-repeat var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: stretch;
}
.where-copy { display: flex; flex-direction: column; }
.where-copy h2 { margin-top: -0.12em; }
.where-address { margin-top: 16px; font-size: 1.125rem; font-weight: 550; line-height: 1.5; color: var(--ink); }

.transport { margin-top: 26px; border-top: 1px solid var(--line-strong); }
.transport div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
}
.transport dt { font-size: 0.875rem; color: var(--grey); }
.transport dd { margin: 0; font-size: var(--fs-small); }
.stations { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.stations > span { white-space: nowrap; }
.stations .line + .line { margin-left: 2px; }
.line {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 650;
  vertical-align: 1px;
}
.where-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 32px; }

/* Mapa estático (sin cookies): abre Google Maps al pulsarlo */
.map {
  position: relative;
  display: block;
  align-self: start;
  aspect-ratio: 900 / 620; /* la proporción del mapa: nunca recorta las estaciones */
  overflow: hidden;
  background: #efefed;
  text-decoration: none;
}
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.map-open {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-size: 0.875rem;
  font-weight: 550;
  transition: background-color 140ms ease, color 140ms ease;
}
.map-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.6875rem;
  color: var(--ink-2);
}
.map:active .map-open { background: var(--ink); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .map:hover img { transform: scale(1.02); }
  .map:hover .map-open { background: var(--ink); color: var(--white); border-color: var(--ink); }
}

/* Portátiles pequeños: el mapa ocupa la misma altura que el texto */
@media (min-width: 1101px) and (max-width: 1260px) {
  .map { align-self: stretch; aspect-ratio: auto; min-height: 100%; }
  .map img { object-position: 35% 50%; }
}
@media (max-width: 1100px) {
  .where-grid { grid-template-columns: 1fr; }
  .where-actions { padding-top: 28px; }
  .map { max-width: 900px; }
}
@media (max-width: 640px) {
  .map { aspect-ratio: 1 / 1; }
  .map picture { display: contents; }
}
@media (max-width: 480px) {
  .transport div { grid-template-columns: 1fr; gap: 2px; }
  .where-actions .btn { flex: 1; }
}

/* ---------- Preguntas frecuentes ---------- */

.faq { padding-top: 0; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: var(--section);
  background: linear-gradient(var(--line), var(--line)) no-repeat var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px;
}
.faq-intro .section-lead { margin-bottom: 10px; }
.faq-prep { margin-top: auto; max-width: 24rem; }
.faq-prep-title { font-size: var(--fs-small); color: var(--grey); margin-bottom: 10px; }
.faq-prep .services-steps { margin-top: 0; }
.checklist .st-n { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 44px 22px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
@media (min-width: 901px) and (max-width: 1180px) { .faq summary { padding-block: 24px; } }
@media (min-width: 901px) and (max-width: 1220px) { .service-list summary { padding-block: 31px; } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 44px 22px 0; max-width: 40rem; color: var(--grey); }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-prep { max-width: none; }
}

/* ---------- Contacto ---------- */

.closing {
  /* Una obra real de fondo, muy oscurecida para que el texto se lea perfecto */
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.78) 55%, rgba(10, 10, 10, 0.62) 100%),
    url("../img/obras/salon-ladrillo-visto-1280.webp") center 45% / cover no-repeat,
    var(--ink);
  color: var(--white);
  padding-block: clamp(80px, 10vw, 144px);
}
@media (max-width: 760px) {
  .closing {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.8)),
      url("../img/obras/salon-ladrillo-visto-640.webp") center / cover no-repeat,
      var(--ink);
  }
}
.closing ::selection { background: var(--white); color: var(--ink); }
.closing :focus-visible { outline-color: var(--white); }
.closing-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.closing p { margin-top: 12px; max-width: 30rem; color: var(--on-dark-2); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) {
  .closing-actions { width: 100%; }
  .closing-actions .btn { width: 100%; }
}

/* ---------- Pie ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); font-size: var(--fs-small); }
.site-footer ::selection { background: var(--white); color: var(--ink); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 32px 40px;
  padding-block: 48px 36px;
  background: linear-gradient(var(--line-dark), var(--line-dark)) no-repeat var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px;
}
.footer-mark { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.footer-brand p:not(.footer-mark) { margin-top: 12px; max-width: 22rem; }
.footer-title { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.55); }
.footer-links { display: grid; gap: 8px; margin-top: 12px; }
.footer-links a { text-decoration: none; transition: color 140ms ease; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 18px;
  background: linear-gradient(var(--line-dark), var(--line-dark)) no-repeat var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { text-decoration: none; transition: color 140ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover, .footer-legal a:hover { color: var(--white); }
}

/* ---------- Barra móvil ---------- */

.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 280ms var(--ease-drawer);
  }
  .mobile-bar .btn { --btn-h: 50px; }
  /* Aparece cuando los botones de la portada ya no se ven */
  .mobile-bar.is-visible { transform: none; }
  /* El hueco para la barra va dentro del pie (negro), no debajo en blanco */
  .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Aparición ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

@media (pointer: coarse) {
  .text-link, .footer-links a, .footer-legal a, .composer-note a { display: inline-flex; align-items: center; min-height: 44px; }
}

.noscript-note { margin-top: 24px; color: var(--ink-2); }

/* ---------- Páginas legales ---------- */

.legal { padding-block: clamp(48px, 7vw, 104px); }
.legal-inner { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }
.legal .updated { margin-top: 12px; color: var(--grey); font-size: var(--fs-small); }
.legal h2 { margin-top: 44px; font-size: 1.4rem; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-2); max-width: 68ch; }
.legal ul { list-style: square; padding-left: 1.2em; }
.legal .pending { background: var(--ink); color: var(--white); padding: 0 5px; font-weight: 600; }
.legal .back { margin-top: 48px; }

/* ---------- Toques de color del logo ---------- */
.wordmark img { height: 38px; width: auto; }
.footer-mark img { height: 44px; width: auto; }
.h1-soft {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav a::after { background: var(--accent-grad); height: 2px; }
.stat-plus { color: var(--accent); }
.stats-grid { position: relative; }
.stats-grid::before { content: ""; position: absolute; left: var(--gutter); top: 0; width: 64px; height: 2px; background: var(--accent-grad); z-index: 1; }
.checklist .st-n { stroke: var(--accent); }
.st-n:not(svg) { color: var(--accent); }
.pc-ico { stroke: var(--accent); }
.pc-n { color: var(--accent); }
.service-list details[open] summary::before,
.service-list details[open] summary::after,
.faq details[open] summary::before,
.faq details[open] summary::after { background: var(--accent); }
.sl-cta .ico-arrow { color: var(--accent); }

/* Más toques del logo: una rayita de color sobre cada título de sección */
.services-intro h2::before,
.works-head h2::before,
.process-head h2::before,
.where-copy h2::before,
.faq-intro h2::before,
.closing h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--accent-grad);
}
.closing h2::before { background: linear-gradient(90deg, #5ee3ec, #6b8df5); }

/* Recuadros de "Cómo trabajamos" y panel de presupuesto: filo de color arriba */
.process-card::before,
.composer::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 3px;
  background: var(--accent-grad);
}
.composer { position: relative; }
.composer::before { left: 0; right: 0; top: 0; }

/* Banda final: un brillo azul muy suave sobre la foto oscura */
.closing {
  background:
    radial-gradient(60% 90% at 100% 100%, rgba(58, 100, 228, 0.38) 0%, rgba(58, 100, 228, 0) 70%),
    radial-gradient(40% 70% at 85% 0%, rgba(94, 227, 236, 0.16) 0%, rgba(94, 227, 236, 0) 70%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.78) 55%, rgba(10, 10, 10, 0.62) 100%),
    url("../img/obras/salon-ladrillo-visto-1280.webp") center 45% / cover no-repeat,
    var(--ink);
}

/* Filtro activo de la galería y enlaces al pasar el ratón */

@media (hover: hover) and (pointer: fine) {
  .sl-cta:hover { text-decoration-color: var(--accent); }
  .site-footer a:hover { color: var(--accent-light); }
}

/* Pie: línea de color en el borde superior */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent-grad); }

/* ---------- Aurora: velos de color del logo en el fondo de las zonas blancas ---------- */
.hero, .services, .process, .faq, .where, .reviews { position: relative; isolation: isolate; overflow: clip; }
.hero::before, .services::before, .process::before, .faq::before, .where::before, .reviews::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  /* se funde arriba y abajo para que no haya cortes entre secciones */
  -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 30%, #000 66%, transparent 90%);
  mask-image: linear-gradient(to bottom, transparent 8%, #000 30%, #000 66%, transparent 90%);
}
.hero::before { -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%); }
/* Portada: un velo turquesa tras el título y uno azul que asoma tras las fotos */
.hero::before {
  background:
    radial-gradient(38% 46% at 8% 18%, rgba(94, 227, 236, 0.22) 0%, rgba(94, 227, 236, 0) 70%),
    radial-gradient(30% 38% at 30% 70%, rgba(110, 140, 245, 0.12) 0%, rgba(110, 140, 245, 0) 70%),
    radial-gradient(42% 52% at 96% 92%, rgba(90, 127, 242, 0.18) 0%, rgba(90, 127, 242, 0) 70%);
}
.services::before {
  background:
    radial-gradient(36% 56% at 0% 52%, rgba(94, 227, 236, 0.24) 0%, rgba(94, 227, 236, 0) 70%),
    radial-gradient(30% 50% at 100% 48%, rgba(90, 127, 242, 0.16) 0%, rgba(90, 127, 242, 0) 70%);
}
.process::before {
  background:
    radial-gradient(38% 64% at 100% 20%, rgba(94, 227, 236, 0.26) 0%, rgba(94, 227, 236, 0) 70%),
    radial-gradient(32% 50% at 6% 50%, rgba(90, 127, 242, 0.18) 0%, rgba(90, 127, 242, 0) 70%);
}
.faq::before {
  background:
    radial-gradient(36% 64% at 0% 35%, rgba(90, 127, 242, 0.18) 0%, rgba(90, 127, 242, 0) 70%),
    radial-gradient(32% 56% at 100% 70%, rgba(94, 227, 236, 0.22) 0%, rgba(94, 227, 236, 0) 70%);
}
/* Un vaivén muy lento, como la aurora; se queda quieto si el usuario prefiere menos movimiento */
@media (prefers-reduced-motion: no-preference) {
  .hero::before, .process::before { animation: aurora 26s ease-in-out infinite alternate; }
  .services::before, .faq::before { animation: aurora 32s ease-in-out infinite alternate-reverse; }
}
@keyframes aurora {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to   { transform: translate3d(2%, -3%, 0) scale(1.06); }
}
.process::before { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 55%, transparent 88%); mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 55%, transparent 88%); }

/* ---------- Línea de progreso bajo el menú ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Botones negros: reflejo turquesa y azul al pasar el ratón ---------- */
.btn-ink { position: relative; overflow: hidden; isolation: isolate; }
.btn-ink::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 15%, rgba(94, 227, 236, 0.5) 42%, rgba(90, 127, 242, 0.55) 58%, transparent 85%);
  transform: translateX(-110%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover::after { transform: translateX(110%); transition: transform 700ms var(--ease-out); }
  .btn-ink:hover { box-shadow: 0 6px 22px -8px rgba(58, 100, 228, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-ink::after { display: none; }
}

/* ---------- Página 404 ---------- */
.notfound { position: relative; isolation: isolate; overflow: clip; min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; }
.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 15% 30%, rgba(94, 227, 236, 0.24) 0%, rgba(94, 227, 236, 0) 70%),
    radial-gradient(40% 50% at 85% 75%, rgba(90, 127, 242, 0.2) 0%, rgba(90, 127, 242, 0) 70%);
}
.notfound-inner { padding-block: var(--section); }
.notfound-code {
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound h1 { margin-top: 12px; font-size: var(--fs-h2); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Barra de desplazamiento con el degradado del logo ---------- */
/* Chrome, Edge y Safari: degradado completo */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5ee3ec 0%, #3a9be0 50%, #3a64e4 100%);
  border: 2px solid var(--white);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #22c3d4 0%, #2f5be0 100%); }
/* Firefox no admite degradados en la barra: usa el azul del logo */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: #3a7fe2 var(--white); scrollbar-width: thin; }
}

/* ---------- Dónde estamos con más vida ---------- */
.where::before {
  background:
    radial-gradient(34% 60% at 100% 55%, rgba(94, 227, 236, 0.26) 0%, rgba(94, 227, 236, 0) 70%),
    radial-gradient(30% 55% at 0% 70%, rgba(90, 127, 242, 0.16) 0%, rgba(90, 127, 242, 0) 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .where::before { animation: aurora 30s ease-in-out infinite alternate; }
}
.where-address { display: flex; align-items: flex-start; gap: 14px; }
.wa-pin {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 6px 18px -8px rgba(58, 100, 228, 0.7);
}
.wa-pin svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linejoin: round; }
.transport dt { display: flex; align-items: center; gap: 8px; }
.tr-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Colores oficiales de las líneas de Metro de Madrid */
.line.l3 { background: #ffe114; border-color: #ffe114; color: #0a0a0a; }
.line.l6 { background: #9a9999; border-color: #9a9999; color: #ffffff; }
.line { border-radius: 3px; }
/* El mapa con un marco del degradado del logo */
.map {
  outline: 1px solid rgba(58, 100, 228, 0.18);
  box-shadow: 0 24px 48px -28px rgba(58, 100, 228, 0.45);
}
.map::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 2;
  background: var(--accent-grad);
}
.map-open { z-index: 2; }

/* ---------- Logo de WhatsApp y botón del menú en degradado ---------- */
.ico-wa { fill: currentColor; stroke: none; }
.btn-wa {
  background: linear-gradient(100deg, #0f8496 0%, #2f55d6 100%);
  border-color: transparent;
  color: var(--white);
  gap: 8px;
  box-shadow: 0 6px 18px -10px rgba(47, 85, 214, 0.8);
}
.btn-wa .ico-wa { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover { background: linear-gradient(100deg, #0b7383 0%, #2649c2 100%); border-color: transparent; box-shadow: 0 8px 22px -8px rgba(47, 85, 214, 0.75); }
}
.btn-wa:active { transform: translateY(1px); }

/* ---------- Galería: toques del logo (las fotos no se tocan) ---------- */
.works { position: relative; isolation: isolate; overflow: clip; }
.works::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(30% 22% at 100% 6%, rgba(94, 227, 236, 0.30) 0%, rgba(94, 227, 236, 0) 70%),
    radial-gradient(34% 20% at 0% 96%, rgba(90, 127, 242, 0.20) 0%, rgba(90, 127, 242, 0) 70%);
}
/* Filtro activo con el mismo degradado que el botón de WhatsApp del menú */
.filter[aria-pressed="true"] {
  background: linear-gradient(100deg, #0f8496 0%, #2f55d6 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 16px -10px rgba(47, 85, 214, 0.8);
}
@media (hover: hover) and (pointer: fine) {
  .filter:not([aria-pressed="true"]):hover { border-color: var(--accent); color: var(--accent); }
}
/* Etiquetas de las fotos con un filo de color a la izquierda */
.work-label { box-shadow: inset 3px 0 0 #3a7fe2; padding-left: 12px; }
/* "Ver más fotos" con borde en degradado */
.works-more .btn-outline {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--accent-grad) border-box;
}
@media (hover: hover) and (pointer: fine) {
  .works-more .btn-outline:hover { color: var(--accent); }
}
/* Visor: contador y botones con el azul del logo */
.lightbox :focus-visible { outline-color: var(--accent-light); }

/* ---------- Reseñas ---------- */
.reviews::before {
  background:
    radial-gradient(34% 40% at 100% 20%, rgba(94, 227, 236, 0.26) 0%, rgba(94, 227, 236, 0) 70%),
    radial-gradient(32% 40% at 0% 75%, rgba(90, 127, 242, 0.18) 0%, rgba(90, 127, 242, 0) 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .reviews::before { animation: aurora 30s ease-in-out infinite alternate; }
}
.reviews-head h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--accent-grad);
}
.reviews-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.stars {
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, #f5b301, #ffcf3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.rating { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(58, 100, 228, 0.5); position: relative; }
.rating::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent-grad); }
.rating-n { font-size: 2.75rem; font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.rating .stars { font-size: 1.25rem; }
.rating-meta { margin-top: 6px; font-size: var(--fs-small); color: var(--grey); }

.reviews-grid { columns: 3 300px; column-gap: 16px; margin-top: 40px; }
.review {
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  padding: 24px 24px 22px;
  background: var(--white);
  border: 1px solid var(--line);
}
.review .stars { font-size: 1rem; }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 0.9875rem; line-height: 1.6; color: var(--ink-2); }
.review-by { display: flex; align-items: center; gap: 12px; font-size: 0.8125rem; color: var(--grey); }
.review-by strong { display: block; font-size: 0.9375rem; color: var(--ink); font-weight: 600; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: var(--white);
  font-weight: 650;
  font-size: 0.95rem;
}
.reviews-more { display: none; justify-content: center; margin-top: 8px; }
@media (max-width: 640px) {
  .js .reviews-grid:not(.is-open) .review:nth-child(n + 5) { display: none; }
  .js .reviews-more { display: flex; }
  .reviews-more[hidden] { display: none; }
  .reviews-grid { margin-top: 28px; }
  .review { padding: 20px; }
  .rating { width: 100%; }
}

/* Banda de Instagram */
.ig-band {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(100deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4) border-box;
  text-decoration: none;
  transition: box-shadow 200ms ease;
}
.ig-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.ig-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; }
.ig-text { display: flex; flex-direction: column; font-size: var(--fs-small); color: var(--grey); }
.ig-text strong { font-size: 1.0625rem; color: var(--ink); font-weight: 600; }
.ig-band .ico-arrow { margin-left: auto; }
@media (hover: hover) and (pointer: fine) {
  .ig-band:hover { box-shadow: 0 14px 32px -20px rgba(214, 36, 159, 0.55); }
  .ig-band:hover .ico-arrow { transform: translate(2px, -2px); }
}

/* Valoración en la portada */
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-small);
  color: var(--grey);
  text-decoration: none;
}
.hero-rating strong { color: var(--ink); }
.hero-rating .stars { font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .hero-rating:hover { border-color: var(--accent); }
}
@media (max-width: 900px) {
  .hero-rating { order: 2; justify-self: start; margin-top: 16px; }
}

/* Instagram en el pie */
.footer-ig { display: inline-flex; align-items: center; gap: 8px; }
.footer-ig .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Reseñas en carrusel continuo (como la web de Federico) ---------- */
.rv-marquee {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
}
.rv-track { display: flex; width: max-content; gap: 16px; padding-block: 8px 16px; }
.rv-list { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  .rv-track { animation: rv-scroll 90s linear infinite; }
  .rv-marquee:hover .rv-track,
  .rv-marquee:focus-within .rv-track { animation-play-state: paused; }
}
@keyframes rv-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 8px)); }
}
/* Sin movimiento: se desliza con el dedo o la rueda */
@media (prefers-reduced-motion: reduce) {
  .rv-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; }
  .rv-list[aria-hidden="true"] { display: none; }
  .rv-card { scroll-snap-align: start; }
}
.rv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 320px;
  flex: none;
  padding: 22px 22px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -24px rgba(58, 100, 228, 0.45);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .rv-card:hover { transform: translateY(-4px); border-color: rgba(58, 100, 228, 0.35); box-shadow: 0 18px 36px -22px rgba(58, 100, 228, 0.55); }
}
.rv-top { display: flex; align-items: center; gap: 12px; }
.rv-name { font-size: 0.9375rem; font-weight: 600; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.rv-when { font-size: 0.75rem; font-weight: 400; color: var(--grey); }
.rv-top .stars { margin-top: 4px; font-size: 0.875rem; }
.rv-body { margin: 16px 0 0; flex: 1; }
.rv-body p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); font-style: italic; }
.rv-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey);
}
.rv-src { display: inline-flex; align-items: center; gap: 5px; }
.g-logo { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .rv-card { width: 280px; padding: 18px 18px 14px; }
  .rv-marquee { margin-top: 28px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); }
  .rating { width: 100%; }
}

/* ---------- Tarjeta de Instagram (estilo perfil) ---------- */
.ig-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 28px 48px;
  align-items: center;
  margin-top: 36px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 24px 50px -34px rgba(214, 36, 159, 0.45);
  transition: box-shadow 300ms var(--ease-out), border-color 300ms ease;
}
.ig-card::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 3px;
  background: linear-gradient(90deg, #feda75, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5);
}
.ig-profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; align-items: center; }
.ig-ring {
  width: 84px;
  height: 84px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
}
.ig-ring > span { display: block; width: 100%; height: 100%; padding: 3px; border-radius: 50%; background: var(--white); }
.ig-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ig-handle { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.ig-name { margin-top: 2px; font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
.ig-desc { margin-top: 6px; font-size: var(--fs-small); color: var(--grey); }
.ig-follow {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  background: linear-gradient(100deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 10px 24px -14px rgba(221, 42, 123, 0.9);
}
.ig-follow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.ig-grid li { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .ig-card:hover { border-color: rgba(214, 41, 118, 0.35); box-shadow: 0 28px 56px -30px rgba(214, 36, 159, 0.6); }
  .ig-card:hover .ig-follow { filter: brightness(1.06); }
}
@media (max-width: 900px) {
  .ig-card { grid-template-columns: 1fr; padding: 22px; }
  .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ig-ring { width: 68px; height: 68px; }
  .ig-follow { justify-self: stretch; justify-content: center; }
}
