/* =========================
   FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* =========================
   VARIABLES
========================= */
:root {
  --bg: #f5f1ec;
  --text: #151515;
  --muted: #6d6a67;
  --line: #e7e1db;
  --accent: #b43a25;
  --white: #ffffff;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 26px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  transition: 0.3s;
}

.logo:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: 0.3s;
}

/* hover + underline */
.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* =========================
   HERO
========================= */
.living-room-hero {
  padding: 24px 0 40px;
}

.living-room-hero-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

.living-room-small-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: #8d8883;
  margin-bottom: 18px;
}

.living-room-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.88;
  font-weight: 600;
}

.living-room-hero-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 45px;
}

.living-room-description {
  max-width: 380px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

/* =========================
   PRODUCTS
========================= */
.living-room-products {
  padding-bottom: 70px;
}

.living-room-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
}

.living-room-product-card {
  display: flex;
  flex-direction: column;
  transition: 0.35s;
}

.living-room-product-card:hover {
  transform: translateY(-8px);
}

.living-room-product-card-link {
  text-decoration: none;
  color: inherit;
}

/* IMAGE */
.living-room-image-frame {
  background: #efebe7;
  padding: 22px;
  margin-bottom: 18px;
  position: relative;
  transition: 0.35s;
}

.living-room-product-card:hover .living-room-image-frame {
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  transform: scale(1.015);
}

.living-room-product-image {
  width: 100%;
  height: 390px;
  object-fit: contain;
  transition: 0.4s;
}

.living-room-product-card:hover .living-room-product-image {
  transform: scale(1.04);
}

.living-room-image-frame-tall .living-room-product-image {
  height: 500px;
}

/* BADGE */
.living-room-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.55rem;
  padding: 5px 8px;
  transition: 0.3s;
}

.living-room-product-card:hover .living-room-badge {
  transform: translateY(-2px);
}

/* INFO */
.living-room-product-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.living-room-product-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.living-room-product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  transition: 0.3s;
}

.living-room-product-card:hover .living-room-product-name {
  color: var(--accent);
}

.living-room-product-price {
  color: var(--accent);
}

.living-room-product-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =========================
   ESTILO CARDS TOP
========================= */
.living-room-product-grid a:nth-child(-n+3) .living-room-image-frame {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.living-room-product-grid a:nth-child(-n+3) .living-room-product-image {
  height: 300px;
  object-fit: cover;
}

.living-room-product-grid a:nth-child(-n+3) .living-room-product-description {
  display: none;
}

/* stagger */
.living-room-product-grid a:nth-child(1) { margin-top: -10px; }
.living-room-product-grid a:nth-child(2) { margin-top: 40px; }
.living-room-product-grid a:nth-child(3) { margin-top: -5px; }

/* =========================
   CARDS 4, 5 Y 6 IGUALES A LAS DE ARRIBA
========================= */

/* quitar marco grande y fondo */
.living-room-product-grid a:nth-child(4) .living-room-image-frame,
.living-room-product-grid a:nth-child(5) .living-room-image-frame,
.living-room-product-grid a:nth-child(6) .living-room-image-frame,
.living-room-product-grid a:nth-child(7) .living-room-image-frame,
.living-room-product-grid a:nth-child(8) .living-room-image-frame,
.living-room-product-grid a:nth-child(9) .living-room-image-frame {
  padding: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 18px;
}

/* mismas dimensiones visuales que arriba */
.living-room-product-grid a:nth-child(4) .living-room-product-image,
.living-room-product-grid a:nth-child(5) .living-room-product-image,
.living-room-product-grid a:nth-child(6) .living-room-product-image,
.living-room-product-grid a:nth-child(7) .living-room-product-image,
.living-room-product-grid a:nth-child(8) .living-room-product-image,
.living-room-product-grid a:nth-child(9) .living-room-product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* ocultar descripción si quieres que queden iguales a las primeras 3 */
.living-room-product-grid a:nth-child(4) .living-room-product-description,
.living-room-product-grid a:nth-child(5) .living-room-product-description,
.living-room-product-grid a:nth-child(6) .living-room-product-description,
.living-room-product-grid a:nth-child(7) .living-room-product-description,
.living-room-product-grid a:nth-child(8) .living-room-product-description,
.living-room-product-grid a:nth-child(9) .living-room-product-description  {
  display: none;
}

/* info más compacta */
.living-room-product-grid a:nth-child(4) .living-room-product-info,
.living-room-product-grid a:nth-child(5) .living-room-product-info,
.living-room-product-grid a:nth-child(6) .living-room-product-info,
.living-room-product-grid a:nth-child(7) .living-room-product-info,
.living-room-product-grid a:nth-child(8) .living-room-product-info,
.living-room-product-grid a:nth-child(9) .living-room-product-info {
  gap: 6px;
}

/* nombre igual al de arriba */
.living-room-product-grid a:nth-child(4) .living-room-product-name,
.living-room-product-grid a:nth-child(5) .living-room-product-name,
.living-room-product-grid a:nth-child(6) .living-room-product-name,
.living-room-product-grid a:nth-child(7) .living-room-product-name,
.living-room-product-grid a:nth-child(8) .living-room-product-name,
.living-room-product-grid a:nth-child(9) .living-room-product-name {
  font-size: 1.7rem;
}

/* hover igual */
.living-room-product-grid a:nth-child(4) .living-room-product-card:hover,
.living-room-product-grid a:nth-child(5) .living-room-product-card:hover,
.living-room-product-grid a:nth-child(6) .living-room-product-card:hover,
.living-room-product-grid a:nth-child(7) .living-room-product-card:hover,
.living-room-product-grid a:nth-child(8) .living-room-product-card:hover,
.living-room-product-grid a:nth-child(9) .living-room-product-card:hover {
  transform: translateY(-8px);
}

.living-room-product-grid a:nth-child(4) .living-room-product-card:hover .living-room-product-image,
.living-room-product-grid a:nth-child(5) .living-room-product-card:hover .living-room-product-image,
.living-room-product-grid a:nth-child(6) .living-room-product-card:hover .living-room-product-image,
.living-room-product-grid a:nth-child(7) .living-room-product-card:hover .living-room-product-image,
.living-room-product-grid a:nth-child(8) .living-room-product-card:hover .living-room-product-image,
.living-room-product-grid a:nth-child(9) .living-room-product-card:hover .living-room-product-image
 {
  transform: scale(1.05);
}

/* patrón invertido: abajo - arriba - abajo */
.living-room-product-grid a:nth-child(4) {
  margin-top: 40px;
}

.living-room-product-grid a:nth-child(5) {
  margin-top: -10px;
}

.living-room-product-grid a:nth-child(6) {
  margin-top: 40px;
}

/* patrón invertido: abajo - arriba - abajo */
.living-room-product-grid a:nth-child(7) {
  margin-top: 40px;
}

.living-room-product-grid a:nth-child(8) {
  margin-top: -10px;
}

.living-room-product-grid a:nth-child(9) {
  margin-top: 40px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .living-room-hero-top {
    grid-template-columns: 1fr;
  }

  .living-room-hero-text {
    justify-content: flex-start;
    padding-top: 10px;
  }

  .living-room-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
  }

  .living-room-product-grid {
    grid-template-columns: 1fr;
  }

  .living-room-product-image {
    height: auto;
  }

  .living-room-product-header {
    flex-direction: column;
    align-items: flex-start;
  }
}