/* Vene Aberturas — dirección "place-carries-it" (seed 1969636081).
   Paleta del material (aluminio negro, anodizado natural) con el azul del logo de Vene como acento. */
:root {
  --bg: #0d1016;          /* aluminio negro, apenas azulado */
  --surface: #181d26;
  --ink: #ffffff;
  --muted: #b2b9c4;
  --accent: #2062c8;      /* azul del logo */
  --accent-hover: #2b70d9;
  --accent-press: #1a52aa;
  --accent-soft: #8fb5f0;
  --accent-ink: #ffffff;
  --field-1: #1d2532;     /* grafito azulado */
  --field-1-ink: #ffffff;
  --field-2: #eceef1;     /* anodizado natural */
  --field-2-ink: #141618; /* el negro del logo */
  --field-2-muted: #4d5560;

  --font-display: "Imbue", "Times New Roman", serif;
  --font-text: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1rem + 1.4vw, 2.25rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-display: clamp(4rem, 14vw, 17.5rem);

  --m: clamp(16px, 2.4vw, 32px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --section: clamp(96px, 12vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--field-2);
  color: var(--field-2-ink);
  font: 400 var(--step-body)/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h2 {
  font: 400 var(--step-head)/0.92 var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Botón: cuadrado, un solo relleno */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 var(--step-body)/1 var(--font-text);
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); background: var(--accent-press); }
.btn-wide { width: 100%; min-height: 56px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: var(--ink);
  background: var(--bg); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-media { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s var(--ease-in-out);
}
.hero-slide.is-on { opacity: 1; }
.hero-media::after { /* scrim neutro solo bajo el texto */
  content: ""; position: absolute; inset: auto 0 0 0; height: 58%;
  background: linear-gradient(to top, rgba(8, 9, 10, 0.82), rgba(8, 9, 10, 0)); /* taste-skill-ignore: scrim neutro bajo el texto del hero */
}
.bar {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 24px var(--m) 0;
  font-size: var(--step-small); line-height: 1.35;
}
.bar a { text-decoration: none; transition: opacity var(--t-hover) ease; }
.bar-name { font-weight: 700; }
.bar-links { text-align: right; }
.bar-links a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.bar-links a:hover { text-decoration-color: currentColor; }
.hero-foot {
  position: relative; z-index: 2; padding: 0 var(--m) clamp(16px, 2vw, 24px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.hero-act {
  display: flex; flex-direction: column; align-items: flex-end; gap: 18px;
  padding-bottom: clamp(6px, 1vw, 14px); flex: 0 0 auto;
}
.hero-line { max-width: 30ch; font-size: var(--step-body); line-height: 1.45; text-align: right; }
.hero-name {
  font: 400 var(--step-display)/0.82 var(--font-display);
  text-transform: uppercase; letter-spacing: -0.01em;
  white-space: nowrap; margin-left: -0.03em;
}

/* ---------- Intro ---------- */
.intro { padding: var(--section) var(--m) calc(var(--section) * 0.7); }
.statement {
  max-width: 30ch; margin-left: calc(100% / 12 * 3);
  font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.01em;
}

/* ---------- Trabajos: dispersión con pausas ---------- */
.work {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: 0 var(--m) var(--section);
}
.work-title { grid-column: 1 / -1; margin-bottom: clamp(48px, 8vh, 96px); }
.job { margin-bottom: clamp(120px, 24vh, 260px); }
.job img { width: 100%; object-fit: cover; }
.job-a { grid-column: 1 / 7; } .job-a img { aspect-ratio: 3 / 2; }
.job-b { grid-column: 9 / 13; margin-top: -80px; } .job-b img { aspect-ratio: 4 / 5; }
.job-c { grid-column: 3 / 10; } .job-c img { aspect-ratio: 16 / 9; }
.job-name { font-size: var(--step-small); color: var(--field-2-muted); margin-bottom: 10px; }
.job-desc { margin-top: 12px; font-size: var(--step-body); max-width: 60ch; }
.work-remark {
  grid-column: 2 / 8; align-self: center;
  font-size: var(--step-lead); line-height: 1.22; max-width: 28ch;
  margin-bottom: clamp(120px, 24vh, 260px);
}
.work > .job:last-child { margin-bottom: 0; }

/* ---------- Qué hacemos: foto fija + lista activa ---------- */
.services {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: 0 var(--m) var(--section); background: var(--field-2);
}
.services-photo {
  grid-column: 1 / 6; position: sticky; top: 12vh; align-self: start;
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--field-1);
}
.svc-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 300ms ease;
}
.svc-img.is-on { opacity: 1; }
.services-list { grid-column: 7 / 13; }
.services-list h2 { margin-bottom: 48px; }
.svc-row { padding: 18px 0; cursor: pointer; }
.svc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.svc-name { font-size: var(--step-lead); line-height: 1.15; color: var(--field-2-muted); transition: color var(--t-hover) ease; }
.svc-tag { font-size: var(--step-small); color: var(--field-2-muted); white-space: nowrap; }
.svc-desc { max-width: 38ch; margin-top: 10px; font-size: var(--step-body); }
.svc-row.is-on .svc-name, .svc-row:hover .svc-name, .svc-row:focus-visible .svc-name { color: var(--field-2-ink); }
.js .svc-row .svc-desc { display: none; }
.js .svc-row.is-on .svc-desc { display: block; animation: desc-in var(--t-ui) var(--ease-out); }
@keyframes desc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.svc-pic { display: none; }

/* Teléfono: desplegables con la foto adentro, se abren solo al tocar */
@media (max-width: 900px) {
  .services-photo { display: none; }
  .svc-row { padding: 0; }
  .svc-head {
    display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 4px;
    align-items: center; padding: 16px 0; min-height: 56px;
  }
  .svc-name { grid-column: 1; grid-row: 1; color: var(--field-2-ink); }
  .svc-tag { grid-column: 1; grid-row: 2; white-space: normal; }
  .svc-head::after {
    content: "+"; grid-column: 2; grid-row: 1 / span 2;
    display: grid; place-items: center; width: 44px; height: 44px;
    font-size: 28px; line-height: 1; color: var(--field-2-ink);
    transition: transform var(--t-ui) var(--ease-out);
  }
  .svc-row.is-on .svc-head::after { transform: rotate(45deg); }
  .svc-desc { margin-top: 0; }
  .js .svc-row.is-on .svc-pic { display: block; }
  .svc-pic { aspect-ratio: 4 / 3; overflow: hidden; margin: 16px 0 12px; background: var(--field-1); }
  .svc-pic img { width: 100%; height: 100%; object-fit: cover; animation: pic-in 600ms ease both; }
}
@keyframes pic-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Armá tu abertura ---------- */
.maker {
  background: var(--bg); color: var(--ink);
  padding: var(--section) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 48px;
}
.maker-copy { grid-column: 1 / 7; }
.maker-copy p { margin-top: 20px; max-width: 46ch; color: var(--ink); }
.maker-ui {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 32px;
}
.maker-draw { grid-column: 1 / 8; background: #d9dde0; color: var(--field-2-ink); padding: clamp(20px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; min-height: 460px; }
#win { width: 100%; height: auto; max-height: 62vh; overflow: visible; }
#win .frame { transition: fill var(--t-ui) ease; }
#win .glass { transition: fill var(--t-ui) ease; }
.maker-sum { margin-top: 20px; font-size: var(--step-lead); line-height: 1.2; }
.maker-controls { grid-column: 8 / 13; display: grid; gap: 22px; align-content: start; }
.maker fieldset { border: 0; margin: 0; padding: 0; }
.maker legend, .range label, .field label {
  font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; padding: 0;
  display: flex; justify-content: space-between; width: 100%;
}
.range output { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid #3a3f44; font-size: var(--step-small); font-weight: 500; /* taste-skill-ignore: control de formulario dentro de data-ui */
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.seg label:hover span { border-color: var(--muted); }
.seg label:active span { transform: scale(0.96); }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.range input { width: 100%; accent-color: var(--accent); height: 32px; cursor: pointer; }
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: var(--surface); color: var(--ink); border: 1px solid #3a3f44; border-radius: 0;
  font: 400 var(--step-body) var(--font-text);
}
.field input::placeholder { color: #8d949a; }

/* ---------- Cómo trabajamos: fila deslizable ---------- */
.how { padding: var(--section) 0; background: var(--field-2); }
.how-top { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 var(--m); margin-bottom: 24px; }
.how-nav { display: flex; gap: 8px; }
.sq {
  width: 48px; height: 48px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--field-2-ink); color: var(--field-2); font-size: var(--step-body);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.sq:hover { background: var(--field-1); }
.sq:active { transform: scale(0.94); }
.how-bar { margin: 0 var(--m) 40px; height: 6px; background: #d3d7da; }
.how-bar span { display: block; height: 100%; width: 20%; background: var(--field-2-ink); transform-origin: left; transition: width 200ms linear; }
.how-row {
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--m) 8px; scrollbar-width: none;
}
.how-row::-webkit-scrollbar { display: none; }
.moment { flex: 0 0 280px; scroll-snap-align: start; }
.moment-cap { font-size: var(--step-body); font-weight: 700; }
.moment-txt { margin-top: 8px; font-size: var(--step-body); line-height: 1.5; color: var(--field-2-ink); min-height: 4.5em; }
.moment img { margin-top: var(--gap, 96px); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Reseña sobre fotografía ---------- */
.quote { position: relative; min-height: 90svh; color: var(--ink); display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.quote-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.quote-body {
  position: relative; width: 100%; padding: 0 var(--m) 64px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end;
}
.quote blockquote { grid-column: 1 / 9; margin: 0; font-size: var(--step-lead); max-width: 26ch; }
.quote blockquote p { line-height: 1.18; }
.quote-who { grid-column: 10 / 13; text-align: right; font-size: var(--step-body); }

/* ---------- Taller: tarjeta sobre fotografía ---------- */
.visit { position: relative; min-height: 100svh; overflow: hidden; background: var(--bg); }
.visit-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease-soft); }
.visit.in .visit-img { transform: scale(1); }
.card {
  position: absolute; top: 60px; right: var(--m); width: 380px;
  background: var(--field-2); color: var(--field-2-ink); padding: 32px;
}
.card h2 { font-size: var(--step-lead); margin-bottom: 18px; }
.card-addr { font-size: var(--step-body); line-height: 1.5; }
.hours { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 400; padding: 3px 0; }
.hours td { text-align: right; padding: 3px 0; }
.card-tel { font-size: var(--step-body); font-weight: 700; }
.card-tel a, .card-map a { text-decoration: none; }
.card-map { margin: 4px 0 22px; font-size: var(--step-body); }
.card-map a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pie: el teléfono como titular ---------- */
.foot {
  background: var(--field-1); color: var(--field-1-ink);
  min-height: 90svh; padding: 40px var(--m) 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
}
.foot-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); font-size: var(--step-small); line-height: 1.5; }
.foot-top p:nth-child(1) { grid-column: 1 / 4; font-weight: 700; }
.foot-top p:nth-child(2) { grid-column: 4 / 9; }
.foot-up { grid-column: 11 / 13; justify-self: end; text-underline-offset: 3px; }
.foot-tel {
  font: 400 var(--step-display)/0.85 var(--font-display);
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  margin-left: -0.03em; transition: color var(--t-hover) ease;
}
.foot-tel:hover { color: var(--accent-soft); }
.foot-meta { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; font-size: var(--step-small); line-height: 1.5; }
.foot-meta p:last-child { text-align: right; }
.credits { max-width: 60ch; }
.credits a { text-underline-offset: 2px; }

/* ---------- Entradas (solo con JS; sin JS todo se ve) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .job.reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); transition-delay: calc(var(--d, 0ms) + 80ms); }
.js .job.reveal.in img { clip-path: inset(0 0 0 0); }
.js .moment { opacity: 0; transform: translateX(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .moment.in { opacity: 1; transform: none; }
.js .card { opacity: 0; transform: translateY(32px); transition: opacity 900ms var(--ease-out) 200ms, transform 900ms var(--ease-out) 200ms; }
.js .visit.in .card { opacity: 1; transform: none; }
.js .hero-name { opacity: 0; transform: translateY(40px); animation: rise 1.1s var(--ease-out) 150ms forwards; }
.js .hero-act { opacity: 0; animation: fade 900ms var(--ease-out) 650ms forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Teléfono ---------- */
@media (max-width: 900px) {
  .statement { margin-left: 0; }
  .services-photo { grid-column: 1 / -1; position: relative; top: auto; aspect-ratio: 4 / 3; width: 100%; }
  .services-list { grid-column: 1 / -1; padding-top: 28px; }
  .maker-copy, .maker-draw, .maker-controls { grid-column: 1 / -1; }
  .maker-draw { min-height: 0; }
  .quote blockquote { grid-column: 1 / -1; }
  .quote-who { grid-column: 1 / -1; text-align: left; margin-top: 16px; }
  .card { position: relative; top: auto; right: auto; width: auto; margin: -80px 16px 0; }
  .visit { min-height: 0; display: flex; flex-direction: column; }
  .visit-img { position: relative; height: 70svh; }
  .foot-top { grid-template-columns: 1fr; row-gap: 12px; }
  .foot-top p, .foot-up { grid-column: 1 / -1 !important; justify-self: start; }
  .foot-meta { grid-template-columns: 1fr; gap: 8px; }
  .foot-meta p:last-child { text-align: left; }
}
@media (max-width: 640px) {
  .bar-links { display: none; }
  .bar::after { content: ""; }
  .hero-act { align-items: flex-start; gap: 16px; }
  .hero-line { text-align: left; }
  .hero-name { white-space: normal; line-height: 0.86; font-size: 21vw; }
  /* En el teléfono va solo la foto de la cocina con la laguna, encuadrada en el lago */
  .hero-slide--wide { display: none; }
  .hero-slide { object-position: 58% 50%; }
  .work { display: block; }
  .job { margin-bottom: 72px; }
  .job-a { width: 100%; } .job-b { width: 68%; margin: 0 0 72px auto; } .job-c { width: 82%; }
  .work-remark { margin-bottom: 72px; }
  .moment { flex-basis: 72vw; }
  .moment img { margin-top: calc(var(--gap, 96px) * 0.4); }
  .how-nav { display: none; }
  .row2 { grid-template-columns: 1fr; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .moment, .js .card, .js .hero-name, .js .hero-act { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .job.reveal img { clip-path: none !important; transition: none !important; }
  .hero-slide { transition: none; }
  .svc-pic img { animation: none; }
  .svc-head::after { transition: none; }
  .visit-img { transform: none; transition: none; }
}

/* Hero en tablet y teléfono: el nombre arriba, la frase y el botón debajo */
@media (max-width: 900px) {
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-act { align-items: flex-start; padding-bottom: 8px; }
  .hero-line { text-align: left; max-width: 34ch; }
}

.card-zones { font-size: var(--step-small); line-height: 1.5; margin: -8px 0 22px; color: var(--field-2-muted); }
.intro-story { max-width: 52ch; margin: 40px 0 0 calc(100% / 12 * 3); font-size: var(--step-body); }
.seg label[hidden] { display: none; }
@media (max-width: 900px) { .intro-story { margin-left: 0; } }

/* ---------- Más obras: tira que avanza sola ---------- */
.more { padding: 0 0 var(--section); background: var(--field-2); }
.more .how-top { margin-bottom: 32px; }
.more-row {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--m) 8px; scrollbar-width: none;
}
.more-row::-webkit-scrollbar { display: none; }
.more-item { flex: 0 0 auto; scroll-snap-align: start; }
.more-item img {
  height: clamp(340px, 64vh, 640px); width: auto; max-width: none; object-fit: cover;
  transition: transform 600ms var(--ease-soft);
}
.more-item:hover img { transform: scale(1.02); }
@media (max-width: 640px) {
  .more-item img { height: 58svh; }
  .more .how-nav { display: none; }
}

/* Logo */
.bar-name img { display: block; height: 72px; width: auto; }
.foot-logo { display: block; height: 64px; width: auto; margin-bottom: 14px; }
@media (max-width: 640px) { .bar-name img { height: 56px; } }

.more-ig { padding: 28px var(--m) 0; font-size: var(--step-body); }
.more-ig a { text-underline-offset: 4px; }

/* ---------- Reseñas de Google ---------- */
.reviews { background: var(--field-2); padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
.reviews-top { grid-column: 1 / 5; align-self: start; position: sticky; top: 12vh; }
.reviews-sub { margin-top: 18px; font-size: var(--step-body); max-width: 26ch; }
.reviews-sub a { text-underline-offset: 4px; }
.reviews-list { grid-column: 6 / 13; columns: 2; column-gap: 48px; }
.review { break-inside: avoid; margin-bottom: 48px; }
.review blockquote { margin: 0; }
.review blockquote p { font-size: var(--step-body); line-height: 1.5; }
.review-who { margin-top: 10px; font-size: var(--step-small); color: var(--field-2-muted); }
@media (max-width: 900px) {
  .reviews-top { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .reviews-list { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .reviews-list { columns: 1; } .review { margin-bottom: 32px; } }
