/* ==========================================================================
   Hestía cocinas · Home
   Paleta: marfil, carbón, piedra; rojo Hestía como acento (≤10 %).
   Tipografía: Cormorant Garamond (titulares editoriales) + Inter (texto/UI).
   ========================================================================== */

:root {
  --ivory: #f4f0e9;
  --ivory-2: #ebe5db;
  --stone: #d6cdc0;
  --stone-dark: #a99f92;
  --grey: #9a9391;          /* Gris Hestía */
  --carbon: #1d1c1a;
  --carbon-2: #2a2826;
  --ink: #23211f;
  --muted: #6d6863;
  --red: #c4174f;           /* Rojo Hestía (acento) */
  --white: #fff;

  --serif: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --section: clamp(96px, 14vw, 200px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 300 16px/1.7 var(--sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--carbon); color: var(--white); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* ---------- Tipografía ---------- */
.display {
  font: 300 clamp(2.6rem, 5.6vw, 5.4rem)/1 var(--serif);
  letter-spacing: -0.015em;
  color: var(--carbon);
}
.display em { font-style: italic; color: var(--stone-dark); }

.eyebrow {
  font: 400 12px/1.4 var(--sans);
  letter-spacing: .14em;
  color: var(--muted);
}
.eyebrow-light { color: rgba(255,255,255,.8); }

/* Índice editorial: "02 — Proyectos destacados" */
.index {
  display: flex; align-items: center; gap: 14px;
  font: 400 12px/1 var(--sans);
  letter-spacing: .12em;
  color: var(--red);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.index span { color: var(--muted); letter-spacing: .08em; display: flex; align-items: center; gap: 14px; }
.index span::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.index-light span { color: rgba(255,255,255,.7); }

.section-intro { max-width: 34rem; color: var(--muted); font-size: 1.0625rem; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 28px;
  font: 400 13px/1 var(--sans); letter-spacing: .08em;
  border: 1px solid transparent;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  white-space: nowrap;
}
.btn .arrow { position: relative; width: 28px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 42px; }
.btn .ico { width: 18px; height: 18px; }

.btn-light { background: var(--white); color: var(--carbon); }
.btn-light:hover { background: var(--red); color: var(--white); }
.btn-dark { background: var(--carbon); color: var(--white); }
.btn-dark:hover { background: var(--red); }
.btn-solid { background: var(--red); color: var(--white); }
.btn-solid:hover { background: var(--carbon); }
.btn-line { border-color: rgba(255,255,255,.55); color: var(--white); height: 44px; padding: 0 22px; }
.btn-line:hover { background: var(--white); color: var(--carbon); border-color: var(--white); }
.btn-line-dark { border-color: rgba(29,28,26,.35); color: var(--carbon); }
.btn-line-dark:hover { border-color: var(--carbon); background: var(--carbon); color: var(--white); }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  font: 400 13px/1 var(--sans); letter-spacing: .06em;
  padding-bottom: 6px; position: relative;
}
.link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after { transform: scaleX(0); }
.link-light { color: var(--white); }

/* ---------- Logo (máscara del PNG oficial para cambiar color sin redibujar) ---------- */
.logo {
  display: block;
  width: 148px; aspect-ratio: 2927 / 406.78;
  height: auto; overflow: visible;
  color: var(--logo-color, var(--white));
  fill: currentColor;
  transition: color .5s var(--ease), width .6s var(--ease);
}
.site-header.is-scrolled .logo { width: 132px; }

/* ---------- Firma con isotipo (solo en secciones seleccionadas) ---------- */
.signature {
  position: absolute; z-index: 2;
  right: var(--pad); bottom: clamp(28px, 4vw, 56px);
  width: clamp(18px, 1.6vw, 24px); aspect-ratio: 1;
  height: auto;
  color: var(--sig-color, var(--red));
  fill: currentColor;
  opacity: 0; transform: translateY(10px);
  transition: opacity 1.2s var(--ease) .3s, transform 1.2s var(--ease-out) .3s;
}
.signature.in { opacity: var(--sig-opacity, .9); transform: none; }
.styles .signature, .contact .signature { --sig-color: var(--white); --sig-opacity: .7; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--white);
  transition: background .6s var(--ease), color .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease);
}
.header-inner { display: flex; align-items: center; gap: 40px; height: 96px; transition: height .6s var(--ease); }
.brand { margin-right: auto; }
.nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a { font: 400 13px/1 var(--sans); letter-spacing: .06em; position: relative; padding: 8px 0; opacity: .9; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

.site-header.is-scrolled {
  background: rgba(244, 240, 233, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--carbon);
  box-shadow: 0 1px 0 rgba(29,28,26,.08);
  --logo-color: var(--red);
}
.site-header.is-scrolled .header-inner { height: 72px; }
.site-header.is-scrolled .btn-line { border-color: var(--carbon); color: var(--carbon); }
.site-header.is-scrolled .btn-line:hover { background: var(--carbon); color: var(--white); }
.site-header.is-hidden { transform: translateY(-100%); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--carbon); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--pad) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.mobile-menu[hidden] { display: flex; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ol li { overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu ol a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font: 300 clamp(2.2rem, 9vw, 3.4rem)/1.1 var(--serif); transform: translateY(100%); transition: transform .7s var(--ease-out); }
.menu-open .mobile-menu ol a { transform: none; }
.mobile-menu ol li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu ol li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu ol li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu ol li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu small { font: 400 11px/1 var(--sans); color: var(--red); letter-spacing: .1em; }
.mobile-menu-foot { display: grid; gap: 20px; font-size: 14px; color: rgba(255,255,255,.65); }
.mobile-menu-foot .btn { justify-content: center; }
.menu-open .site-header { background: transparent; color: var(--white); box-shadow: none; --logo-color: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .site-header .btn-line { opacity: 0; }

/* ---------- 01 Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden; background: var(--carbon); color: var(--white);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 9s linear; }
.hero-slide.is-active img { transform: scale(1.02); }
.hero-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,19,18,.45) 0%, rgba(20,19,18,0) 24%),
    linear-gradient(90deg, rgba(20,19,18,.45) 0%, rgba(20,19,18,0) 60%),
    linear-gradient(0deg, rgba(20,19,18,.72) 0%, rgba(20,19,18,.2) 42%, rgba(20,19,18,0) 62%);
}
.hero-content {
  position: absolute; inset: auto 0 0; z-index: 3;
  padding-bottom: clamp(100px, 13vh, 150px);
  left: 50%; transform: translateX(-50%);
}
.hero-title {
  font: 300 clamp(3.6rem, 11vw, 11rem)/.88 var(--serif);
  letter-spacing: -0.025em;
  margin: 18px 0 clamp(28px, 4vw, 48px);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.4s var(--ease-out); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; padding-left: .9em; }
.is-loaded .hero-title .line > span { transform: none; }
.hero-title em { font-style: italic; font-weight: 300; }
.hero-bottom { display: flex; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.hero-lede { max-width: 25rem; font-size: 1.0625rem; color: rgba(255,255,255,.88); }

.hero-meta {
  position: absolute; z-index: 3; right: var(--pad); bottom: clamp(100px, 13vh, 150px);
  display: grid; justify-items: end; gap: 16px; width: 260px;
}
.hero-caption { font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.75); text-align: right; transition: opacity .6s; }
.hero-controls { display: flex; align-items: center; gap: 18px; font: 400 12px/1 var(--sans); letter-spacing: .1em; }
.hero-count b { font-weight: 500; }
.hero-arrow { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; transition: background .4s, border-color .4s, color .4s; }
.hero-arrow:hover { background: var(--white); color: var(--carbon); border-color: var(--white); }
.hero-progress { width: 100%; height: 1px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero-progress i { display: block; height: 100%; width: 100%; background: var(--white); transform-origin: left; transform: scaleX(0); }
.hero-progress i.run { animation: progress var(--dur, 7s) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; width: 1px; height: 56px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--white); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- 02 Proyectos ---------- */
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; margin-bottom: clamp(64px, 9vw, 140px); }
.section-head .index { grid-column: 1 / -1; }
.section-head .display { grid-column: 1 / 8; }
.section-head .section-intro { grid-column: 9 / 13; }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: clamp(64px, 8vw, 120px); margin-bottom: clamp(80px, 10vw, 140px); }
.project { display: block; }
.project .frame { overflow: hidden; position: relative; background: var(--stone); }
.project .frame img { transition: transform 1.4s var(--ease-out); }
.project:hover .frame img { transform: scale(1.04); }
.p1 { grid-column: 1 / 9; }
.p1 .frame { aspect-ratio: 3 / 2; }
.p2 { grid-column: 10 / 13; margin-top: 30%; }
.p2 .frame { aspect-ratio: 4 / 5; }
.p3 { grid-column: 2 / 6; }
.p3 .frame { aspect-ratio: 3 / 4; }
.p4 { grid-column: 7 / 13; margin-top: 22%; }
.p4 .frame { aspect-ratio: 4 / 3; }

