/* ==========================================================
   Bloques Táchira — hoja de estilos principal
   ========================================================== */
:root {
  --clay-900: #1c0f0a;
  --clay-800: #2a1610;
  --clay-700: #4a2418;
  --clay-600: #8a3a1f;
  --clay-500: #c2512a;
  --clay-400: #e0703f;
  --clay-300: #f0a172;
  --sand-100: #faf5ee;
  --sand-200: #f3e9dc;
  --sand-300: #e6d5c0;
  --ink: #1f1410;
  --muted: #6d5a50;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(60, 20, 5, .35);
  --max: 1200px;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-100);
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--clay-500); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 7vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 999; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px; border: 0;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--clay-500); color: #fff; box-shadow: 0 12px 30px -10px rgba(194, 81, 42, .8); }
.btn-primary:hover { background: var(--clay-400); }
.btn-wa { background: var(--wa); color: #06331b; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .7); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-dark { background: var(--clay-800); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 18px 0;
}
.site-header.solid, .page-inner .site-header {
  background: rgba(28, 15, 10, .92); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .6); padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.25rem/1 var(--font-head); letter-spacing: -.02em; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font: 500 .68rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-300); }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 9px 14px; border-radius: 999px; color: rgba(255, 255, 255, .85);
  text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .2s, color .2s;
}
.menu a:hover, .menu a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-cta { padding: .75em 1.2em; font-size: .92rem; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; content: "";
}
.burger span { top: 21px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav-cta { display: none; }
  .menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    background: rgba(28, 15, 10, .97); backdrop-filter: blur(10px);
    opacity: 0; pointer-events: none; transition: opacity .35s; z-index: -1;
  }
  .menu a { font: 700 1.6rem/1 var(--font-head); padding: 14px 24px; }
  .nav-open .menu { opacity: 1; pointer-events: auto; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  color: #fff; overflow: hidden; background: var(--clay-900); isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -3; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.15); transition: opacity 1.8s ease, transform 9s linear;
}
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(28, 15, 10, .55), transparent 60%),
    linear-gradient(100deg, rgba(28, 15, 10, .95) 0%, rgba(28, 15, 10, .7) 45%, rgba(74, 36, 24, .35) 100%);
}
#brickCanvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner > * { min-width: 0; }
.hero-inner { padding: 130px 0 110px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  font-size: .85rem; letter-spacing: .04em; margin-bottom: 26px; backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--clay-500); display: grid; place-items: center; }
.eyebrow .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.5); opacity: .5; } }
.hero h1 { line-height: 1; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .3s; }
@keyframes rise { to { transform: none; } }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--clay-300), var(--clay-400), #ffcf9e, var(--clay-400));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s .3s cubic-bezier(.2, .8, .2, 1) forwards, shine 6s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 38em; color: rgba(255, 255, 255, .82); margin: 22px 0 34px; opacity: 0; animation: fade 1s .6s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fade 1s .8s forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator span { grid-area: 1/1; white-space: nowrap; font-weight: 700; opacity: 0; transform: translateY(40%); transition: .6s; color: #ffcf9e; }
.rotator span.on { opacity: 1; transform: none; }

.hero-card {
  justify-self: end; width: 100%; max-width: 360px; padding: 26px; border-radius: 24px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(14px);
  opacity: 0; animation: fade 1s 1s forwards; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.hero-card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.hero-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.hero-card li { display: flex; gap: 10px; align-items: center; font-size: .95rem; color: rgba(255, 255, 255, .88); }
.hero-card li::before { content: ""; width: 18px; height: 11px; border-radius: 2px; flex: none; background: linear-gradient(135deg, var(--clay-400), var(--clay-600)); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.hero-card .btn { width: 100%; justify-content: center; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px;
}
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 120px 0 90px; }
  .hero-card { justify-self: start; max-width: none; }
  .scroll-hint { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--clay-500); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: -22px -10px 0; position: relative; z-index: 3; box-shadow: 0 10px 30px -10px rgba(138, 58, 31, .6); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 800 1.35rem/1 var(--font-head); white-space: nowrap; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; }
