/* ==========================================================================
   Roble & Lino — Mueblería & Diseño de Interiores
   Paleta cálida: maderas, terracota, beige, acentos en verde oliva.
   ========================================================================== */

:root {
  --cream: #f5efe6;
  --cream-alt: #efe4d3;
  --wood: #7a4b29;
  --wood-dark: #4a2f1c;
  --terracotta: #c1662f;
  --olive: #5c6b47;
  --ink: #22201c;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0 0 16px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  font-weight: 600;
  margin: 0 0 14px;
}

/* ---------- Nav ---------- */
.nav {
  position: static;
  z-index: 100;
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(34, 32, 28, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
}
.logo span { color: var(--terracotta); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}
.nav-cta {
  background: var(--olive);
  color: var(--cream);
  padding: 9px 18px;
  border-radius: 100px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--wood-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(34,20,10,0.88) 5%, rgba(34,20,10,0.25) 60%, rgba(34,20,10,0.15) 100%);
}
.hero-content {
  position: relative;
  color: var(--cream);
  padding-bottom: 72px;
  max-width: 760px;
}
.hero-content .eyebrow { color: #e3b784; }
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: #fff;
}
.hero-content h1 em { color: #e3b784; font-style: italic; }
.hero-lead { font-size: 1.05rem; max-width: 52ch; color: #e9ddcd; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); background: #a8541f; }
.btn-primary.full { width: 100%; text-align: center; border: none; cursor: pointer; font-family: inherit; font-size: 1rem; }

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 13px 24px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Catalogo ---------- */
.catalogo { background: var(--cream); }
.catalogo h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 20ch; margin-bottom: 44px; }
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.pieza-img {
  height: 220px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}
.pieza:hover .pieza-img { transform: scale(1.02); }
.pieza h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pieza p { color: #5b5347; font-size: 0.94rem; margin: 0 0 10px; }
.precio { font-weight: 600; color: var(--olive); font-size: 0.9rem; }

/* ---------- Historia ---------- */
.historia { background: var(--cream-alt); }
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.historia-img {
  height: 460px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}
.historia-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 18ch; }
.historia-text p { color: #4a4438; margin-bottom: 16px; }
.historia-datos {
  display: flex;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin-top: 28px;
}
.historia-datos li { display: flex; flex-direction: column; }
.historia-datos strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--terracotta); }
.historia-datos span { font-size: 0.8rem; color: #746b5c; }

/* ---------- Servicios / planes ---------- */
.servicios { background: var(--cream); }
.servicios h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 20ch; margin-bottom: 44px; }
.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.plan {
  background: #fff;
  border: 1px solid rgba(34,32,28,0.08);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
}
.plan-destacado {
  border-color: var(--olive);
  box-shadow: 0 20px 40px -22px rgba(92, 107, 71, 0.45);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--olive);
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 100px;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 10px; }
.plan-desc { color: #5b5347; font-size: 0.92rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li {
  font-size: 0.9rem;
  padding: 8px 0;
  border-top: 1px solid rgba(34,32,28,0.08);
  color: #4a4438;
}
.plan-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--terracotta);
  font-size: 0.92rem;
}
.plan-cta:hover { text-decoration: underline; }

/* ---------- Testimonios ---------- */
.testimonios { background: var(--wood-dark); color: var(--cream); }
.testimonios .eyebrow { color: #e3b784; }
.testimonios h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 20ch; margin-bottom: 44px; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.testi {
  margin: 0;
  padding: 26px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border-left: 3px solid var(--terracotta);
}
.testi p { font-size: 1rem; margin: 0 0 14px; font-style: italic; }
.testi footer { font-size: 0.85rem; color: #d8c6ab; }

/* ---------- Contacto ---------- */
.contacto { background: var(--cream); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contacto h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 18ch; }
.contacto-lead { color: #5b5347; margin-bottom: 24px; }
.contacto-datos p { margin: 8px 0; font-size: 0.94rem; }

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  border: 1px solid rgba(34,32,28,0.08);
}
.form label { display: flex; flex-direction: column; font-size: 0.85rem; font-weight: 600; gap: 6px; color: #4a4438; }
.form input, .form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  border-radius: 6px;
  border: 1px solid rgba(34,32,28,0.18);
  background: var(--cream);
  resize: vertical;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--olive); outline-offset: 1px; }
.form-note { font-size: 0.76rem; color: #948a78; text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--wood-dark); color: #cbb89b; padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer .logo { color: #fff; }
.footer p { font-size: 0.82rem; margin: 0; }
.footer-credit a { color: #e3b784; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .historia-grid, .contacto-grid { grid-template-columns: 1fr; }
  .historia-img { height: 320px; order: -1; }
}
@media (max-width: 720px) {
  .nav-links { gap: 14px; font-size: 0.82rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 60px 0; }
  .hero { min-height: 78vh; }
}