.project-info { display: grid; grid-template-columns: auto 1fr auto; column-gap: 20px; align-items: baseline; padding-top: 22px; }
.project-no { font-size: 12px; color: var(--red); letter-spacing: .1em; }
.project-info h3 { font: 400 clamp(1.6rem, 2.2vw, 2.1rem)/1.1 var(--serif); }
.project-info p { grid-column: 2 / 3; color: var(--muted); font-size: 14px; margin-top: 6px; }
.project-info .link { grid-column: 3; grid-row: 1; opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .5s var(--ease); }
.project:hover .project-info .link, .project:focus-visible .project-info .link { opacity: 1; transform: none; }

/* ---------- 03 Filosofía ---------- */
.philosophy { background: var(--ivory-2); overflow: hidden; }
.philosophy-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.philosophy-text { grid-column: 1 / 6; }
.philosophy-text .display { margin-bottom: 40px; }
.prose { display: grid; gap: 18px; color: var(--muted); max-width: 30rem; font-size: 1.0625rem; }
.pull { margin-top: 48px; padding-left: 24px; border-left: 1px solid var(--red); font: italic 300 clamp(1.5rem, 2.2vw, 2rem)/1.3 var(--serif); color: var(--carbon); }
.philosophy-media { grid-column: 7 / 13; position: relative; height: clamp(520px, 62vw, 820px); }
.philosophy-media figure { position: absolute; overflow: hidden; }