.marquee span::after { content: ""; width: 26px; height: 14px; border-radius: 3px; background: var(--clay-800); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
section { position: relative; }
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-dark { background: var(--clay-900); color: #f5e9de; }
.section-dark .kicker { color: var(--clay-300); }
.section-sand { background: var(--sand-200); }
.kicker { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay-500); margin-bottom: 14px; }
.kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: rgba(245, 233, 222, .7); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }
.reveal[data-d="5"] { transition-delay: .5s; }

/* ---------- Productos ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
@media (max-width: 380px) { .products { grid-template-columns: 1fr; } }
.product {
  position: relative; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; transform-style: preserve-3d;
}
.product:hover { box-shadow: 0 30px 60px -20px rgba(60, 20, 5, .5); }
.product-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.product:hover .product-img img { transform: scale(1.08); }
.product-tag { position: absolute; top: 14px; left: 14px; background: rgba(28, 15, 10, .8); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body p { color: var(--muted); font-size: .98rem; flex: 1; }
.product-link { font-weight: 700; color: var(--clay-500); display: inline-flex; align-items: center; gap: 8px; }
.product-link::after { content: "→"; transition: transform .3s; }
.product:hover .product-link::after { transform: translateX(6px); }

.cta-card { background: linear-gradient(150deg, var(--clay-500), var(--clay-700)); color: #fff; justify-content: center; }
.cta-card .product-body { justify-content: center; padding: 34px 30px; }
.cta-card p { color: rgba(255, 255, 255, .85); }
.cta-card .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Split / Nosotros ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.stack-imgs { position: relative; aspect-ratio: 1/1.05; }
.stack-imgs img { position: absolute; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow); }
.stack-imgs img:nth-child(1) { inset: 0 22% 20% 0; width: 78%; height: 80%; }
.stack-imgs img:nth-child(2) { right: 0; bottom: 0; width: 55%; height: 55%; border: 8px solid var(--sand-100); }
.section-sand .stack-imgs img:nth-child(2) { border-color: var(--sand-200); }
.badge-float {
  position: absolute; left: -10px; bottom: 10%; background: var(--clay-500); color: #fff; padding: 18px 22px; border-radius: 18px;
  font: 800 1.1rem/1.15 var(--font-head); box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; max-width: 190px;
}
.badge-float small { display: block; font: 500 .8rem/1.3 var(--font-body); opacity: .85; margin-top: 4px; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.checks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before {
  content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--clay-500); color: #fff; font-weight: 800; font-size: .9rem; margin-top: 2px;
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature {
  padding: 30px 26px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .3s, transform .3s, border-color .3s;
}
.feature:hover { background: rgba(255, 255, 255, .08); transform: translateY(-6px); border-color: rgba(240, 161, 114, .4); }
.feature-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--clay-400), var(--clay-600)); margin-bottom: 20px; }
.feature-ico svg { width: 28px; height: 28px; color: #fff; }
.feature p { color: rgba(245, 233, 222, .7); margin: 0; font-size: .98rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 26px 10px; border-top: 2px solid rgba(240, 161, 114, .35); }
.stat b { display: block; font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--font-head); color: var(--clay-300); }
.stat span { font-size: .92rem; color: rgba(245, 233, 222, .7); }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-form { padding: clamp(26px, 4vw, 46px); display: grid; gap: 18px; }
.calc-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .calc-form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--sand-300); background: var(--sand-100);
  font: 500 1rem var(--font-body); color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--clay-500); }
.calc-out { background: linear-gradient(160deg, var(--clay-700), var(--clay-900)); color: #fff; padding: clamp(26px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.calc-out .big { font: 800 clamp(3rem, 7vw, 4.8rem)/1 var(--font-head); color: var(--clay-300); }
.calc-out p { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.calc-note { font-size: .82rem !important; opacity: .7; }

/* ---------- Galería ---------- */
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery button {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  break-inside: avoid; background: var(--sand-300); position: relative;
}
.gallery img { width: 100%; height: auto; transition: transform .6s, filter .6s; }
.gallery button:hover img { transform: scale(1.06); filter: saturate(1.15); }
.gallery button::after {
  content: attr(data-cap); position: absolute; inset: auto 0 0; padding: 30px 14px 12px; color: #fff; text-align: left;
  font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .3s;
}
.gallery button:hover::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 8, 5, .94); display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; animation: fadein .3s; }
@keyframes fadein { from { opacity: 0; } }
.lightbox img { max-height: 86vh; max-width: min(1100px, 100%); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox p { color: #fff; text-align: center; margin-top: 14px; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }

/* ---------- Zonas ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 10px; }
.zones span, .zones a {
  padding: 10px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--sand-300); font-weight: 600; font-size: .95rem;
  transition: .25s; color: var(--ink); text-decoration: none;
}
.zones span:hover { background: var(--clay-500); color: #fff; border-color: var(--clay-500); transform: translateY(-3px); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: 22px; padding: 30px 24px; position: relative; box-shadow: 0 10px 30px -18px rgba(60, 20, 5, .4); }
.step::before { counter-increment: s; content: "0" counter(s); font: 800 3rem/1 var(--font-head); color: var(--sand-300); display: block; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; padding: 0 24px; box-shadow: 0 8px 24px -16px rgba(60, 20, 5, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 30px 22px 0; font: 700 1.08rem/1.35 var(--font-head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.6rem; color: var(--clay-500); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; border-radius: 32px; overflow: hidden; padding: clamp(40px, 7vw, 90px); color: #fff; text-align: center;
  background: linear-gradient(135deg, rgba(194, 81, 42, .93), rgba(74, 36, 24, .95)), var(--cta-img, none) center/cover;
}
.cta h2 { max-width: 16em; margin-inline: auto; }
.cta p { max-width: 36em; margin: 0 auto 30px; color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.cta .btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
@media (max-width: 360px) { .posts { grid-template-columns: 1fr; } }
.post-card { background: #fff; border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .35s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-8px); }
.post-card .img { aspect-ratio: 16/10; overflow: hidden; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.post-card:hover img { transform: scale(1.07); }
.post-card .body { padding: 22px 24px 26px; }
.post-card .meta { font-size: .8rem; font-weight: 700; color: var(--clay-500); text-transform: uppercase; letter-spacing: .1em; }
.post-card h3 { margin: 8px 0 10px; font-size: 1.25rem; }
.post-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Páginas interiores ---------- */
.page-hero { position: relative; padding: 170px 0 90px; color: #fff; overflow: hidden; background: var(--clay-900); isolation: isolate; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kb 18s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1%, -1%); } }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(28, 15, 10, .94) 20%, rgba(74, 36, 24, .55)); }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); max-width: 16em; }
.page-hero p { max-width: 40em; color: rgba(255, 255, 255, .8); font-size: 1.12rem; }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: rgba(255, 255, 255, .65); }
.crumbs a { color: var(--clay-300); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.prose { max-width: 760px; margin-inline: auto; font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 18px; margin: 30px 0; box-shadow: var(--shadow); width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--sand-300); }
.prose th { background: var(--sand-200); font-family: var(--font-head); }
.prose blockquote { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--clay-500); background: var(--sand-200); border-radius: 0 14px 14px 0; }
.post-meta { color: rgba(255, 255, 255, .7); font-size: .95rem; }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 28px 0; }
.spec div { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 8px 24px -16px rgba(60, 20, 5, .4); }
.spec b { display: block; font-family: var(--font-head); color: var(--clay-500); margin-bottom: 4px; }
.spec span { color: var(--muted); font-size: .95rem; }
.product-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.product-gallery img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; width: 100%; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.contact-card { background: #fff; border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.contact-card h3 { display: flex; align-items: center; gap: 10px; }
.contact-card .num { font: 800 1.6rem/1.2 var(--font-head); color: var(--clay-800); margin: 6px 0 18px; display: block; text-decoration: none; }
.form { display: grid; gap: 16px; }
.form textarea { width: 100%; min-height: 120px; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--sand-300); background: var(--sand-100); font: 500 1rem var(--font-body); resize: vertical; }
.form textarea:focus { outline: none; border-color: var(--clay-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--clay-900); color: rgba(245, 233, 222, .7); padding: 80px 0 30px; font-size: .95rem; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 8px;
  background: repeating-linear-gradient(90deg, var(--clay-500) 0 60px, var(--clay-900) 60px 64px);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(245, 233, 222, .75); text-decoration: none; }
