
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --wine: #4b1230;
  --rust: #884334;
  --cocoa: #78604c;
  --rose: #dfbfb8;
  --cream: #f5eee8;
  --ink: #35262b;
  --paper: #faf6f1;
  --collection: #eadbd2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
}

/* ENCABEZADO */

.header {
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(22px, 6vw, 100px);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.logo {
  width: 180px;
  height: 85px;
  object-fit: contain;
  object-position: left center;
}

.header nav {
  display: flex;
  gap: clamp(20px, 3vw, 52px);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.header nav a:hover {
  color: var(--rust);
}

.menu {
  display: none;
}

/* PORTADA */

.hero {
  height: min(680px, 75vw);
  min-height: 460px;
  position: relative;
  background: #141c22;
  overflow: hidden;
}

.hero > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
  filter: brightness(.65);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 14, 19, .58),
    transparent 85%
  );
}

.hero-copy {
  position: absolute;
  z-index: 1;
  left: clamp(28px, 9vw, 145px);
  bottom: clamp(50px, 11vw, 130px);
  color: #fff;
}

.hero-copy > span,
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
}

.hero h1,
.section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(45px, 6.5vw, 92px);
  line-height: 1.12;
  margin: 22px 0 30px;
}

.hero h1 em {
  font-weight: 400;
}

.hero-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #fff;
  padding-bottom: 9px;
  font-size: 12px;
  letter-spacing: .08em;
}

/* SECCIONES GENERALES */

.section {
  padding: clamp(75px, 10vw, 145px)
           clamp(24px, 9vw, 150px);
}

.eyebrow {
  color: var(--rust);
  text-transform: uppercase;
}

.intro {
  max-width: 1040px;
  margin: auto;
  text-align: center;
}

.intro h2 {
  font-size: clamp(30px, 4vw, 51px);
  color: var(--wine);
  margin: 24px 0 30px;
}

.intro h2 span {
  color: var(--rose);
}

.intro > p:not(.eyebrow) {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.95;
  max-width: 750px;
  margin: 0 auto 17px;
}

.ornament {
  font-size: 27px;
  color: var(--rust);
  margin-top: 40px;
}

/* PRODUCTOS */

.products {
  background: var(--collection);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  font-size: clamp(38px, 5vw, 64px);
  color: var(--wine);
  margin: 12px 0 0;
}

.section-note {
  font-size: 14px;
  line-height: 1.6;
  color: #66565b;
  margin: 18px 0 70px;
}

/* COLECCIÓN VERTICAL */

.collection {
  display: flex;
  flex-direction: column;
  gap: clamp(100px, 13vw, 190px);
}

.editorial-piece {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: clamp(35px, 6vw, 110px);
  align-items: center;
  min-width: 0;
}

.piece-visuals {
  position: relative;
  width: 100%;
  min-width: 0;
  isolation: isolate;
}

.piece-image {
  position: absolute;
  overflow: hidden;
  background: #d3c0b6;
}

.piece-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.piece-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.piece-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 3.7vw, 59px);
  line-height: 1.17;
  font-weight: 400;
  color: var(--wine);
  margin: 20px 0 25px;
}

.piece-content > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.9;
  color: #65575a;
  margin-bottom: 30px;
}

.piece-toggle {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--wine);
  background: transparent;
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-align: left;
}

.piece-toggle span {
  font-size: 20px;
  font-weight: 400;
  transition: transform .25s ease;
}

.piece-toggle:hover span {
  transform: translate(3px, -3px);
}

.piece-extra {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(75, 18, 48, .2);
}

.piece-extra[hidden] {
  display: none;
}

.piece-extra p {
  font-size: 14px;
  line-height: 1.8;
  color: #65575a;
}

.piece-contact {
  font-size: 12px !important;
  color: var(--rust) !important;
}

/* COMPOSICIÓN 1: COLLAGE EDITORIAL */

.editorial-collage .piece-visuals {
  aspect-ratio: 4 / 5;
}

.editorial-collage .piece-image-main {
  top: 0;
  left: 0;
  width: 69%;
  height: 81%;
  z-index: 1;
}

.editorial-collage .piece-image-main img {
  object-position: center;
}

.editorial-collage .piece-image-detail {
  top: 13%;
  right: 0;
  width: 42%;
  height: 39%;
  z-index: 3;
  border: 9px solid var(--collection);
}

.editorial-collage .piece-image-detail img {
  transform: scale(1.7);
  object-position: center;
}

.editorial-collage .piece-image-secondary {
  bottom: 0;
  left: 24%;
  width: 54%;
  height: 43%;
  z-index: 2;
  border: 9px solid var(--collection);
}

.editorial-collage .piece-image-secondary img {
  object-position: 55% center;
}

/* COMPOSICIÓN 2: EDITORIAL DIVIDIDA */

.editorial-split {
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
}

.editorial-split .piece-visuals {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 4 / 5;
}

.editorial-split .piece-content {
  grid-column: 1;
  grid-row: 1;
}

.editorial-split .piece-image-main {
  top: 0;
  right: 0;
  width: 78%;
  height: 84%;
  z-index: 1;
}

.editorial-split .piece-image-main img {
  object-position: center;
}

.editorial-split .piece-image-detail {
  left: 0;
  top: 12%;
  width: 43%;
  height: 37%;
  z-index: 3;
  border: 9px solid var(--collection);
}

.editorial-split .piece-image-detail img {
  transform: scale(1.6);
}

.editorial-split .piece-image-secondary {
  bottom: 0;
  left: 12%;
  width: 50%;
  height: 37%;
  z-index: 2;
  border: 9px solid var(--collection);
}

