/* ============================================================
   barilocheapart.com — piel Athena/Hermes
   Instrument Serif · Inter · JetBrains Mono
   crema #F7F6F1 · tinta #14140F · petróleo #2F5169 · ocre #A9773F
   ============================================================ */

:root {
  --crema: #F7F6F1;
  --crema-2: #F5EDE1;
  --tinta: #14140F;
  --tinta-54: rgba(20, 20, 15, 0.54);
  --tinta-30: rgba(20, 20, 15, 0.30);
  --hairline: rgba(20, 20, 15, 0.14);
  --petroleo: #2F5169;
  --petroleo-deep: #244054;
  --ocre: #A9773F;
  --blanco: #FFFFFF;
  --crema-12: rgba(247, 246, 241, 0.12);
  --crema-60: rgba(247, 246, 241, 0.60);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 84rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::selection { background: var(--ocre); color: var(--crema); }

/* ---------- utilidades tipográficas ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocre);
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.eyebrow::before {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: var(--ocre);
  flex: none;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem var(--gutter);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-head.scrolled {
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--tinta);
  text-decoration: none;
  line-height: 1;
}
.wordmark em { color: var(--ocre); font-style: italic; }

.head-cta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crema);
  background: var(--tinta);
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.head-cta:hover { background: var(--petroleo); transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 7rem var(--gutter) 4rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3.4rem, 8.2vw, 7.25rem);
  max-width: 9ch;
}
.hero-title em {
  font-style: italic;
  color: var(--petroleo);
}

.hero-sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--tinta-54);
  max-width: 34ch;
  line-height: 1.6;
}
.hero-sub strong { color: var(--tinta); font-weight: 600; }

.hero-media {
  position: relative;
  overflow: hidden;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--crema) 0%, transparent 18%);
  pointer-events: none;
}

.hero-note {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crema);
  background: rgba(20, 20, 15, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

/* botón principal */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crema);
  background: var(--ocre);
  border: none;
  cursor: pointer;
  padding: 1.15rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover {
  background: var(--tinta);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(20, 20, 15, 0.45);
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* strip de datos bajo el hero copy */
.hero-strip {
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 1.6rem;
  margin-top: 0.5rem;
}
.hero-strip .dato { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-strip .n {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--tinta);
}
.hero-strip .l {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tinta-54);
}

/* ---------- secciones genéricas ---------- */

section { position: relative; }
.section-pad { padding-block: clamp(5rem, 11vw, 9rem); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 46rem;
}
.section-head h2 {
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
}

/* ---------- la prueba: números ---------- */

.numeros {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hairline);
}
.numero {
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  padding: 2.2rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.numero:first-child { border-left: 1px solid var(--hairline); }
.numero .big {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--petroleo);
  line-height: 1;
}
.numero .big sup { font-size: 0.45em; color: var(--ocre); }
.numero .label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinta-54);
  line-height: 1.5;
}

/* ---------- muro de reviews ---------- */

.muro {
  columns: 3;
  column-gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.review {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background: var(--blanco);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1.8rem 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.review.tinta { background: var(--tinta); border-color: var(--tinta); color: var(--crema); }
.review.petroleo { background: var(--petroleo); border-color: var(--petroleo); color: var(--crema); }
.review.crema2 { background: var(--crema-2); }

.review blockquote {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.32;
}
.review.tinta blockquote em, .review.petroleo blockquote em { color: var(--crema-60); }

.review .quien {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinta-54);
}
.review.tinta .quien, .review.petroleo .quien { color: var(--crema-60); }
.review .score { color: var(--ocre); font-weight: 700; white-space: nowrap; }

.verificadas {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--tinta-54);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.verificadas .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ocre); flex: none; }

/* ---------- banda de fotos ---------- */

.banda {
  display: flex;
  gap: 1rem;
  padding-block: 1rem;
  will-change: transform;
}
.banda figure {
  flex: none;
  width: clamp(16rem, 30vw, 26rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}
.banda figure.alta { aspect-ratio: 3 / 4; width: clamp(13rem, 22vw, 19rem); }
.banda img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.banda figure:hover img { transform: scale(1.04); }

/* ---------- cómo funciona ---------- */

.como { background: var(--petroleo); color: var(--crema); }
.como .eyebrow { color: var(--crema-60); }
.como .eyebrow::before { background: var(--ocre); }
.como .section-head h2 { color: var(--crema); }
.como .section-head h2 em { font-style: italic; color: var(--ocre); }
.como .intro { color: var(--crema-60); font-size: 1.15rem; max-width: 44ch; }

.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--crema-12);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.paso {
  padding: 2.6rem 2rem 2.6rem 0;
  border-right: 1px solid var(--crema-12);
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.paso + .paso { padding-left: 2rem; }
.paso:last-child { border-right: none; }
.paso .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ocre);
}
.paso h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.15;
}
.paso p { color: var(--crema-60); font-size: 0.975rem; }
.paso p strong { color: var(--crema); font-weight: 600; }

