/* ================================================
   Cajas Madera — Regalos Empresariales
   Paleta: lino / espresso / roble / latón
   ================================================ */

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

:root {
  --lino: #F6F1E7;
  --crema: #FFFBF3;
  --espresso: #2B1D12;
  --espresso-90: rgba(43, 29, 18, 0.9);
  --nogal: #4A3323;
  --roble: #8A6844;
  --laton: #B08D3E;
  --laton-suave: #C9A961;
  --borde: #E4D9C6;
  --sombra: rgba(43, 29, 18, 0.09);
  --sombra-hover: rgba(43, 29, 18, 0.18);
  --whatsapp: #25D366;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', Arial, sans-serif;
  --ancho: 1180px;
  --header-h: 76px;
  --tr: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
html, body { overflow-x: hidden; max-width: 100vw; }

body {
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--lino);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--laton); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--nogal); }

h1, h2, h3 { font-family: var(--font-display); color: var(--nogal); line-height: 1.15; font-weight: 600; }

.container { max-width: var(--ancho); margin: 0 auto; padding: 0 22px; }

:focus-visible { outline: 3px solid var(--laton); outline-offset: 3px; border-radius: 2px; }

/* --- Eyebrow / titulares de sección --- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--laton);
  margin-bottom: 14px;
}
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--laton);
  vertical-align: middle;
  margin-left: 14px;
  opacity: 0.6;
}

.section { padding: 92px 0; }
.section-title { max-width: 640px; margin-bottom: 52px; }
.section-title h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 12px; }
.section-title p { color: var(--roble); font-size: 1.06rem; }
.section-title.centrado { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.centrado .eyebrow::before {
  content: "";
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--laton);
  vertical-align: middle;
  margin-right: 14px;
  opacity: 0.6;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--sombra-hover); }
.btn-laton { background: var(--laton); color: #fff; }
.btn-laton:hover { background: #9a7a33; color: #fff; }
.btn-borde { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-borde:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #1eb856; color: #fff; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* --- Header --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(43, 29, 18, 0.35);
  backdrop-filter: blur(6px);
  transition: background var(--tr), box-shadow var(--tr);
}
.site-header.scrolled {
  background: var(--crema);
  box-shadow: 0 2px 14px var(--sombra);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--header-h);
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 22px;
}
.marca { display: flex; align-items: center; gap: 12px; }
.marca svg { width: 42px; height: 42px; flex-shrink: 0; }
.marca-texto {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  transition: color var(--tr);
}
.marca-texto small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--laton-suave);
}
.site-header.scrolled .marca-texto { color: var(--nogal); }

.main-nav ul { display: flex; gap: 28px; list-style: none; }
.main-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--tr);
}
.main-nav a:hover { color: var(--laton-suave); }
.site-header.scrolled .main-nav a { color: var(--espresso); }
.site-header.scrolled .main-nav a:hover { color: var(--laton); }

.header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--whatsapp);
  padding: 10px 18px;
  border-radius: 4px;
  transition: background var(--tr);
}
.header-wa:hover { background: #1eb856; color: #fff; }
.header-wa svg { width: 18px; height: 18px; fill: currentColor; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: background var(--tr);
}
.site-header.scrolled .menu-toggle span { background: var(--nogal); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 29, 18, 0.42) 0%, rgba(43, 29, 18, 0.18) 40%, rgba(43, 29, 18, 0.88) 100%);
}
.hero-contenido {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 140px 22px 84px;
  color: #fff;
}
.hero-contenido .eyebrow { color: var(--laton-suave); }
.hero-contenido .eyebrow::after { background: var(--laton-suave); }
.hero-contenido h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 600;
  max-width: 15ch;
  margin-bottom: 20px;
}
.hero-contenido h1 em {
  font-style: italic;
  color: var(--laton-suave);
}
.hero-contenido p {
  font-size: 1.15rem;
  max-width: 52ch;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Franja servicio integral --- */