.ph-a { inset: 0 0 18% 18%; }
.ph-b { left: 0; bottom: 0; width: 42%; aspect-ratio: 2 / 3; box-shadow: 0 0 0 12px var(--ivory-2); }

/* ---------- 04 Estilos ---------- */
.styles { position: relative; background: var(--carbon); color: var(--white); }
.styles .display { color: var(--white); }
.styles .display em { color: var(--stone-dark); }
.styles-head { margin-bottom: clamp(56px, 7vw, 96px); }
.styles-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.styles-list { display: flex; flex-direction: column; justify-content: center; border-top: 1px solid rgba(255,255,255,.12); }
.styles-list li { border-bottom: 1px solid rgba(255,255,255,.12); }
.styles-list button {
  width: 100%; text-align: left; display: flex; align-items: baseline; gap: 22px;
  padding: clamp(18px, 2.2vw, 28px) 0;
  font: 300 clamp(2rem, 3.6vw, 3.6rem)/1 var(--serif);
  color: rgba(255,255,255,.32);
  transition: color .6s var(--ease), padding-left .6s var(--ease);
}
.styles-list small { font: 400 12px/1 var(--sans); letter-spacing: .08em; width: 28px; color: rgba(255,255,255,.4); transition: color .6s; }
.styles-list button:hover { color: rgba(255,255,255,.7); }
.styles-list button[aria-selected="true"] { color: var(--white); padding-left: 18px; font-style: italic; }
.styles-list button[aria-selected="true"] small { color: var(--red); font-style: normal; }
.styles-stage { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--carbon-2); }
.style-img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.style-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.style-img.is-active { opacity: 1; }
.style-img.is-active img { transform: scale(1); }
.style-caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding: 80px clamp(20px, 3vw, 40px) clamp(20px, 3vw, 36px);
  background: linear-gradient(0deg, rgba(20,19,18,.75), rgba(20,19,18,0));
}
.style-desc { max-width: 26rem; font-size: 15px; color: rgba(255,255,255,.9); transition: opacity .4s; }