.como .btn { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.como .btn:hover { background: var(--crema); color: var(--tinta); }

/* ---------- consulta / formulario ---------- */

.consulta { background: var(--crema-2); }

.form-shell {
  max-width: 38rem;
  margin-inline: auto;
  background: var(--blanco);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 30px 60px -40px rgba(20, 20, 15, 0.35);
}

.progreso {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}
.progreso .tramo {
  flex: 1;
  height: 2px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.progreso .tramo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ocre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.progreso .tramo.hecho::after { transform: scaleX(1); }
.progreso .txt {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinta-54);
  white-space: nowrap;
}

.paso-form { display: none; }
.paso-form.activo { display: block; animation: pasoIn 0.45s ease both; }
@keyframes pasoIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.paso-form h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 1.6rem;
}
.paso-form h3 em { color: var(--petroleo); font-style: italic; }

.campo { margin-bottom: 1.3rem; }
.campo label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinta-54);
  margin-bottom: 0.5rem;
}
.campo input, .campo select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--tinta);
  background: var(--crema);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}
.campo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2314140F' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.campo input:focus, .campo select:focus {
  outline: none;
  border-color: var(--petroleo);
  box-shadow: 0 0 0 3px rgba(47, 81, 105, 0.15);
}
.campo .ayuda {
  font-size: 0.78rem;
  color: var(--tinta-54);
  margin-top: 0.4rem;
}
.campo .error-msg {
  display: none;
  font-size: 0.78rem;
  color: #B3382C;
  margin-top: 0.4rem;
}
.campo.con-error input, .campo.con-error select { border-color: #B3382C; }
.campo.con-error .error-msg { display: block; }

.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.btn-volver {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--tinta-54);
  cursor: pointer;
  padding: 0.6rem 0;
  transition: color 0.2s ease;
}
.btn-volver:hover { color: var(--tinta); }

.wa-aviso {
  font-size: 0.8rem;
  color: var(--tinta-54);
  margin-top: 1.2rem;
  text-align: center;
}

/* ---------- footer ---------- */

.pie {
  background: var(--tinta);
  color: var(--crema-60);
  padding: 3.5rem var(--gutter) 2.5rem;
}
.pie-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.pie .wordmark { color: var(--crema); font-size: 1.6rem; }
.pie-datos {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 2;
  text-align: right;
}
.pie-datos a { color: var(--crema); text-decoration: none; border-bottom: 1px solid var(--ocre); }

/* ---------- animaciones de entrada (GSAP toggle) ---------- */

.reveal { opacity: 0; transform: translateY(28px); }
html.no-js .reveal, html.reduced .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 52svh; order: -1; }
  .hero-media img { height: 118%; }
  .hero-media::after { background: linear-gradient(0deg, var(--crema) 0%, transparent 22%); }
  .hero-copy { padding-top: 2.5rem; }
  .numeros { grid-template-columns: repeat(2, 1fr); }
  .numero:first-child { border-left: none; }
  .numero { border-right: none; border-left: none; padding-inline: 0.25rem; }
  .muro { columns: 2; }
  .pasos { grid-template-columns: 1fr; }
  .paso { border-right: none; border-bottom: 1px solid var(--crema-12); padding: 2rem 0; }
  .paso + .paso { padding-left: 0; }
  .paso:last-child { border-bottom: none; }
  .pie-inner { flex-direction: column; align-items: flex-start; }
  .pie-datos { text-align: left; }
}

@media (max-width: 620px) {
  .eyebrow { font-size: 0.6rem; letter-spacing: 0.16em; }
  .hero-note { font-size: 0.55rem; right: 1rem; bottom: 1rem; max-width: 70vw; text-align: right; }
  .muro { columns: 1; }
  .fila-2 { grid-template-columns: 1fr; }
  .hero-strip { gap: 1.5rem; }
  .head-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
