/* ============================================================
   HACEMOS MUEBLES (HM) — Estilos
   Paleta: amarillo + oscuros
   ============================================================ */
:root {
  --yellow: #FFC42E;
  --yellow-bright: #FFD60A;
  --yellow-soft: #ffce5c;
  --ink-900: #0c0c0d;   /* fondo más oscuro */
  --ink-800: #131316;
  --ink-700: #1b1b20;
  --ink-600: #26262d;
  --line: rgba(255,255,255,.08);
  --text: #f3f3f1;
  --muted: #a8a8b0;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow-yellow: 0 14px 40px rgba(255,196,46,.28);
  --max: 1180px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  background: var(--ink-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.02em; }
.hl { color: var(--yellow); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--yellow); color: #1a1305; box-shadow: var(--shadow-yellow); }
.btn-primary:hover { background: var(--yellow-bright); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-whatsapp { background: #25D366; color: #06351a; }
.btn-whatsapp:hover { background: #2ee575; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,12,13,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--yellow); color: #1a1305;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-yellow);
}
/* Logo de marca (imagen) */
.brand-logo { height: 48px; width: auto; display: block; }
.footer-brand .brand-logo { height: 54px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: .74rem; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links > a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 70px 0 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 380px at 12% 0%, rgba(255,196,46,.16), transparent 60%),
    radial-gradient(600px 500px at 100% 30%, rgba(255,196,46,.08), transparent 55%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 540px; margin-bottom: 30px; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { list-style: none; display: flex; gap: 14px 24px; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; }
.hero-trust .ht-check {
  display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(255,196,46,.14); color: var(--yellow);
  font-size: .72rem; font-weight: 700;
}

.hero-card { position: relative; }
.hero-card img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-card-badge {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(12,12,13,.82); backdrop-filter: blur(6px);
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
}
.hero-card-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,196,46,.22); }

/* ===== Strip ===== */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-800); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 22px; }
.strip-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; color: var(--text); }
.strip-item .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,196,46,.12); color: var(--yellow); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--ink-800); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,196,46,.4); box-shadow: var(--shadow); }
.card-ico { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ===== Galería ===== */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 340px; gap: 16px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.07); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  opacity: 0; transform: translateY(8px); transition: .25s;
}
.g-item:hover figcaption { opacity: 1; transform: translateY(0); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ===== Reseñas ===== */
.reviews-summary {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 28px;
}
.rs-score { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rs-num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--yellow); }
.rs-stars { color: var(--yellow); font-size: 1.4rem; letter-spacing: 2px; }
.rs-count { color: var(--muted); font-size: .9rem; }
.rs-google { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.review-top { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: #1a1305; background: var(--yellow-soft); flex: 0 0 auto;
}
.review-name { font-family: var(--font-head); font-weight: 600; font-size: .98rem; }
.review-date { color: var(--muted); font-size: .78rem; }
.review-stars { color: var(--yellow); letter-spacing: 1px; }
.review-text { color: var(--muted); font-size: .94rem; }
.review-src { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; margin-top: auto; }

/* ===== Mapa / Ubicación ===== */
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map { width: 100%; height: 460px; }
.map-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 120px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,196,46,.12);
  border-radius: var(--radius-lg);
}
.map-card {
  position: absolute; left: 18px; top: 18px; z-index: 3;
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 290px;
  background: rgba(12,12,13,.86); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.map-card .brand-logo { height: 40px; flex: 0 0 auto; }
.map-card-body { display: flex; flex-direction: column; gap: 4px; }
.map-card-body strong { font-family: var(--font-head); font-size: .98rem; }
.map-card-body span { color: var(--muted); font-size: .85rem; }
.map-card-body .btn { margin-top: 8px; padding: 8px 14px; font-size: .85rem; align-self: flex-start; }

/* Marcador de marca */
.hm-marker { position: relative; width: 46px; height: 46px; cursor: pointer; }
.hm-marker-logo {
  position: absolute; inset: 0; width: 46px; height: 46px;
  object-fit: contain; padding: 6px;
  background: rgba(12,12,13,.92);
  border: 2px solid var(--yellow); border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,.55);
}
.hm-marker-pulse {
  position: absolute; left: 50%; bottom: 0; width: 16px; height: 16px;
  transform: translate(-50%, 50%);
  background: rgba(255,196,46,.45); border-radius: 50%;
  animation: hm-pulse 1.8s ease-out infinite;
}
@keyframes hm-pulse {
  0%   { transform: translate(-50%, 50%) scale(.6); opacity: .8; }
  100% { transform: translate(-50%, 50%) scale(3.2); opacity: 0; }
}

/* Popup oscuro */
.hm-popup .maplibregl-popup-content {
  background: var(--ink-700); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.hm-popup .maplibregl-popup-close-button { color: var(--muted); font-size: 1.1rem; padding: 2px 6px; }
.hm-popup .maplibregl-popup-close-button:hover { color: var(--yellow); background: transparent; }
.hm-popup .maplibregl-popup-tip { display: none; }
.hm-popup-inner strong { font-family: var(--font-head); font-size: 1rem; display: block; margin-bottom: 4px; }
.hm-popup-inner p { color: var(--muted); font-size: .86rem; margin-bottom: 10px; }
.hm-popup-btn {
  display: inline-block; background: var(--yellow); color: #1a1305;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: 8px 14px; border-radius: 999px;
}
.hm-popup-btn:hover { background: var(--yellow-bright); }

/* Tipografía de los controles del mapa en oscuro */
.maplibregl-ctrl-group { background: var(--ink-700) !important; border: 1px solid var(--line) !important; }
.maplibregl-ctrl-group button { filter: invert(1) hue-rotate(180deg); }

@media (max-width: 680px) {
  .map { height: 380px; }
  .map-card { left: 12px; top: 12px; right: 12px; max-width: none; }
}

/* ===== Contacto ===== */
.section-contact { background: var(--ink-800); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.contact-copy > p { color: var(--muted); margin-bottom: 26px; max-width: 460px; }
.contact-list { list-style: none; display: grid; gap: 16px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { font-size: 1.2rem; }
.contact-list strong { font-family: var(--font-head); }
.contact-list a { color: var(--yellow); }

.contact-form {
  background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .85rem; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 7px; padding: 12px 14px;
  background: var(--ink-900); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: .95rem; transition: border-color .15s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--yellow);
}
.contact-form textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: .9rem; min-height: 1.2em; }
.form-note.ok { color: #4ade80; }
.form-note.err { color: #f87171; }

/* ===== Footer ===== */
.site-footer { background: var(--ink-900); border-top: 1px solid var(--line); padding-top: 48px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.footer-brand { display: flex; gap: 14px; align-items: center; max-width: 360px; }
.footer-brand strong { font-family: var(--font-head); }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--muted); font-size: .95rem; transition: color .15s; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--line); padding: 20px 22px; color: var(--muted); font-size: .85rem;
}
.footer-bottom a:hover { color: var(--yellow); }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #06351a; font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Animación de entrada ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card img { height: 360px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 8px;
    background: var(--ink-800); border-bottom: 1px solid var(--line);
    padding: 18px 22px; transform: translateY(-130%); transition: transform .3s ease; align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a:not(.btn) { padding: 8px 0; }
  .nav-toggle { display: flex; }
  .cards, .reviews, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 240px; }
  .g-tall, .g-wide { grid-row: span 1; grid-column: span 1; }
  .form-row.two { grid-template-columns: 1fr; }
  .hero-trust { gap: 22px; }
}
