:root {
  --azul: #121b2a;
  --azul-2: #1b263a;
  --plata: #c4c7cc;
  --papel: #f5f1ea;
  --papel-2: #ebe5da;
  --tinta: #1d1f24;
  --gris: #6c6f75;
  --oro: #a98d5d;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ancho: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: #fff;
  color: var(--tinta);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
em { font-style: italic; color: var(--gris); }

.sobre {
  font: 400 .72rem/1.4 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--oro);
  margin: 0 0 1rem;
}

.boton {
  display: inline-block;
  padding: .95em 2.2em;
  border: 1px solid var(--azul);
  background: var(--azul);
  color: #fff;
  font: 400 .75rem/1 var(--sans);
  letter-spacing: .25em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.boton:hover { background: transparent; color: var(--azul); }
.boton-claro { background: transparent; border-color: var(--plata); color: #fff; }
.boton-claro:hover { background: var(--plata); color: var(--azul); }

/* Barra superior */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 clamp(16px, 4vw, 48px);
  color: #fff;
  transition: background .4s, box-shadow .4s;
}
.barra.solida { background: var(--azul); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.barra-marca { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.barra-marca img { filter: brightness(0) invert(.85); }
.barra-marca span { font: 400 .78rem var(--sans); letter-spacing: .38em; text-transform: uppercase; }
.barra-derecha { display: flex; align-items: center; gap: 1.75rem; }
.barra nav { display: flex; gap: 2rem; align-items: center; }
.idiomas { display: flex; border: 1px solid rgba(255,255,255,.35); }
.idiomas button {
  background: none; border: 0; color: #fff; cursor: pointer; opacity: .6;
  font: 400 .68rem var(--sans); letter-spacing: .18em; padding: .55em .75em;
}
.idiomas button[aria-pressed="true"] { opacity: 1; background: rgba(255,255,255,.14); }
.idiomas button:hover { opacity: 1; }
.barra nav a {
  font: 400 .72rem var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; opacity: .85;
}
.barra nav a:hover { opacity: 1; }
.nav-cta { border: 1px solid rgba(255,255,255,.4); padding: .6em 1.2em; }
.barra-menu {
  display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  font: 400 .7rem var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: .6em 1em;
}

/* Portada */
.portada {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  background: var(--azul); color: #fff; overflow: hidden;
}
.portada-fondo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  opacity: .22; filter: grayscale(.4);
}
.portada::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(18,27,42,.3), var(--azul) 75%);
}
.portada-contenido { position: relative; z-index: 1; padding: 96px 16px 64px; }
.portada-logo { width: min(340px, 70vw); height: auto; margin: 0 auto 1.5rem; }
.lema { font: italic 400 clamp(1.4rem, 3vw, 2rem)/1.3 var(--serif); color: var(--plata); margin: 0 0 1.5rem; }
.portada .sobre { color: var(--plata); opacity: .8; margin-bottom: 2.5rem; }
.portada-pie {
  position: absolute; bottom: 24px; left: 0; right: 0; z-index: 1; margin: 0;
  font: 400 .68rem var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--plata); opacity: .6;
}

/* Historia */
.historia { background: var(--papel); }
.capitulo { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.capitulo figure { margin: 0; height: 100%; }
.capitulo figure img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.capitulo-texto { padding: clamp(40px, 6vw, 96px); max-width: 620px; }
.capitulo-invertido figure { order: 2; }
.bajada { font: italic 400 1.3rem var(--serif); color: var(--gris); margin-top: -.3em; }

/* Concepto */
.concepto {
  background: var(--azul); color: #fff; text-align: center;
  padding: clamp(64px, 10vw, 140px) 16px;
}
.concepto h2 { color: #fff; }
.concepto em { color: var(--plata); }
.concepto p:last-child { max-width: 760px; margin: 0 auto; color: var(--plata); font-size: 1.05rem; }

/* Secciones */
.seccion { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); max-width: var(--ancho); margin: 0 auto; }
.seccion-papel { max-width: none; background: var(--papel); }
.seccion-papel > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.encabezado { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.encabezado p:last-child:not(.sobre) { color: var(--gris); }

/* Looks */
.looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.5vw, 20px); }
.look { all: unset; cursor: pointer; display: block; position: relative; overflow: hidden; background: var(--papel-2); }
.look img { aspect-ratio: 2/3; object-fit: cover; width: 100%; transition: transform .8s ease; }
.look:hover img, .look:focus-visible img { transform: scale(1.04); }
.look:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
.look-pie { display: block;
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(10,14,22,.75)); color: #fff;
}
.look-num { font: 400 .7rem var(--sans); letter-spacing: .3em; color: var(--plata); }
.look-titulo { display: block; font: 400 1.35rem/1.2 var(--serif); }

