/* DAHOME Decor. Paleta sacada del logo (salvia + crema) y de la obra misma: madera
   oscura y el ambar de la luz LED que aparece en todos sus proyectos. */
:root {
  --sage: #5C6757;
  --sage-deep: #434C3F;
  --cream: #F5F0E7;
  --paper: #FBF8F2;
  --sand: #E7DFD1;
  --wood: #2B2520;
  --wood-soft: #3A322B;
  --amber: #C8943F;
  --amber-soft: #E4BE7A;
  --ink: #2A2A26;
  --muted: #6B675E;
  --line: rgba(42, 42, 38, .14);
  --bg: var(--paper);
  --radius: 4px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--sage); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

.eyebrow {
  font: 500 .74rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sage); color: var(--cream);
  font: 500 .86rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 17px 28px; border: 1px solid var(--sage); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--sage); }
.btn-ghost:hover { background: var(--sage); color: var(--cream); }
.btn-small { padding: 11px 18px; font-size: .74rem; }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(251, 248, 242, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: block; line-height: 0; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .9rem; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 56px);
  max-width: 1280px; margin: 0 auto;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-media { margin: 0; position: relative; }
.hero-media img {
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 60%; width: 100%; border-radius: var(--radius);
  /* Marco dorado desplazado: la primera sombra tapa el interior con el color del fondo y la
     segunda deja ver solo el borde de 1px. */
  box-shadow: 18px 18px 0 -1px var(--bg), 18px 18px 0 0 var(--amber-soft);
  margin-bottom: 18px;
}
.hero-media figcaption { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* Secciones */
.section { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 56px); }
.section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-lead { max-width: 40em; color: var(--muted); font-size: 1.08rem; }
.section-soft { background: var(--cream); }
.section-dark { background: var(--wood); color: var(--cream); }
.section-dark .section-lead { color: #CFC6B8; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--bg); padding: 32px 26px 28px; }
.service-num { display: block; font: 400 .8rem/1 var(--sans); color: var(--amber); letter-spacing: .12em; margin-bottom: 22px; }
.service h3 { font-size: 1.45rem; }
.service p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery { grid-auto-flow: dense; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-end { grid-column: 4; grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery-foot { margin-top: 24px; }
.gallery-foot a { color: var(--amber-soft); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.coming {
  margin-top: 56px; padding: 26px 28px; border: 1px dashed rgba(228, 190, 122, .5);
  border-radius: var(--radius);
}
.coming p:last-child { margin: 0; color: #E4DCCF; max-width: 36em; }

/* Banda diaspora */
.band { background: var(--sage); color: var(--cream); }
.band-inner { max-width: 760px; text-align: center; }
.band p { color: #DDE2D8; font-size: 1.1rem; margin-bottom: 2rem; }
.band .btn { background: var(--cream); color: var(--sage-deep); border-color: var(--cream); }
.band .btn:hover { background: #fff; }

/* Pasos */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: paso; }
.steps li { counter-increment: paso; border-top: 1px solid var(--ink); padding-top: 22px; }
.steps li::before { content: counter(paso, decimal-leading-zero); display: block; font: 400 2.4rem/1 var(--serif); color: var(--amber); margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Preguntas */
.faq details { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font: 500 1.3rem/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 1.6rem/1 var(--sans); color: var(--amber); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 42em; }

/* Cotizar */
.quote { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote-text p { color: var(--muted); }
.quote-alt a { color: var(--sage); font-weight: 500; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--cream); padding: clamp(22px, 3.5vw, 40px); border-radius: var(--radius); }
.quote-form label { display: flex; flex-direction: column; gap: 7px; font-size: .86rem; font-weight: 400; }
.quote-form .full { grid-column: 1 / -1; }
.opt { color: var(--muted); font-weight: 300; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: 300 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; width: 100%;
}
.quote-form textarea { resize: vertical; }
.form-error { color: #9A3B2E; font-size: .9rem; margin: 0; }
.quote-form .btn { margin-top: 4px; }

/* Pie */
.foot { background: var(--sage-deep); color: #D8DCD2; padding: 64px clamp(16px, 4vw, 56px) 110px; }
.foot > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; color: var(--cream); margin-bottom: 40px; }
.foot-brand img { height: 58px; width: auto; }
.foot-brand p { font: italic 400 1.05rem/1 var(--serif); margin: 12px 0 0; color: var(--amber-soft); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.foot h4 { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--amber-soft); margin: 0 0 16px; }
.foot p { margin: 0 0 8px; font-size: .95rem; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-legal { margin-top: 48px !important; font-size: .8rem; color: #9CA396; }

/* WhatsApp: verde real de WhatsApp, excepcion deliberada a la paleta porque se reconoce al instante */
.whatsapp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; text-decoration: none;
  font: 500 .92rem/1 var(--sans); padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.whatsapp-fab:hover { background: #1FB757; }

/* Tablet */
@media (max-width: 960px) {
  .nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery .g-end { grid-column: auto; grid-row: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quote { grid-template-columns: 1fr; }
}

/* Movil */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-media img { box-shadow: 10px 10px 0 -1px var(--bg), 10px 10px 0 0 var(--amber-soft); }
  .gallery { grid-auto-rows: 180px; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .whatsapp-fab { padding: 15px; }
  .whatsapp-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
