/* =========================================================================
   ING. EZEQUIEL DI LAUDO — Acústica de autor & altavoces de bocina a medida
   Sistema de diseño · "quiet luxury" / warm-minimalist
   Vanilla CSS — sin build step
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Base cálida casi-negra (espresso / charcoal) */
  --bg:          #14110d;
  --bg-soft:     #1a1611;
  --surface:     #201b15;
  --surface-2:   #2a241b;

  /* Texto */
  --text:        #ece5d8;
  --text-strong: #f8f3e9;
  --muted:       #a99c86;
  --muted-2:     #857a67;

  /* Acento metálico (latón) — único color de acento, usado con mesura */
  --brass:       #b08d57;
  --brass-soft:  #cca972;
  --brass-deep:  #8a6c3e;

  /* Madera (para detalles, no fondos saturados) */
  --wood:        #7a5230;

  /* Líneas / hairlines */
  --line:        rgba(176, 141, 87, 0.18);
  --line-soft:   rgba(236, 229, 216, 0.08);

  /* Tipografía */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Ritmo */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 12vw, 168px);

  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection { background: rgba(176, 141, 87, 0.28); color: var(--text-strong); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 300;
  line-height: 1.02;
}

h2.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 300;
}

h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  line-height: 1.6;
  color: var(--text);
  font-weight: 300;
}

/* Etiqueta / eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}

.muted { color: var(--muted); }
.serif { font-family: var(--serif); }

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

section { position: relative; }
.section-pad { padding-block: var(--section); }

.stack-sm > * + * { margin-top: 0.8rem; }
.stack    > * + * { margin-top: 1.4rem; }
.stack-lg > * + * { margin-top: 2.4rem; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 80px);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.align-center { align-items: center; }

/* Separador hairline */
.rule { height: 1px; background: var(--line-soft); border: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.05em 1.9em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--brass);
  color: #1a130a;
  border-color: var(--brass);
}
.btn-primary:hover {
  background: var(--brass-soft);
  border-color: var(--brass-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--text-strong);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.link-arrow:hover { border-color: var(--brass); gap: 0.9em; }
.link-arrow svg { width: 13px; height: 13px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(20, 17, 13, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 84px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand .brand-pre {
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 5px;
}
.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.5vw, 26px);
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text-strong); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-tools { display: flex; align-items: center; gap: 14px; }
.nav-cta { font-size: 0.72rem; padding: 0.85em 1.3em; letter-spacing: 0.1em; }

/* Toggle de idioma */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 5px 9px;
  letter-spacing: inherit;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.lang-toggle button.active {
  color: #1a130a;
  background: var(--brass);
}

.nav-cta { display: inline-flex; }

/* Hamburguesa */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease), visibility 0.6s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 300;
  color: var(--text-strong);
  padding: 0.18em 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:hover { color: var(--brass); }
.mobile-menu .mm-cta { margin-top: 2.4rem; }

/* ---------- Media / slots de imagen (placeholders etiquetados) ---------- */
.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(176,141,87,0.08), rgba(122,82,48,0.05)),
    var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.media::before {
  /* textura sutil tipo grano */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(236,229,216,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.5;
}
.media[data-label]::after {
  content: "◳  " attr(data-label);
  position: absolute;
  inset: auto 14px 12px 14px;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--muted-2);
  text-transform: uppercase;
  text-align: left;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.media.has-img::after, .media.has-img::before { content: none; }
.media img { width: 100%; height: 100%; object-fit: cover; }

.ratio-21x9  { aspect-ratio: 21 / 9; }
.ratio-16x9  { aspect-ratio: 16 / 9; }
.ratio-4x3   { aspect-ratio: 4 / 3; }
.ratio-3x4   { aspect-ratio: 3 / 4; }
.ratio-1x1   { aspect-ratio: 1 / 1; }
.ratio-tall  { aspect-ratio: 2 / 3; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media .media { height: 100%; border: 0; border-radius: 0; }
.hero-media .media::after {
  inset: auto 24px 24px 24px;
  border-top-color: rgba(236,229,216,0.12);
  color: var(--muted-2);
}
.hero::after {
  /* viñeta para legibilidad del texto */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,17,13,0.55) 0%, rgba(20,17,13,0.15) 35%, rgba(20,17,13,0.85) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(20,17,13,0.6), transparent 70%);
}
.hero-inner {
  padding-block: clamp(40px, 10vh, 120px) clamp(56px, 12vh, 130px);
  max-width: 920px;
}
.hero .display { margin-block: 0.4em 0.5em; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2.6rem;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue .line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--brass), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(42px); opacity: 0; }
}

