/* =========================================================
   ESTILOS.CSS  —  Diseño con la identidad de marca Almadera.
   Paleta oficial: Lino, Tinta, Roble tostado.
   Tipografías: EB Garamond (títulos) + Montserrat (todo lo demás).
   ========================================================= */

:root {
  --lino:   #D2C6B1;   /* fondo de marca */
  --lino-claro: #E4DCCC;
  --mat:    #EFE8DA;   /* fondo "paspartú" para fotos de producto */
  --tinta:  #2A2620;   /* texto */
  --roble:  #9A6A3F;   /* acento (roble tostado) */
  --roble-osc: #7d5432;
  --blanco: #FBF9F5;
  --linea:  rgba(42, 38, 32, 0.16);
  --sombra: 0 10px 30px rgba(42, 38, 32, 0.12);
  --radio: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: "Montserrat", "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--tinta);
  background: var(--lino);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.contenedor { width: 90%; max-width: 1180px; margin: 0 auto; }

.eyebrow {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--roble);
  font-weight: 600;
}

/* ---------- ENCABEZADO ---------- */
.header {
  background: rgba(210, 198, 177, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 34px; flex-wrap: wrap; }
.nav a {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--roble);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--roble); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- HERO (portada en Lino, logo protagonista) ---------- */
.hero {
  position: relative;
  background: var(--lino);
  text-align: center;
  overflow: hidden;
}
.hero__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 104px 20px 88px;
}
.hero__logo {
  height: 96px;
  width: auto;
  max-width: 82%;
  margin: 0 auto 36px;
}
.hero h1 {
  font-size: 3rem;
  color: var(--tinta);
  max-width: 660px;
  margin: 0 auto 18px;
}
.hero p {
  font-size: 1.08rem;
  color: rgba(42, 38, 32, 0.72);
  max-width: 520px;
  margin: 0 auto 34px;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* Banda de color de marca (roble tostado) que cierra la portada */
.hero__band {
  height: 64px;
  background: linear-gradient(180deg, var(--roble) 0%, var(--roble-osc) 100%);
}

/* ---------- BOTONES ---------- */
.btn, .btn-linea {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radio);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease),
              transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn {
  background: var(--roble);
  color: var(--blanco);
  box-shadow: 0 6px 18px rgba(154, 106, 63, 0.28);
}
.btn:hover { background: var(--roble-osc); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(154, 106, 63, 0.36); }
.btn-linea { border: 1px solid var(--tinta); color: var(--tinta); }
.btn-linea:hover { background: var(--tinta); color: var(--lino); transform: translateY(-2px); }

/* ---------- SECCIONES ---------- */
.seccion { padding: 84px 0; }
.seccion--clara { background: var(--lino-claro); }
.seccion__cab { text-align: center; margin-bottom: 52px; }
.seccion__cab .eyebrow { display: block; margin-bottom: 12px; }
.seccion__titulo { font-size: 2.5rem; color: var(--tinta); }
.seccion__sub { color: rgba(42, 38, 32, 0.62); font-size: .96rem; margin-top: 10px; }

/* ---------- GALERÍA DE TRABAJOS (fotos completas, sin recortar) ---------- */
.trabajos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.trabajos figure {
  aspect-ratio: 4 / 3;
  background: var(--mat);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.trabajos img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.trabajos figure:hover img { transform: scale(1.04); }

/* ---------- AMBIENTES (mosaicos de navegación) ---------- */
.ambientes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.ambiente-card {
  position: relative;
  height: 300px;
  border-radius: var(--radio);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--blanco);
  box-shadow: var(--sombra);
}
.ambiente-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.ambiente-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(42,38,32,0) 30%, rgba(42,38,32,.82));
}
.ambiente-card:hover img { transform: scale(1.06); }
.ambiente-card span {
  position: relative; z-index: 2;
  padding: 26px;
  font-family: "EB Garamond", serif;
  font-size: 1.9rem;
}
.ambiente-card span::after {
  content: " →";
  font-family: "Montserrat", sans-serif;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  display: inline-block;
}
.ambiente-card:hover span::after { opacity: 1; }

/* ---------- REJILLA DE PRODUCTOS ---------- */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 28px;
}
.producto {
  background: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.producto:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(42,38,32,.18); }
