/* ===========================
   LÜMA HOGAR — styles.css
   =========================== */

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

/* === VARIABLES === */
:root {
  --beige: #F5F1EB;
  --negro: #1C1C1C;
  --dorado: #C9A46C;
  --gris-calido: #D9D4CD;
  --blanco: #FFFFFF;
  --font: 'DM Sans', sans-serif;
  --max-w: 1200px;
  --radius: 2px;
  --transition: 0.3s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background-color: var(--beige);
  color: var(--negro);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === UTILIDADES === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.dorado { color: var(--dorado); }
.seccion-titulo {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.seccion-subtitulo {
  font-size: 1.05rem;
  font-weight: 400;
  color: #555;
  max-width: 520px;
  line-height: 1.7;
}
.etiqueta-seccion {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 12px;
}

/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.btn-primario {
  background: var(--negro);
  color: var(--beige);
}
.btn-primario:hover {
  background: var(--dorado);
  color: var(--negro);
}
.btn-secundario {
  background: transparent;
  color: var(--negro);
  border: 1.5px solid var(--negro);
}
.btn-secundario:hover {
  background: var(--negro);
  color: var(--beige);
}
.btn-dorado {
  background: var(--dorado);
  color: var(--negro);
}
.btn-dorado:hover {
  background: var(--negro);
  color: var(--beige);
}
.btn-outline-dorado {
  background: transparent;
  color: var(--dorado);
  border: 1.5px solid var(--dorado);
}
.btn-outline-dorado:hover {
  background: var(--dorado);
  color: var(--negro);
}

/* ===========================
   HEADER
   =========================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(245, 241, 235, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,164,108,0.15);
  transition: box-shadow var(--transition);
}
#header.scrolled {
  box-shadow: 0 2px 24px rgba(28,28,28,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.header-logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--negro);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--dorado);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--dorado); }
.nav-links a:hover::after { width: 100%; }
.btn-whatsapp-header {
  padding: 9px 18px;
  font-size: 0.82rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--negro);
  transition: var(--transition);
}
.hamburger.activo span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.activo span:nth-child(2) { opacity: 0; }
.hamburger.activo span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--beige);
  border-top: 1px solid var(--gris-calido);
  padding: 20px 24px 28px;
  gap: 4px;
}
.mobile-menu.abierto { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(217,212,205,0.5);
  color: var(--negro);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--dorado); }
.mobile-menu .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ===========================
   HERO
   =========================== */
#inicio {
  padding-top: 72px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--beige);
}
.hero-contenido {
  padding: 80px 24px 80px 40px;
  padding-left: clamp(24px, 6vw, 80px);
  max-width: 600px;
}
.hero-titulo {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-subtitulo {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  color: #5a5550;
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-imagen {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-imagen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(245,241,235,0.25) 0%, transparent 50%);
}

/* ===========================
   FRANJA CONFIANZA
   =========================== */
#confianza {
  background: var(--negro);
  padding: 28px 0;
}
.confianza-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.confianza-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.confianza-item:last-child { border-right: none; }
.confianza-icono {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--dorado);
}
.confianza-icono svg { width: 100%; height: 100%; }
.confianza-texto {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--beige);
  line-height: 1.4;
}
.confianza-texto small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(245,241,235,0.55);
  margin-top: 2px;
}

/* ===========================
   PROPUESTA DE MARCA
   =========================== */
#propuesta {
  padding: 100px 0;
  background: var(--beige);
}
.propuesta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.propuesta-deco {
  display: flex;
  justify-content: center;
  align-items: center;
}
.propuesta-deco img {
  max-width: 280px;
  opacity: 0.55;
}
.propuesta-texto .seccion-subtitulo { margin-bottom: 32px; }

/* ===========================
   BLOQUE COMERCIAL
   =========================== */
#precio-entrada {
  background: var(--gris-calido);
  padding: 80px 0;
}
.precio-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.precio-grande {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--negro);
  margin: 16px 0 8px;
}
.precio-grande span { color: var(--dorado); }
.precio-desc {
  font-size: 1rem;
  color: #5a5550;
  margin-bottom: 32px;
}

/* ===========================
   SECCIONES PRODUCTO (habitación / living)
   =========================== */
.seccion-producto {
  padding: 100px 0;
}
.seccion-producto:nth-child(even) {
  background: #EEEBE4;
}
.producto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.producto-grid.invertido { direction: rtl; }
.producto-grid.invertido > * { direction: ltr; }