/* ---------- 05 Materiales ---------- */
.materials-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-bottom: clamp(56px, 8vw, 120px); }
.materials-head .index { grid-column: 1 / -1; }
.materials-head .display { grid-column: 1 / 9; margin-bottom: 32px; }
.materials-head .section-intro { grid-column: 6 / 11; }
.mosaic {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(48px, 6vw, 92px); gap: 24px;
}
.m { position: relative; overflow: hidden; background: var(--stone); }
.m img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.m:hover img { transform: scale(1.05); }
.m figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px;
  color: var(--white); font-size: 13px; letter-spacing: .02em;
  background: linear-gradient(0deg, rgba(20,19,18,.6), rgba(20,19,18,0));
  display: grid; gap: 2px;
  opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.m figcaption b { font: italic 400 1.35rem/1.1 var(--serif); }
.m:hover figcaption, .m:focus-within figcaption { opacity: 1; transform: none; }
.m1 { grid-column: 1 / 5; grid-row: 1 / 7; }
.m2 { grid-column: 5 / 10; grid-row: 2 / 6; }
.m3 { grid-column: 10 / 13; grid-row: 1 / 5; }
.m4 { grid-column: 10 / 13; grid-row: 5 / 10; }
.m5 { grid-column: 2 / 6; grid-row: 7 / 11; }
.m6 { grid-column: 6 / 10; grid-row: 6 / 11; }

/* ---------- 06 Experiencia ---------- */
.experience { position: relative; background: var(--white); }
.experience-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.experience-figure { grid-column: 1 / 6; }
.big-number { font: 300 clamp(8rem, 18vw, 17rem)/1 var(--serif); letter-spacing: -0.04em; color: var(--carbon); display: flex; font-variant-numeric: lining-nums; align-items: flex-start; }
.big-number sup { font-size: .32em; color: var(--red); margin-left: .06em; line-height: 1; margin-top: .14em; }
.big-number-label { font: italic 300 clamp(1.3rem, 1.8vw, 1.7rem)/1.3 var(--serif); color: var(--muted); margin: 8px 0 clamp(48px, 6vw, 80px); max-width: 16rem; }
.exp-img { overflow: hidden; position: relative; aspect-ratio: 4 / 5; width: 100%; }
.experience-text { grid-column: 7 / 13; padding-top: clamp(40px, 10vw, 180px); }
.experience-text .display { margin-bottom: 32px; }
.process { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(29,28,26,.12); }
.process li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid rgba(29,28,26,.12); }
.process span { font-size: 12px; letter-spacing: .1em; color: var(--red); padding-top: 10px; }
.process h3 { font: 400 clamp(1.6rem, 2vw, 2rem)/1.1 var(--serif); margin-bottom: 8px; }
.process p { color: var(--muted); font-size: 15px; max-width: 28rem; }