.franja {
  background: var(--espresso);
  color: #EFE6D6;
  padding: 56px 0;
}
.franja-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.franja-item { border-left: 1px solid rgba(201, 169, 97, 0.35); padding-left: 20px; }
.franja-item h3 {
  color: var(--laton-suave);
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.franja-item p { font-size: 0.93rem; color: rgba(239, 230, 214, 0.75); }

/* --- Bloque editorial (foto + texto) --- */
.editorial {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.editorial.invertido { grid-template-columns: 1fr 1.05fr; }
.editorial.invertido .editorial-foto { order: 2; }
.editorial-foto {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px var(--sombra-hover);
}
.editorial-foto img { width: 100%; height: 100%; object-fit: cover; }
.editorial-foto::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 251, 243, 0.55);
  border-radius: 3px;
  pointer-events: none;
}
.editorial-texto h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 18px; }
.editorial-texto p { margin-bottom: 16px; color: #5C4632; }
.editorial-texto ul { list-style: none; margin: 22px 0 28px; }
.editorial-texto li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: #5C4632;
}
.editorial-texto li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 2px;
  background: var(--laton);
}
.editorial-texto li strong { color: var(--nogal); }

/* --- Grids de tarjetas --- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.card {
  background: var(--crema);
  border: 1px solid var(--borde);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px var(--sombra);
  transition: transform var(--tr), box-shadow var(--tr);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px var(--sombra-hover); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 24px 26px 28px; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card-body p { font-size: 0.95rem; color: #5C4632; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--laton);
  margin-bottom: 10px;
}

/* --- Terminaciones --- */
.terminaciones-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.terminaciones-foto { border-radius: 6px; overflow: hidden; box-shadow: 0 24px 60px var(--sombra-hover); }
.paleta { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.madera-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-radius: 4px;
  transition: background var(--tr);
}
.madera-chip:hover { background: rgba(176, 141, 62, 0.09); }
.madera-color {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(43, 29, 18, 0.14), 0 3px 8px var(--sombra);
}
.madera-chip strong { font-family: var(--font-display); font-size: 1.06rem; color: var(--nogal); display: block; line-height: 1.2; }
.madera-chip span { font-size: 0.86rem; color: var(--roble); }

/* --- Ocasiones --- */
.seccion-crema { background: var(--crema); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }

/* --- Proceso --- */
.proceso-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.paso { position: relative; padding-top: 18px; }
.paso-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--laton);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.paso h3 { font-size: 1.18rem; margin-bottom: 8px; }
.paso p { font-size: 0.93rem; color: #5C4632; }

/* --- Armador de box --- */
.armador { background: var(--espresso); color: #EFE6D6; }
.armador .section-title h2 { color: #FFFBF3; }
.armador .section-title p { color: rgba(239, 230, 214, 0.72); }
.armador .eyebrow { color: var(--laton-suave); }
.armador .eyebrow::after, .armador .eyebrow::before { background: var(--laton-suave); }

.armador-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }

.grupo-opciones { margin-bottom: 30px; }
.grupo-opciones h3 {
  color: var(--laton-suave);
  font-size: 1.05rem;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.grupo-opciones h3 small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(239, 230, 214, 0.55);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid rgba(239, 230, 214, 0.35);
  background: transparent;
  color: #EFE6D6;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
}
.chip:hover { border-color: var(--laton-suave); }
.chip.activo {
  background: var(--laton);
  border-color: var(--laton);
  color: #fff;
}
.chip .mini-madera {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.campo-cantidad { margin: 6px 0 26px; }
.campo-cantidad label { display: block; font-size: 0.9rem; color: rgba(239, 230, 214, 0.75); margin-bottom: 8px; }
.campo-cantidad input {
  width: 200px;
  padding: 11px 14px;
  border-radius: 4px;
  border: 1px solid rgba(239, 230, 214, 0.35);
  background: rgba(255, 251, 243, 0.07);
  color: #FFFBF3;
  font-family: var(--font-body);
  font-size: 1rem;
}
.campo-cantidad input:focus { outline: 2px solid var(--laton); border-color: var(--laton); }

.resumen-box {
  background: var(--crema);
  color: var(--espresso);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.resumen-box h3 { font-size: 1.25rem; margin-bottom: 16px; }
.resumen-mensaje {
  background: #E7F8EE;
  border: 1px solid #BFE8CF;
  border-radius: 8px 8px 8px 2px;
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1D3327;
  margin-bottom: 20px;
  min-height: 120px;
}
.resumen-box .btn-wa { width: 100%; justify-content: center; }
.resumen-nota { font-size: 0.82rem; color: var(--roble); margin-top: 14px; text-align: center; }

/* --- Taller --- */
.taller-firma {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--roble);
  border-left: 2px solid var(--laton);
  padding-left: 20px;
  margin-top: 26px;
}

/* --- FAQ --- */
.faq-lista { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--lino);
  border: 1px solid var(--borde);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--nogal);
  position: relative;
  transition: background var(--tr);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--laton);
  transition: transform var(--tr);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: rgba(176, 141, 62, 0.08); }