/* Colección */
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.filtro {
  background: none; border: 1px solid #cfc7b8; color: var(--tinta); cursor: pointer;
  padding: .55em 1.1em; font: 400 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.filtro[aria-selected="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
.producto { all: unset; cursor: pointer; display: block; width: 100%; background: #fff; }
.producto img { aspect-ratio: 800/584; object-fit: cover; width: 100%; height: auto; }
.producto-info { display: block; padding: .8rem .9rem 1rem; }
.producto-ref { font: 400 .65rem var(--sans); letter-spacing: .2em; color: var(--oro); }
.producto-nombre { display: block; font: 500 1.15rem/1.25 var(--serif); margin-top: .2rem; }
.producto:hover { box-shadow: 0 10px 30px rgba(18,27,42,.1); }
.producto:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
.nota { text-align: center; color: var(--gris); font-size: .85rem; margin-top: 2.5rem; }

/* Líneas y casas */
.lineas, .casas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #e3ddd2; }
.casas { grid-template-columns: repeat(4, 1fr); }
.lineas > div, .casas > div { padding: 2rem 1.75rem; border-bottom: 1px solid #e3ddd2; }
.lineas > div:not(:nth-child(3n)), .casas > div:not(:nth-child(4n)) { border-right: 1px solid #e3ddd2; }
.lineas p, .casas p { color: var(--gris); margin: 0; }
.casas .pronto {
  display: inline-block; margin-bottom: .9rem; padding: .3em .8em;
  border: 1px solid var(--oro); color: var(--oro);
  font: 400 .62rem/1.4 var(--sans); letter-spacing: .25em; text-transform: uppercase;
}

/* Aureus */
.aureus { display: grid; grid-template-columns: 1fr 1fr; background: var(--azul); color: #fff; }
.aureus-imagen img { width: 100%; height: 100%; object-fit: cover; max-height: 900px; }
.aureus-texto { padding: clamp(40px, 6vw, 96px); align-self: center; }
.aureus-texto p { color: var(--plata); }
.aureus-texto ul { list-style: none; padding: 0; margin: 2rem 0 2.5rem; }
.aureus-texto li { padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.12); color: var(--plata); }
.aureus-texto strong { color: #fff; font-weight: 400; }

/* Lista privada */
.lista {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
  background: var(--papel); padding: clamp(64px, 9vw, 120px) clamp(16px, 6vw, 96px);
}
.lista-monograma { margin-bottom: 1.5rem; }
.lista-texto p { color: var(--gris); max-width: 460px; }
.formulario { display: grid; gap: 1.1rem; }
.formulario label { display: grid; gap: .35rem; font: 400 .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.formulario input, .formulario select {
  font: 300 1rem var(--sans); color: var(--tinta);
  padding: .8em .9em; border: 1px solid #d6cebf; background: #fff; border-radius: 0;
}
.formulario input:focus, .formulario select:focus { outline: none; border-color: var(--azul); }
.formulario .boton { justify-self: start; margin-top: .5rem; }
.oculto { position: absolute; left: -9999px; }

/* Pie */
.pie { background: var(--azul); color: var(--plata); text-align: center; padding: 80px 16px 40px; }
.pie img { margin: 2.5rem auto 1rem; }
.pie-cita { font: italic 400 clamp(1.3rem, 2.6vw, 1.8rem)/1.4 var(--serif); color: #fff; margin: 0; }
.pie a { text-decoration: none; border-bottom: 1px solid rgba(196,199,204,.4); }
.pie-legal { font-size: .75rem; opacity: .6; max-width: 640px; margin: 2.5rem auto 0; }

/* Ventana de detalle */
.ventana {
  border: 0; padding: 0; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: #fff; color: var(--tinta);
}
.ventana::backdrop { background: rgba(10,14,22,.7); }
.ventana-cerrar {
  position: absolute; top: 8px; right: 12px; z-index: 2; background: rgba(255,255,255,.85);
  border: 0; font: 300 2rem/1 var(--sans); cursor: pointer; width: 44px; height: 44px;
}
.detalle { display: grid; grid-template-columns: 1fr 1fr; }
.detalle > img { width: 100%; height: 100%; object-fit: cover; background: var(--papel); }
.detalle-producto > img { object-fit: contain; align-self: center; height: auto; }
.detalle-texto { padding: 2.5rem 2.25rem; overflow-y: auto; }
.detalle-texto h3 { font-size: 2rem; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; margin: 1.5rem 0; font-size: .92rem; }
.datos dt { font: 400 .66rem/2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.datos dd { margin: 0; }
.piezas { list-style: none; padding: 0; margin: 1.25rem 0; }
.piezas li { border-top: 1px solid #ebe5da; }
.piezas button {
  all: unset; cursor: pointer; display: flex; gap: 1rem; align-items: center; width: 100%; padding: .55rem 0;
}
.piezas button:hover span:last-child { text-decoration: underline; }
.piezas img { width: 44px; height: 44px; object-fit: cover; }
.piezas .producto-ref { min-width: 4.5em; }
.detalle-aureus { font-size: .9rem; color: var(--gris); border-left: 2px solid var(--oro); padding-left: 1rem; }

@media (max-width: 960px) {
  .looks { grid-template-columns: repeat(3, 1fr); }
  .lineas, .casas { grid-template-columns: repeat(2, 1fr); }
  .lineas > div, .casas > div { border-right: 0 !important; }
  .lineas > div:nth-child(odd), .casas > div:nth-child(odd) { border-right: 1px solid #e3ddd2 !important; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .barra-menu { display: block; }
  .barra-derecha { gap: .6rem; }
  .barra-marca span { display: none; }
  .barra nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--azul); padding: .5rem 0 1.5rem; display: none;
  }
  .barra nav.abierto { display: flex; }
  .barra nav a { padding: .9rem; }
  .barra { background: var(--azul); }
  .capitulo, .aureus, .lista, .detalle { grid-template-columns: 1fr; }
  .capitulo-invertido figure { order: 0; }
  .capitulo figure img { min-height: 0; aspect-ratio: 3/2; }
  .aureus-imagen img { aspect-ratio: 4/5; }
  .looks { grid-template-columns: repeat(2, 1fr); }
  .productos { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .producto-nombre { font-size: 1rem; }
  .lineas, .casas { grid-template-columns: 1fr; }
  .lineas > div, .casas > div { border-right: 0 !important; padding: 1.5rem .5rem; }
  .detalle > img { max-height: 55vh; }
  .detalle-texto { padding: 1.75rem 1.25rem; }
}