.editorial-split .piece-image-secondary img {
  object-position: 70% center;
}

/* CONTACTO */

.contact {
  text-align: center;
  background: var(--wine);
  color: #fff;
}

.contact .eyebrow {
  color: #e5b8ae;
}

.contact h2 {
  max-width: 680px;
  margin: 20px auto;
  font-size: clamp(34px, 4.5vw, 60px);
}

.contact p:not(.eyebrow) {
  line-height: 1.7;
}

.contact button {
  border: 1px solid #d7b8bd;
  color: #f3dfe2;
  background: transparent;
  padding: 15px 24px;
  margin-top: 22px;
  cursor: not-allowed;
  opacity: .7;
}

/* PIE DE PÁGINA */

footer {
  background: var(--paper);
  padding: 55px 20px;
  text-align: center;
  color: var(--wine);
}

footer img {
  width: 155px;
  display: block;
  margin: auto;
}

footer p {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 20px 0;
}

footer small {
  color: #8a777a;
}

/* ACCESIBILIDAD */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #a97866;
  outline-offset: 4px;
}

/* TABLETS */

@media (max-width: 1050px) {
  .editorial-piece,
  .editorial-split {
    gap: 35px;
  }

  .piece-content h3 {
    font-size: clamp(30px, 4vw, 45px);
  }

  .editorial-collage .piece-image-detail,
  .editorial-collage .piece-image-secondary,
  .editorial-split .piece-image-detail,
  .editorial-split .piece-image-secondary {
    border-width: 6px;
  }
}

/* CELULARES */

@media (max-width: 700px) {
  .header {
    height: 94px;
    padding: 10px 22px;
  }

  .logo {
    width: 135px;
    height: 70px;
  }

  .menu {
    display: block;
    border: 0;
    background: transparent;
    color: var(--wine);
    font-size: 14px;
  }

  .header nav {
    display: none;
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 24px;
    flex-direction: column;
    gap: 22px;
    box-shadow: 0 10px 16px #0001;
  }

  .header nav.open {
    display: flex;
  }

  .hero {
    height: 570px;
    min-height: 0;
  }

  .hero > img {
    object-position: 47% center;
  }

  .hero-copy {
    left: 25px;
    bottom: 64px;
    right: 18px;
  }

  .hero h1 {
    font-size: clamp(39px, 11vw, 48px);
  }

  .section {
    padding: 80px 24px;
  }

  .intro h2 {
    font-size: 34px;
  }

  .section-heading h2 {
    font-size: 39px;
  }

  .section-note {
    margin-bottom: 45px;
  }

  .collection {
    gap: 100px;
  }

  .editorial-piece,
  .editorial-split {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
  }

  .piece-visuals {
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .editorial-collage .piece-visuals,
  .editorial-split .piece-visuals {
    aspect-ratio: 4 / 5;
  }

  .piece-content {
    max-width: none;
    padding: 0 3px;
  }

  .piece-content h3 {
    font-size: clamp(32px, 8vw, 43px);
    margin: 15px 0 20px;
  }

  .piece-content > p:not(.eyebrow) {
    font-size: 14px;
    margin-bottom: 23px;
  }

  .editorial-collage .piece-image-detail,
  .editorial-collage .piece-image-secondary,
  .editorial-split .piece-image-detail,
  .editorial-split .piece-image-secondary {
    border-width: 5px;
  }
}

/* PANTALLAS MUY PEQUEÑAS */

@media (max-width: 380px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .editorial-collage .piece-image-detail,
  .editorial-collage .piece-image-secondary,
  .editorial-split .piece-image-detail,
  .editorial-split .piece-image-secondary {
    border-width: 4px;
  }
}

/* MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* CORRECCIÓN DEL CATÁLOGO EN COMPUTADORAS */

@media (min-width: 701px) {

  .collection {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
  }

  .editorial-piece,
  .editorial-split {
    display: grid;
    grid-template-columns:
      minmax(0, 1.15fr)
      minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(35px, 5vw, 90px);
  }

  .editorial-piece .piece-visuals {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    overflow: visible;
  }

  .editorial-piece .piece-image {
    position: absolute;
    display: block;
    overflow: hidden;
  }

  .editorial-piece .piece-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .editorial-piece .piece-content {
    width: 100%;
    min-width: 0;
  }

  /* COLLAGE 1 */

  .editorial-collage .piece-visuals {
    grid-column: 1;
    grid-row: 1;
  }

  .editorial-collage .piece-content {
    grid-column: 2;
    grid-row: 1;
  }

  .editorial-collage .piece-image-main {
    top: 0;
    left: 0;
    width: 69%;
    height: 81%;
  }

  .editorial-collage .piece-image-detail {
    top: 13%;
    right: 0;
    width: 42%;
    height: 39%;
  }

  .editorial-collage .piece-image-secondary {
    bottom: 0;
    left: 24%;
    width: 54%;
    height: 43%;
  }

  /* COLLAGE 2 */

  .editorial-split .piece-visuals {
    grid-column: 2;
    grid-row: 1;
  }

  .editorial-split .piece-content {
    grid-column: 1;
    grid-row: 1;
  }

  .editorial-split .piece-image-main {
    top: 0;
    right: 0;
    width: 78%;
    height: 84%;
  }

  .editorial-split .piece-image-detail {
    top: 12%;
    left: 0;
    width: 43%;
    height: 37%;
  }

  .editorial-split .piece-image-secondary {
    bottom: 0;
    left: 12%;
    width: 50%;
    height: 37%;
  }
}

