/* ============================================
   MBL DESIGN — Estilos principales
   ============================================ */

/* Variables de marca */
:root {
  --azul: #4A7098;
  --blanco: #ffffff;
  --negro: #111111;
  --gris-claro: #f5f5f3;
  --gris-texto: #555555;
  --font-principal: 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --transicion: 0.35s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-principal);
  color: var(--negro);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ============================================
   LANDING
   ============================================ */
#landing {
  width: 100%;
  height: 100vh;
  background-color: var(--azul);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#landing .logo-landing {
  width: clamp(180px, 30vw, 380px);
  margin-bottom: 24px;
}

#landing .tagline {
  color: var(--blanco);
  font-size: clamp(12px, 1.4vw, 18px);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: lowercase;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}

.scroll-hint span {
  color: var(--blanco);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-hint .arrow {
  width: 1px;
  height: 40px;
  background: var(--blanco);
  animation: scrollDown 1.6s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

#navbar.visible {
  transform: translateY(0);
}

#navbar .nav-logo {
  height: 32px;
  filter: brightness(0) invert(0.3) sepia(1) hue-rotate(180deg) saturate(3);
}

#navbar .nav-firma {
  height: 36px;
}

#navbar nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

#navbar nav a {
  color: var(--blanco);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  transition: opacity var(--transicion);
}

#navbar nav a:hover {
  opacity: 0.65;
}

#navbar nav .nav-instagram {
  display: flex;
  align-items: center;
}

#navbar nav .nav-instagram svg {
  width: 18px;
  height: 18px;
  stroke: var(--blanco);
  fill: none;
  transition: opacity var(--transicion);
}

#navbar nav .nav-instagram:hover svg {
  opacity: 0.65;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--blanco);
  transition: var(--transicion);
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
  padding: 100px 48px;
}

.section-title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--negro);
  line-height: 1;
}

/* ============================================
   QUIÉN SOY
   ============================================ */
#quien-soy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 90vh;
  background: var(--blanco);
}

#quien-soy .foto-container {
  position: relative;
  overflow: hidden;
}

#quien-soy .foto-container img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center top;
}

#quien-soy .texto-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#quien-soy .section-title {
  text-align: left;
}

#quien-soy p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.85;
  color: var(--gris-texto);
  font-weight: 300;
  max-width: 520px;
}

/* ============================================
   PROYECTOS
   ============================================ */
#proyectos {
  background: var(--gris-claro);
}

#proyectos .proyectos-header {
  margin-bottom: 60px;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.proyecto-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--negro);
}

.proyecto-card .fotos-stack {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.proyecto-card .fotos-stack img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
  opacity: 0;
}

.proyecto-card .fotos-stack img.activa {
  opacity: 1;
}

.proyecto-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 40px 32px 32px;
  transform: translateY(20px);
  transition: transform var(--transicion);
}

.proyecto-card:hover .overlay {
  transform: translateY(0);
}

.proyecto-card .proyecto-titulo {
  color: var(--blanco);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.proyecto-card .proyecto-desc {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.proyecto-card .ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blanco);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 16px;
  opacity: 0;
  transition: opacity var(--transicion);
}

.proyecto-card:hover .ver-mas {
  opacity: 1;
}

/* ============================================
   MUEBLES
   ============================================ */
#muebles {
  background: var(--blanco);
}

#muebles .muebles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

/* Filtros */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filtro-btn {
  background: none;
  border: 1px solid #d0d0d0;
  color: var(--gris-texto);
  font-family: var(--font-principal);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  padding: 8px 18px;
  cursor: pointer;
  transition: all var(--transicion);
}

.filtro-btn:hover,
.filtro-btn.activo {
  background: var(--azul);
  border-color: var(--azul);
  color: var(--blanco);
}

/* Grilla de productos */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.producto-card {
  cursor: pointer;
  transition: transform var(--transicion);
}

.producto-card:hover {
  transform: translateY(-4px);
}

.producto-card .producto-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--gris-claro);
  margin-bottom: 16px;
}

.producto-card .producto-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gris-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.producto-card .producto-img-placeholder span {
  color: #bbb;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.producto-card .producto-nombre {
  font-size: 15px;
  font-weight: 400;
  color: var(--negro);
  margin-bottom: 4px;
}

.producto-card .producto-meta {
  font-size: 12px;
  color: var(--gris-texto);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.producto-card .producto-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul);
  margin-top: 6px;
}

.cargando {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 0;
  color: var(--gris-texto);
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* ============================================
   CONTACTO
   ============================================ */
#contacto {
  background: var(--azul);
  text-align: center;
  padding: 120px 48px;
}

#contacto .section-title {
  color: var(--blanco);
  margin-bottom: 20px;
}

#contacto .contacto-sub {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 56px;
}

.contacto-botones {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-whatsapp,
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-family: var(--font-principal);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transicion);
  border: none;
}

.btn-whatsapp {
  background: var(--blanco);
  color: var(--azul);
}

.btn-whatsapp:hover {
  background: var(--negro);
  color: var(--blanco);
}

.btn-instagram {
  background: transparent;
  color: var(--blanco);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-instagram:hover {
  background: var(--blanco);
  color: var(--azul);
}

.btn-whatsapp svg,
.btn-instagram svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--negro);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

footer .footer-logo {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

footer nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

footer nav a {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  transition: color var(--transicion);
}

footer nav a:hover {
  color: var(--blanco);
}

footer .footer-derecha {
  display: flex;
  align-items: center;
  gap: 24px;
}

footer .footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  letter-spacing: 0.08em;
}

footer .footer-ig svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,0.5);
  fill: none;
  transition: stroke var(--transicion);
}

footer .footer-ig:hover svg {
  stroke: var(--blanco);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  section {
    padding: 72px 24px;
  }

  #navbar {
    padding: 0 24px;
  }

  #quien-soy {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  #quien-soy .foto-container img {
    height: 420px;
  }

  .proyectos-grid {
    grid-template-columns: 1fr;
  }

  .proyecto-card .fotos-stack {
    height: 420px;
  }

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

  #navbar nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--azul);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  #navbar nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  #muebles .muebles-header {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 24px;
  }
}

@media (max-width: 560px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }

  .contacto-botones {
    flex-direction: column;
    align-items: center;
  }
}