.producto-info { }
.producto-info .seccion-subtitulo { margin-bottom: 16px; }
.producto-precio {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--negro);
  margin: 24px 0 8px;
  letter-spacing: -0.02em;
}
.producto-precio .desde {
  font-size: 0.85rem;
  font-weight: 400;
  color: #888;
  display: block;
  margin-bottom: 4px;
}
.etiquetas-producto {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.etiqueta {
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--beige);
  border: 1px solid var(--gris-calido);
  color: var(--negro);
  letter-spacing: 0.02em;
}
.seccion-producto:nth-child(even) .etiqueta {
  background: var(--beige);
}
.producto-imagenes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.producto-img-principal {
  grid-column: 1 / -1;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gris-calido);
}
.producto-img-secundaria {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gris-calido);
}
.producto-imagenes img,
.producto-img-principal img,
.producto-img-secundaria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.producto-img-principal:hover img,
.producto-img-secundaria:hover img {
  transform: scale(1.03);
}

/* placeholder de imagen */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-calido);
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  padding: 12px;
  min-height: 200px;
}

/* ===========================
   DESPACHOS
   =========================== */
#despachos {
  padding: 100px 0;
  background: var(--negro);
}
#despachos .etiqueta-seccion { color: rgba(201,164,108,0.8); }
#despachos .seccion-titulo { color: var(--beige); }
.despachos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.despachos-info { }
.despachos-info .seccion-subtitulo { color: rgba(245,241,235,0.65); margin-bottom: 36px; }
.despacho-card {
  background: rgba(245,241,235,0.06);
  border: 1px solid rgba(201,164,108,0.2);
  padding: 32px 36px;
}
.despacho-principal {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--beige);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.despacho-nota {
  font-size: 0.875rem;
  color: rgba(245,241,235,0.5);
  font-weight: 400;
}
.despachos-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.despachos-isotipo img {
  max-width: 200px;
  opacity: 0.18;
  filter: brightness(5);
}

/* ===========================
   CONTACTO
   =========================== */
#contacto {
  padding: 100px 0;
  background: var(--beige);
}
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contacto-info .seccion-subtitulo { margin-bottom: 40px; }
.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.contacto-dato {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}
.contacto-dato svg {
  width: 20px;
  height: 20px;
  color: var(--dorado);
  flex-shrink: 0;
}
.contacto-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contacto-cita {
  border-left: 3px solid var(--dorado);
  padding: 24px 28px;
  background: rgba(201,164,108,0.06);
}
.contacto-cita p {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.75;
  color: #4a4540;
  font-style: italic;
}

/* ===========================
   FOOTER
   =========================== */
#footer {
  background: #161412;
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.footer-marca img {
  height: 40px;
  margin-bottom: 16px;
  /* filtro para visibilidad sobre fondo oscuro */
  filter: brightness(0) invert(1);
}
.footer-slogan {
  font-size: 0.875rem;
  color: rgba(245,241,235,0.45);
  line-height: 1.6;
  max-width: 240px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(245,241,235,0.55);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--beige); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(245,241,235,0.3);
}

/* ===========================
   BOTÓN FLOTANTE WHATSAPP
   =========================== */
.whatsapp-flotante {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-flotante:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.whatsapp-flotante svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ===========================
   SEPARADOR ISOTIPO
   =========================== */
.separador-isotipo {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}
.separador-isotipo img {
  height: 24px;
  opacity: 0.25;
}

/* ===========================
   ANIMACIONES ENTRADA
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 960px) {
  #inicio {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-contenido {
    padding: 60px 24px 48px;
    max-width: 100%;
    text-align: center;
  }
  .hero-subtitulo { max-width: 100%; margin: 0 auto 32px; }
  .hero-botones { justify-content: center; }
  .hero-imagen {
    height: 55vw;
    min-height: 300px;
  }
  .propuesta-inner,
  .producto-grid,
  .despachos-inner,
  .contacto-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .producto-grid.invertido { direction: ltr; }
  .propuesta-deco { order: -1; }
  .propuesta-deco img { max-width: 160px; }
  .despachos-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-marca { grid-column: 1 / -1; }
  .confianza-grid { grid-template-columns: 1fr; }
  .confianza-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .confianza-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .nav-links, .btn-whatsapp-header { display: none; }
  .hamburger { display: flex; }
  .seccion-titulo { font-size: 1.9rem; }
  .seccion-producto { padding: 72px 0; }
  #propuesta, #despachos, #contacto { padding: 72px 0; }
  .producto-imagenes { grid-template-columns: 1fr; }
  .producto-img-principal { aspect-ratio: 16/9; }
  .producto-img-secundaria { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-titulo { font-size: 2rem; }
  .hero-botones { flex-direction: column; }
  .hero-botones .btn { width: 100%; justify-content: center; }
  .btn { padding: 12px 22px; }
  .precio-grande { font-size: 3rem; }
  .whatsapp-flotante { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .whatsapp-flotante svg { width: 24px; height: 24px; }
}