.faq-item p { padding: 0 22px 20px; color: #5C4632; font-size: 0.97rem; }

/* --- CTA final --- */
.cta-final {
  position: relative;
  isolation: isolate;
  padding: 110px 0;
  text-align: center;
  color: #fff;
}
.cta-final-img { position: absolute; inset: 0; z-index: -1; }
.cta-final-img img { width: 100%; height: 100%; object-fit: cover; }
.cta-final-img::after { content: ""; position: absolute; inset: 0; background: var(--espresso-90); }
.cta-final h2 { color: #FFFBF3; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.cta-final p { max-width: 54ch; margin: 0 auto 34px; color: rgba(255, 255, 255, 0.85); font-size: 1.08rem; }

/* --- Footer --- */
.site-footer { background: #221610; color: #CBB89A; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  color: #FFFBF3;
  font-size: 1.08rem;
  margin-bottom: 18px;
}
.site-footer p { font-size: 0.93rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #CBB89A; font-size: 0.93rem; }
.site-footer a:hover { color: var(--laton-suave); }
.footer-contacto div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.93rem;
}
.footer-contacto svg { width: 18px; height: 18px; stroke: var(--laton-suave); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 3px; }
.footer-marca { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-marca svg { width: 40px; height: 40px; }
.footer-marca span { font-family: var(--font-display); font-size: 1.2rem; color: #FFFBF3; }
.footer-bottom {
  border-top: 1px solid rgba(203, 184, 154, 0.2);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(203, 184, 154, 0.65);
}
.footer-bottom a { font-size: 0.85rem; }

/* --- WhatsApp flotante --- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform var(--tr);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .card-img img { transition: none; }
}

/* --- Responsive --- */
@media (max-width: 1020px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .franja-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .proceso-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial, .editorial.invertido, .terminaciones-wrap, .armador-grid { grid-template-columns: 1fr; gap: 40px; }
  .editorial.invertido .editorial-foto { order: 0; }
  .resumen-box { position: static; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--crema);
    box-shadow: 0 14px 30px var(--sombra-hover);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    padding: 10px 0 18px;
  }
  .main-nav.abierto { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a {
    display: block;
    padding: 13px 26px;
    color: var(--espresso);
    font-size: 1.05rem;
  }
  .menu-toggle { display: flex; }
  .header-wa span { display: none; }
  .header-wa { padding: 10px 12px; }
  .hero { min-height: 78vh; }
  .hero-contenido { padding-top: 120px; padding-bottom: 60px; }
  .cards-3 { grid-template-columns: 1fr; }
  .franja-grid { grid-template-columns: 1fr; }
  .proceso-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