/* ---------- 07 Lifestyle ---------- */
.lifestyle-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); }
.journal { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.entry .frame { overflow: hidden; margin-bottom: 24px; background: var(--stone); }
.entry .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.entry:hover .frame img { transform: scale(1.05); }
.entry-cat { font-size: 12px; letter-spacing: .1em; color: var(--red); margin-bottom: 12px; }
.entry h3 { font: 400 clamp(1.6rem, 2.1vw, 2.1rem)/1.12 var(--serif); margin-bottom: 10px; transition: color .4s; }
.entry:hover h3 { color: var(--muted); }
.entry p:last-child { color: var(--muted); font-size: 14px; }
.e1 { grid-column: 1 / 6; }
.e1 .frame { aspect-ratio: 4 / 5; }
.e2 { grid-column: 7 / 10; margin-top: 18%; }
.e2 .frame { aspect-ratio: 3 / 4; }
.e3 { grid-column: 10 / 13; margin-top: 6%; }
.e3 .frame { aspect-ratio: 3 / 4; }

/* ---------- 08 Showroom ---------- */
.showroom { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: var(--section) 0; }
.showroom-media { position: absolute; inset: 0; overflow: hidden; }
.showroom-inner { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.showroom-card { background: var(--ivory); width: min(520px, 100%); padding: clamp(32px, 4.5vw, 64px); }
.showroom-card .display { font-size: clamp(2.6rem, 4.4vw, 4.2rem); margin-bottom: 20px; }
.showroom-card > p { color: var(--muted); }
.info { margin: 32px 0 36px; display: grid; gap: 18px; border-top: 1px solid rgba(29,28,26,.12); padding-top: 28px; }
.info div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; font-size: 14px; line-height: 1.6; }
.info dt { color: var(--muted); font-size: 12px; letter-spacing: .06em; padding-top: 2px; }
.info a:hover { color: var(--red); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.showroom-extra { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 24px; }
.showroom-extra figure { overflow: hidden; aspect-ratio: 3 / 2; }
.showroom-extra figure:nth-child(1) { grid-column: 1 / 5; }
.showroom-extra figure:nth-child(2) { grid-column: 5 / 9; }
.showroom-extra img { width: 100%; height: 100%; object-fit: cover; }
.map { grid-column: 9 / 13; background: var(--stone); min-height: 220px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95) sepia(.12); display: block; }

/* ---------- Instagram ---------- */
.instagram { padding-bottom: 0; }
.insta-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.insta-handle { font: italic 300 clamp(1.8rem, 3vw, 2.8rem)/1 var(--serif); transition: color .4s; }
.insta-handle:hover { color: var(--red); }
.insta-strip { display: grid; grid-template-columns: repeat(6, 1fr); }
.insta-strip a { aspect-ratio: 1; overflow: hidden; position: relative; }
.insta-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .6s; }
.insta-strip a:hover img { transform: scale(1.06); opacity: .85; }