/* ---------- Tarjetas / servicios ---------- */
.card {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
}
.card:hover {
  border-color: var(--line);
  background: var(--surface);
  transform: translateY(-3px);
}
.card .idx {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--brass);
  letter-spacing: 0.1em;
}
.card h3 { margin-block: 1.2rem 0.8rem; }

/* Lista de pasos (método) */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step .step-no {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 300;
  color: var(--brass);
  line-height: 1;
}
.step .step-no::before {
  counter-increment: step;
  content: "0" counter(step);
}
.step h3 { margin-bottom: 0.6rem; }

/* ---------- Feature alterna (texto + imagen) ---------- */
.feature { align-items: center; }
.feature .feature-media { width: 100%; }
@media (min-width: 861px) {
  .feature.reverse .feature-text { order: 2; }
  .feature.reverse .feature-media { order: 1; }
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.gallery .g-item { position: relative; }
.gallery .span-7 { grid-column: span 7; }
.gallery .span-5 { grid-column: span 5; }
.gallery .span-6 { grid-column: span 6; }
.gallery .span-4 { grid-column: span 4; }
.gallery .span-8 { grid-column: span 8; }
.gallery .span-12 { grid-column: span 12; }

.project-card { display: block; }
.project-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 1rem;
  padding-bottom: 0.4rem;
}
.project-card .meta h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.project-card .tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}
.project-card .meta + p { color: var(--muted); font-size: 0.95rem; }
.badge-concept {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-strong);
  background: rgba(20,17,13,0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}

/* ---------- Specs ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.spec {
  background: var(--bg);
  padding: clamp(20px, 2.4vw, 32px);
}
.spec dt {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.6rem;
}
.spec dd {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 300;
  color: var(--text-strong);
}
.spec dd small {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------- Cita / pull quote ---------- */
.pullquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.22;
  color: var(--text-strong);
  max-width: 22ch;
}
.pullquote .accent { color: var(--brass); font-style: italic; }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--brass); }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.95em 1.05em;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b08d57' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1em center;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-note { font-size: 0.82rem; color: var(--muted-2); }
.form-status {
  font-size: 0.9rem;
  padding: 0.9em 1.1em;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: var(--brass-soft); border-color: var(--brass); background: rgba(176,141,87,0.06); }

/* ---------- Contacto directo ---------- */
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line-soft);
}
.contact-line:last-child { border-bottom: 1px solid var(--line-soft); }
.contact-line .k {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-line .v { font-family: var(--serif); font-size: 1.4rem; color: var(--text-strong); }
.contact-line .v:hover { color: var(--brass); }
.todo { color: var(--brass-deep); font-style: italic; font-family: var(--sans); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .display { margin-bottom: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(56px, 8vw, 96px) 40px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.4rem;
}
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 0.7rem; }
.footer-col a { color: var(--muted); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--text-strong); }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand p { color: var(--muted); margin-top: 1.2rem; max-width: 34ch; font-size: 0.95rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding-top: clamp(140px, 20vh, 220px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-hero .display { margin-top: 0.5rem; max-width: 16ch; }
.page-hero .lead { margin-top: 1.6rem; max-width: 56ch; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-sm { max-width: 46ch; }
.maxw-md { max-width: 60ch; }
.mt-lg { margin-top: clamp(36px, 5vw, 64px); }
.mt-md { margin-top: clamp(24px, 3vw, 40px); }
.hide { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feature { gap: 32px; }
  .gallery [class*="span-"] { grid-column: span 12; }
  .spec-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