.site-footer a:hover { color: var(--clay-300); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* ---------- WhatsApp widget ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 120; width: 64px; height: 64px; border-radius: 50%;
  background: var(--wa); border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  box-shadow: 0 14px 34px -8px rgba(18, 140, 126, .7); transition: transform .3s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 34px; height: 34px; transition: transform .35s, opacity .35s; position: absolute; inset: 0; margin: auto; }
.wa-fab .ico-close { opacity: 0; transform: rotate(-90deg); width: 26px; height: 26px; }
.wa-open .wa-fab .ico-wa { opacity: 0; transform: rotate(90deg); }
.wa-open .wa-fab .ico-close { opacity: 1; transform: none; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: ring 2.4s infinite; z-index: -1; }
.wa-open .wa-fab::before { animation: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-bubble {
  position: fixed; right: 96px; bottom: 36px; z-index: 119; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 14px 14px 4px 14px;
  font-size: .9rem; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(10px); transition: .4s; pointer-events: none;
}
.wa-bubble.show { opacity: 1; transform: none; }
.wa-open .wa-bubble { opacity: 0; }
.wa-panel {
  position: fixed; right: 22px; bottom: 100px; z-index: 121; width: min(360px, calc(100vw - 32px)); border-radius: 22px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); transform-origin: bottom right;
  transform: scale(.85) translateY(20px); opacity: 0; pointer-events: none; transition: .35s cubic-bezier(.2, .9, .3, 1.2);
}
.wa-open .wa-panel { transform: none; opacity: 1; pointer-events: auto; }
.wa-head { background: linear-gradient(135deg, var(--wa-dark), #075e54); color: #fff; padding: 22px 22px 20px; }
.wa-head b { display: block; font: 800 1.15rem/1.2 var(--font-head); }
.wa-head span { font-size: .88rem; opacity: .85; }
.wa-list { padding: 14px; display: grid; gap: 10px; background: #efeae2; }
.wa-list p { margin: 4px 6px 2px; font-size: .8rem; color: #667; }
.wa-agent {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: #fff; text-decoration: none; color: var(--ink);
  border-left: 4px solid var(--wa); transition: transform .25s, box-shadow .25s;
}
.wa-agent:hover { transform: translateX(-4px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }
.wa-avatar { position: relative; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--clay-400), var(--clay-700)); display: grid; place-items: center; color: #fff; font: 800 1rem var(--font-head); flex: none; }
.wa-avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--wa); border: 2px solid #fff; }
.wa-agent b { display: block; font-size: 1rem; }
.wa-agent small { color: var(--muted); font-size: .85rem; }
.wa-agent svg { margin-left: auto; width: 26px; height: 26px; color: var(--wa); flex: none; }

@media (max-width: 520px) {
  .wa-fab { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .wa-panel { right: 16px; bottom: 86px; }
  .wa-bubble { right: 84px; bottom: 28px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  #brickCanvas { display: none; }
}