/* ---------- 09 Contacto ---------- */
.contact { position: relative; color: var(--white); padding: var(--section) 0; overflow: hidden; background: var(--carbon); }
.contact-media { position: absolute; inset: 0; overflow: hidden; }
.contact-media img { opacity: .5; }
.contact-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,19,18,.85) 0%, rgba(20,19,18,.55) 55%, rgba(20,19,18,.35) 100%); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.contact-text { grid-column: 1 / 7; }
.contact-text .display { color: var(--white); margin-bottom: 28px; }
.contact-text .display em { color: var(--stone); }
.contact-text > p:not(.index) { color: rgba(255,255,255,.78); max-width: 28rem; margin-bottom: 40px; }
.contact-form { grid-column: 8 / 13; background: var(--ivory); color: var(--ink); padding: clamp(28px, 3.5vw, 52px); display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { position: relative; padding-top: 18px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(29,28,26,.25); background: transparent;
  font: 300 16px/1.5 var(--sans); color: var(--ink); padding: 10px 0; border-radius: 0;
  -webkit-appearance: none; appearance: none; transition: border-color .4s;
}
.field textarea { resize: vertical; min-height: 80px; }
.field select { cursor: pointer; background: 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' fill='none' stroke='%231d1c1a'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field label { position: absolute; left: 0; top: 28px; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform .4s var(--ease), font-size .4s var(--ease), color .4s; transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-22px); font-size: 11px; letter-spacing: .06em; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.contact-form .btn { margin-top: 24px; justify-content: space-between; }
.form-status { font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form-status.ok { color: var(--carbon); }

/* ---------- Footer ---------- */
.site-footer { background: var(--carbon); color: rgba(255,255,255,.7); padding: clamp(64px, 8vw, 120px) 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,.1); }
.logo-footer { width: 184px; --logo-color: var(--white); }
.slogan { margin-top: 18px; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.site-footer .eyebrow { color: rgba(255,255,255,.4); margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer p + p { margin-top: 12px; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--white); }
.footer-base { display: flex; justify-content: space-between; padding-top: 28px; font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: .04em; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--carbon); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transform: translateY(120px); transition: transform .7s var(--ease-out), background .5s var(--ease), box-shadow .5s;
}
.wa-float.is-visible { transform: none; }
.wa-float.on-dark { background: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.wa-float:hover { background: #25d366; }
.wa-float svg { width: 24px; height: 24px; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.5s var(--ease-out); }
.reveal-img > img { transform: scale(1.15); transition: transform 1.8s var(--ease-out); }
.reveal-img.in { clip-path: inset(0 0 0 0); }
.reveal-img.in > img { transform: none; }
/* Parallax: la imagen es más alta que su marco y JS la desplaza con la propiedad `translate` */
[data-parallax] { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: translate; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header-inner { height: 80px; }
}

@media (max-width: 900px) {
  .section-head .display, .materials-head .display { grid-column: 1 / -1; margin-bottom: 24px; }
  .section-head .section-intro, .materials-head .section-intro { grid-column: 1 / -1; }

  .p1 { grid-column: 1 / -1; }
  .p2 { grid-column: 4 / -1; margin-top: 0; }
  .p3 { grid-column: 1 / 10; }
  .p4 { grid-column: 1 / -1; margin-top: 0; }

  .philosophy-text, .philosophy-media { grid-column: 1 / -1; }
  .philosophy-media { margin-top: 64px; height: 120vw; max-height: 720px; }

  .styles-wrap { grid-template-columns: 1fr; }
  .styles-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; border: 0; gap: 28px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .styles-list::-webkit-scrollbar { display: none; }
  .styles-list li { border: 0; flex: none; scroll-snap-align: start; }
  .styles-list button { font-size: 2rem; padding: 8px 0 14px; border-bottom: 1px solid transparent; }
  .styles-list button[aria-selected="true"] { padding-left: 0; border-bottom-color: var(--red); }
  .styles-list small { display: none; }
  .styles-stage { aspect-ratio: 4 / 5; }
  .style-caption { flex-direction: column; align-items: flex-start; gap: 18px; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 12px; }
  .m { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 5; }
  .m:nth-child(1), .m:nth-child(6) { grid-column: 1 / -1 !important; aspect-ratio: 3 / 2; }
  .m figcaption { opacity: 1; transform: none; padding: 40px 14px 12px; }
  .m figcaption b { font-size: 1.15rem; }
  .m figcaption { font-size: 0; }

  .experience-figure, .experience-text { grid-column: 1 / -1; }
  .experience-text { padding-top: 64px; }
  .exp-img { width: 100%; aspect-ratio: 3 / 2; }

  .journal { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .e1 { grid-column: 1 / -1; }
  .e1 .frame { aspect-ratio: 4 / 3; }
  .e2, .e3 { grid-column: auto; margin-top: 0; }

  .showroom { min-height: auto; padding: 50vw 0 0; display: block; }
  .showroom-media { height: 70vw; }
  .showroom-inner { padding: 0; }
  .showroom-card { width: 100%; }
  .showroom-extra { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
  .showroom-extra figure:nth-child(1), .showroom-extra figure:nth-child(2) { grid-column: auto; }
  .map { grid-column: 1 / -1; min-height: 280px; }

  .insta-strip { grid-template-columns: repeat(3, 1fr); }

  .contact-text, .contact-form { grid-column: 1 / -1; }
  .contact-form { margin-top: 56px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero-title .line:nth-child(2) > span { padding-left: .4em; }
  .hero-bottom { gap: 28px; }
  .hero-content { padding-bottom: 130px; }
  .hero-meta { left: var(--pad); right: var(--pad); width: auto; bottom: 36px; grid-template-columns: 1fr auto; justify-items: start; align-items: center; }
  .hero-caption { text-align: left; }
  .hero-progress { grid-column: 1 / -1; }
  .hero-arrow { width: 38px; height: 38px; }
  .scroll-cue { display: none; }
  .project-info { grid-template-columns: auto 1fr; }
  .project-info .link { display: none; }
  .p2, .p3 { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; gap: 8px; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .lifestyle-head { flex-direction: column; align-items: flex-start; }
  .journal { grid-template-columns: 1fr; }
  .e2 .frame, .e3 .frame { aspect-ratio: 4 / 3; }
  .footer-base { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-img, .reveal-img > img, .hero-title .line > span { opacity: 1; transform: none; clip-path: none; }
}