/* Foto completa del mueble sobre paspartú, sin recorte */
.producto__imagen {
  aspect-ratio: 4 / 3;
  background: var(--mat);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.producto__imagen img { width: 100%; height: 100%; object-fit: contain; }
.producto__info { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.producto__tipo {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--roble);
  font-weight: 600;
}
.producto__nombre { font-size: 1.5rem; margin: 6px 0 9px; color: var(--tinta); }
.producto__desc { font-size: .87rem; color: rgba(42, 38, 32, 0.7); flex: 1; }

/* Selector de tamaño / medida */
.variantes { margin-top: 16px; }
.variantes__label {
  display: block;
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(42, 38, 32, 0.5);
  font-weight: 600;
  margin-bottom: 9px;
}
.variantes__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.variante {
  font-family: "Montserrat", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 6px 13px;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: transparent;
  color: var(--tinta);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.variante:hover { border-color: var(--roble); color: var(--roble); }
.variante.activo { background: var(--roble); border-color: var(--roble); color: var(--blanco); }

.producto__pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--linea);
  gap: 12px;
}
.producto__precio {
  font-family: "EB Garamond", serif;
  font-size: 1.5rem;
  color: var(--roble);
  font-weight: 600;
  line-height: 1;
}
.btn-wa {
  background: transparent;
  border: 1px solid var(--tinta);
  color: var(--tinta);
  padding: 8px 17px;
  border-radius: var(--radio);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn-wa:hover { background: var(--tinta); color: var(--lino); }

/* ---------- FILTROS DEL CATÁLOGO ---------- */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}
.filtro {
  background: transparent;
  border: 1px solid var(--linea);
  padding: 10px 28px;
  border-radius: var(--radio);
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: var(--tinta);
  transition: all .25s var(--ease);
}
.filtro:hover { border-color: var(--roble); color: var(--roble); }
.filtro.activo { background: var(--tinta); border-color: var(--tinta); color: var(--lino); }
.vacio { text-align: center; color: rgba(42,38,32,.5); grid-column: 1 / -1; padding: 48px; }

/* ---------- CONTACTO (dos columnas prolijas) ---------- */
.contacto {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--lino);
  box-shadow: var(--sombra);
}
.contacto__col { padding: 46px 44px; }
.contacto__col + .contacto__col { border-left: 1px solid var(--linea); }
.contacto__col h3 { font-size: 1.7rem; margin-bottom: 6px; }
.contacto__col .eyebrow { display: block; margin-bottom: 16px; }
.dato { margin-bottom: 18px; }
.dato__label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(42,38,32,.55); font-weight: 600; margin-bottom: 2px;
}
.dato p, .dato a { font-size: .98rem; }
.contacto a.enlace { color: var(--roble); font-weight: 600; }
.contacto a.enlace:hover { text-decoration: underline; }
.contacto .btn { margin: 6px 0 22px; }
.redes-inline { display: flex; gap: 12px; flex-wrap: wrap; }
.redes-inline a {
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 9px 18px;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  transition: all .25s var(--ease);
}
.redes-inline a:hover { border-color: var(--tinta); background: var(--tinta); color: var(--lino); }

/* ---------- PIE DE PÁGINA ---------- */
.footer {
  background: var(--tinta);
  color: rgba(251,249,245,.75);
  text-align: center;
  padding: 54px 20px 38px;
}
.footer img { height: 38px; margin: 0 auto 20px; opacity: .95; }
.footer .redes { margin: 18px 0; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.footer .redes a {
  color: var(--lino);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color .25s var(--ease);
}
.footer .redes a:hover { color: var(--roble); }
.footer small { font-size: .76rem; opacity: .55; letter-spacing: .3px; }

/* ---------- BOTÓN FLOTANTE DE WHATSAPP ---------- */
.wa-flotante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 200;
  transition: transform .2s var(--ease);
}
.wa-flotante:hover { transform: scale(1.09); }

/* ---------- ENTRADA SUAVE AL APARECER (un solo gesto) ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 760px) {
  .hero__inner { padding: 72px 18px 64px; }
  .hero__logo { height: 62px; margin-bottom: 28px; }
  .hero h1 { font-size: 2.1rem; }
  .nav { gap: 18px; }
  .seccion { padding: 60px 0; }
  .seccion__titulo { font-size: 2rem; }
  .contacto { grid-template-columns: 1fr; }
  .contacto__col + .contacto__col { border-left: none; border-top: 1px solid var(--linea); }
  .contacto__col { padding: 36px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
