/* Ebanistería Amao — estilos */
:root {
  --bg: #F7F6F3;
  --bg-alt: #EFECE6;
  --surface: #FFFFFF;
  --ink: #242322;
  --ink-soft: #5A554F;
  --walnut: #6B4331;
  --walnut-dark: #553425;
  --copper: #A7704E;
  --copper-light: #D9A889;
  --green: #15803D;
  --green-dark: #116632;
  --green-wa: #25D366;
  --line: #DEDAD2;
  --error: #A1321F;
  --radius: 4px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --header-h: 64px;
  --tabs-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--tabs-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--walnut); text-underline-offset: 3px; }
a:hover { color: var(--walnut-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 8px; color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 500; color: var(--walnut); margin: 0 0 14px; letter-spacing: 0.02em; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--copper); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 500 0.9375rem/1 var(--sans);
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--walnut); color: #fff; }
.btn--primary:hover { background: var(--walnut-dark); color: #fff; }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.btn--green:hover { background: var(--green-dark); color: #fff; box-shadow: 0 6px 18px -8px rgba(21,128,61,.55); }
.btn--green-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--green-outline:hover { background: var(--green); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { min-height: 54px; font-size: 1rem; }
.btn--block { width: 100%; }
.i-wa { width: 18px; height: 18px; flex-shrink: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--green); margin-top: 20px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover { color: var(--green-dark); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Barra superior ---------- */
.topbar { display: none; background: var(--ink); color: #CFCAC2; font-size: 0.8125rem; }
.topbar p { margin: 0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__wa { color: #fff; text-decoration: none; }
.topbar__wa:hover { color: var(--copper-light); }
@media (min-width: 768px) { .topbar { display: block; } }

.social-icons { display: flex; gap: 4px; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; color: currentColor; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.social-icons a:hover { background: rgba(255,255,255,.1); color: #fff; }
.social-icons svg { width: 16px; height: 16px; }
.social-icons a.is-pending { opacity: .45; border: 1px dashed currentColor; }
.social-icons--footer { margin-top: 16px; gap: 8px; }
.social-icons--footer a { width: 40px; height: 40px; border: 1px solid #45423E; }
.social-icons--footer svg { width: 18px; height: 18px; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 243, 0.95);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__logo { height: 42px; width: auto; flex-shrink: 0; display: block; }
@media (max-width: 380px) { .brand__logo { height: 34px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; white-space: nowrap; }
.brand__tag { font-size: 0.6875rem; color: var(--ink-soft); letter-spacing: 0.04em; margin-top: 2px; }
.header__actions { display: flex; align-items: center; gap: 8px; }

.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; padding: 8px 2px; position: relative; }
.nav a:hover { color: var(--walnut); }

.menu-btn {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1099px) {
  /* Menú móvil: panel a pantalla completa bajo la cabecera */
  .nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    height: calc(100vh - var(--nav-top, var(--header-h)));
    height: calc(100dvh - var(--nav-top, var(--header-h)));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 8px var(--gutter) max(24px, env(safe-area-inset-bottom));
  }
  .nav.is-open > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--line);
    font-family: var(--serif); font-size: 1.6rem; line-height: 1.2;
  }
  .nav.is-open > a::after { content: "→"; font-family: var(--sans); font-size: 1rem; color: var(--copper); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 380px) { .brand__tag { display: none; } .brand__name { font-size: 1.1rem; } }
@media (min-width: 1100px) {
  .nav { display: flex; gap: 26px; margin-left: auto; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--copper); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
  .nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
  .nav a[aria-current="true"] { color: var(--walnut); }
  .menu-btn { display: none; }
  .header__actions { margin-left: 12px; }
}

/* ---------- Inicio ---------- */
.hero { padding: 28px 0 0; }
.hero__grid { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(1.9rem, 6.6vw, 3.4rem); text-wrap: balance; }
@media (min-width: 900px) { .hero h1 { font-size: clamp(2.4rem, 3.9vw, 3.4rem); } }
.lead { font-size: 1.0625rem; color: var(--ink-soft); margin: 18px 0 26px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { flex: 1 1 200px; }

.hero__collage { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 48vh; min-height: 300px; }
.hero__collage figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.hero__collage img { width: 100%; height: 100%; object-fit: cover; }
.hero__main { grid-row: 1 / 3; }
.hero__main img { object-position: center 30%; }

.trust {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust li { padding: 16px 0; display: flex; flex-direction: column; gap: 2px; }
.trust li + li { border-top: 1px solid var(--line); }
.trust strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.trust span { font-size: 0.875rem; color: var(--ink-soft); }

@media (min-width: 700px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
  .trust li { padding: 22px 24px; }
  .trust li:first-child { padding-left: 0; }
  .trust li + li { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .hero { padding: 56px 0 0; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__collage { height: min(640px, 74vh); }
  .trust { margin-top: 56px; }
}

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section--tight { padding-bottom: 32px; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 32px; max-width: 42em; }
.section__head--row { max-width: none; }
.section h2, .works h2 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); }
.section__intro { color: var(--ink-soft); margin: 12px 0 0; max-width: 34em; }
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .section--tight { padding-bottom: 40px; }
  .section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .section__head--row .section__intro { margin: 0; text-align: right; max-width: 26em; }
}

/* ---------- Trabajos por sección ---------- */
.works { padding: 64px 0 32px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .works { padding: 96px 0 48px; } }

.cat-tabs {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(247, 246, 243, 0.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.cat-tabs__scroll { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.cat-tabs__scroll::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  font-size: 0.875rem; font-weight: 500; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cat-tab:hover { border-color: var(--ink); color: var(--ink); }
.cat-tab[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-tab__n { font-weight: 400; opacity: .75; }

.cat-section { padding: 48px 0 16px; }
.cat-section + .cat-section { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .cat-section { padding: 72px 0 24px; } }
.cat-head { display: grid; gap: 14px; margin-bottom: 28px; }
.cat-head__n { font-family: var(--serif); font-size: 1rem; color: var(--copper); margin: 0 0 6px; display: flex; align-items: center; gap: 12px; }
.cat-head__group { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; color: var(--ink-soft); padding-left: 12px; border-left: 1px solid var(--line); }
.cat-head h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cat-head__desc { color: var(--ink-soft); margin: 8px 0 0; max-width: 34em; }
.cat-head__side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cat-head__count { font-size: 0.875rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .cat-head { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .cat-head__side { justify-content: flex-end; }
}

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; } }

.card__btn { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: zoom-in; color: inherit; font: inherit; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
.card__media::after {
  content: ""; position: absolute; inset: 45% 0 0 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,18,16,0), rgba(20,18,16,.6));
  opacity: 0; transition: opacity .3s ease;
}
.card__zoom {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(247, 246, 243, 0.95); color: var(--ink); font-size: 0.8125rem; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.card__btn:hover .card__media img, .card__btn:focus-visible .card__media img { transform: scale(1.05); }
.card__btn:hover .card__media::after, .card__btn:focus-visible .card__media::after { opacity: 1; }
.card__btn:hover .card__zoom, .card__btn:focus-visible .card__zoom { opacity: 1; transform: none; }
.card__title { background: linear-gradient(var(--copper), var(--copper)) 0 100% / 0 1px no-repeat; transition: background-size .35s ease; display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.card__btn:hover .card__title, .card__btn:focus-visible .card__title { background-size: 100% 1px; }
.card__title + .card__desc { margin-top: 6px; }
@media (hover: none) { .card__zoom { opacity: 1; transform: none; padding: 6px 12px; font-size: 0.75rem; } }
.card__views {
  position: absolute; right: 10px; top: 10px; z-index: 1;
  background: rgba(247, 246, 243, 0.92); color: var(--ink); font-size: 0.75rem; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
}
.card__body { padding: 14px 2px 0; }
.card__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; margin: 0 0 4px; }
.card__desc { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }

.cat-more { display: flex; justify-content: center; margin-top: 32px; }
.cat-more .btn[hidden] { display: none; }

/* ---------- Servicios ---------- */
.split { display: grid; gap: 8px; }
@media (min-width: 900px) { .split { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; } }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid #D3CEC5; counter-reset: s; }
.services li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid #D3CEC5; font-family: var(--serif); font-size: 1.25rem;
  counter-increment: s;
}
.services li::before { content: counter(s, decimal-leading-zero); font-family: var(--sans); font-size: 0.75rem; color: var(--copper); min-width: 20px; }
@media (min-width: 600px) { .services { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* ---------- Proceso ---------- */
.process { display: grid; gap: 32px; }
@media (min-width: 1000px) { .process { grid-template-columns: 1fr 340px; gap: 48px; align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 0 32px; } }
.steps li { padding: 22px 0; border-top: 1px solid var(--line); }
.steps__n { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--copper); margin-bottom: 14px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }
.checklist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.checklist h3 { font-size: 1.3rem; margin-bottom: 14px; }
.checklist ul { list-style: none; margin: 0 0 22px; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}

/* ---------- Historia ---------- */
.section--dark { background: var(--ink); color: #D9D5CE; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--copper-light); }

/* ---------- Preguntas ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  background: linear-gradient(var(--walnut), var(--walnut)) center / 12px 1.5px no-repeat,
              linear-gradient(var(--walnut), var(--walnut)) center / 1.5px 12px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--walnut); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 40em; }

/* ---------- Redes ---------- */
.social-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.social-cards > li { min-width: 0; }
@media (min-width: 800px) { .social-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.social-card {
  display: flex; align-items: center; gap: 16px; height: 100%;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.social-card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -24px rgba(36,35,34,.5); }
.social-card__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 999px; color: #fff; background: var(--ink); }
.social-card__icon svg { width: 22px; height: 22px; }
.social-card--whatsapp .social-card__icon { background: var(--green); }
.social-card--facebook .social-card__icon { background: #1B5FC1; }
.social-card--tiktok .social-card__icon { background: #111; }
.social-card--youtube .social-card__icon { background: #C4221A; }
.social-card__text { display: flex; flex-direction: column; min-width: 0; }
.social-card__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.social-card__handle { font-size: 0.875rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-card__go { margin-left: auto; color: var(--ink-soft); transition: transform .15s; }
.social-card:hover .social-card__go { transform: translateX(3px); color: var(--ink); }
.social-card.is-pending { border-style: dashed; background: transparent; }
.social-card.is-pending .social-card__icon { opacity: .55; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #CFCAC2; padding: 64px 0 24px; font-size: 0.9375rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--copper-light); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.footer__brand { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 8px; }
.footer__about p:not(.footer__brand) { max-width: 26em; }
.footer__label { font-size: 0.75rem; font-weight: 600; color: var(--copper-light); letter-spacing: 0.04em; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 8px; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #3B3936; font-size: 0.8125rem; }
.footer__legal p { margin: 0; }
@media (max-width: 767px) { .footer { padding-bottom: 96px; } }

/* ---------- Botón flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 16px; border-radius: 999px;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 500;
  box-shadow: 0 10px 24px -8px rgba(17, 102, 50, .55), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .25s, opacity .25s, background-color .15s;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { background: var(--green-dark); color: #fff; }
.wa-float.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.wa-float__label { display: none; }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; padding: 0 20px 0 16px; } .wa-float__label { display: inline; } }

/* ---------- Vista ampliada ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #151413; color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: #151413; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px var(--gutter); }
.lightbox__count { margin: 0; font-size: 0.875rem; color: #BDB8B0; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 8px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; }
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: #fff;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-btn[hidden] { display: none; }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(21, 20, 19, 0.6); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lightbox__info {
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px var(--gutter) max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #2E2C2A;
}
.lightbox__text h3 { color: #fff; font-size: 1.3rem; margin: 0 0 4px; }
.lightbox__text p { margin: 0; color: #BDB8B0; font-size: 0.9375rem; }
.lightbox__text .lightbox__cat { font-size: 0.75rem; color: var(--copper-light); margin-bottom: 4px; }
.lightbox__thumbs { display: flex; gap: 6px; margin-top: 12px; }
.lightbox__thumbs:empty { display: none; }
.lb-thumb { width: 44px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: #2E2C2A; cursor: pointer; opacity: .6; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb[aria-current="true"] { border-color: #fff; opacity: 1; }
.lb-thumb:hover { opacity: 1; }
@media (min-width: 768px) {
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
  .lightbox__stage { padding: 0 88px; }
  .lightbox__info { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px 20px; }
  .lightbox__info .btn { flex-shrink: 0; }
}
body.lb-open { overflow: hidden; }

/* ---------- Aparición suave ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Motion stays finite, with no autoplay or continuous background loops. */
@keyframes amao-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes amao-photo {
  from { opacity: 0; transform: scale(1.045); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: amao-enter .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero__text > :nth-child(2) { animation-delay: .1s; }
  .hero__text > :nth-child(3) { animation-delay: .2s; }
  .hero__text > :nth-child(4) { animation-delay: .3s; }
  .hero__collage img { animation: amao-photo 1.1s ease both; }
  .hero__side:nth-child(2) img { animation-delay: .16s; }
  .hero__side:nth-child(3) img { animation-delay: .3s; }
  .trust li { animation: amao-enter .7s ease .35s both; }
  .trust li:nth-child(2) { animation-delay: .45s; }
  .trust li:nth-child(3) { animation-delay: .55s; }
  .btn { transition: transform .22s ease, box-shadow .22s ease, background-color .2s, color .2s, border-color .2s; }
  .btn:active { transform: translateY(1px) scale(.98); }
  .faq details[open] p, .lightbox[open] .lightbox__info { animation: amao-enter .3s ease both; }
  .lightbox[open] .lightbox__stage { animation: amao-photo .35s ease both; }
  .gallery > li:not(.reveal) { animation: amao-enter .45s ease both; }
  .nav.is-open { animation: amao-fade .25s ease both; }
  .nav.is-open > a { animation: amao-enter .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 6) * 45ms + 40ms); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(36,35,34,.45); }
  .hero__collage figure { transition: transform .5s ease; }
  .hero__collage figure:hover { transform: translateY(-4px); }
}

/* ---------- Cobertura ---------- */
.coverage { display: grid; gap: 32px; }
@media (min-width: 1000px) { .coverage { grid-template-columns: 1fr 340px; gap: 48px; align-items: start; } }
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid #D3CEC5; }
@media (min-width: 600px) { .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.zones li { padding: 18px 0; border-bottom: 1px solid #D3CEC5; }
.zones h3 { font-size: 1.2rem; margin-bottom: 6px; }
.zones p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.zones__prov h3 { color: var(--walnut); }
.checklist__intro { font-size: 0.9375rem; color: var(--ink-soft); margin: -6px 0 8px; }
.checklist__note { font-size: 0.8125rem; color: var(--ink-soft); margin: 0; }

/* ---------- Logo en el pie ---------- */
.footer__logo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer__logo img { width: 220px; max-width: 100%; height: auto; display: block; }
.footer__logo .footer__brand { margin: 0; }
.footer__tag { margin: 2px 0 0; font-size: 0.75rem; color: var(--copper-light); letter-spacing: 0.04em; }
#footer-cats ul + .footer__label { margin-top: 20px; }

/* ---------- Utilidades ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Estado abierto / cerrado ---------- */
.topbar__left { display: flex; align-items: center; gap: 14px; }
.topbar__left a { color: #fff; text-decoration: none; }
.topbar__left a:hover { color: var(--copper-light); }
.open-status { display: inline-flex; align-items: center; gap: 7px; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B8B2A9; flex-shrink: 0; }
.open-status.is-open::before { background: #3FB56B; box-shadow: 0 0 0 3px rgba(63, 181, 107, .22); }
.open-status--lg { font-weight: 500; color: var(--ink); margin: 0 0 10px; }
.open-status--lg.is-open { color: var(--green); }

/* ---------- Ubicación ---------- */
.visit { display: grid; gap: 28px; }
@media (min-width: 900px) { .visit { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: stretch; } }
.visit__data { margin: 0 0 24px; border-top: 1px solid var(--line); }
.visit__data > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.visit__data dt { font-size: 0.8125rem; font-weight: 600; margin-bottom: 4px; }
.visit__data dd { margin: 0; color: var(--ink-soft); }
.visit__data dd a { color: var(--green); font-weight: 500; }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; font-size: 0.9375rem; }
.hours th { text-align: left; font-weight: 400; padding: 5px 16px 5px 0; }
.hours td { text-align: right; padding: 5px 0; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 600; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.visit__actions .btn { flex: 1 1 160px; }
.visit .link-arrow { margin-top: 18px; }

.map { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--ink); min-height: 340px; color: #fff; text-decoration: none; }
.map__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(.3); }
.map__cover { position: relative; z-index: 1; height: 100%; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 20px; color: #fff; }
.map__pin { display: block; width: 44px; height: 44px; color: #fff; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.map__name { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 4px; }
.map__addr { margin: 0 0 20px; color: #E4DFD8; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg-alt); color: var(--ink); }

/* ---------- Vista ampliada: acciones y aviso ---------- */
.lightbox__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lightbox__actions .btn { flex: 1 1 auto; }
.btn--dark-ghost { background: transparent; color: #fff; border-color: #5A5651; }
.btn--dark-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (min-width: 768px) { .lightbox__actions { flex-wrap: nowrap; flex-shrink: 0; } }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 10; margin: 0;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Interfaz y animación (v9)
   Todo movimiento es breve y se ejecuta una sola vez; se
   desactiva con "reducir movimiento".
   ========================================================= */
@keyframes amao-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes amao-slide { from { opacity: 0; transform: translateX(var(--dx, 0)) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes amao-spin { to { transform: rotate(360deg); } }
@keyframes amao-drop { 0% { opacity: 0; transform: translateY(-18px); } 60% { opacity: 1; transform: translateY(3px); } 100% { transform: none; } }
@keyframes amao-pop { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }

::selection { background: rgba(167, 112, 78, .28); color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }

/* Palabra destacada en los títulos */
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--walnut); }
.section--dark h2 em { color: var(--copper-light); }

/* Cabecera: sombra al desplazarse y barra de progreso de lectura */
.header { transition: box-shadow .3s ease, background-color .3s ease; }
.header.is-scrolled { background: rgba(247, 246, 243, 0.98); box-shadow: 0 10px 30px -22px rgba(36, 35, 34, .45); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--copper), var(--walnut)); transform: scaleX(0); transform-origin: left; }
body.menu-open .progress { opacity: 0; }
body.menu-open .wa-float { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* Menú: botón de cotizar dentro del panel móvil */
.menu-btn { transition: border-color .2s, background-color .2s; }
.menu-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Inicio */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto auto; width: 58%; height: 78%;
  background: radial-gradient(ellipse at 70% 30%, rgba(167, 112, 78, .13), rgba(167, 112, 78, 0) 65%);
  pointer-events: none;
}
.hero__collage figure { position: relative; }
.hero__link { position: relative; display: block; height: 100%; color: #fff; text-decoration: none; }
.hero__link::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(180deg, rgba(20,18,16,0), rgba(20,18,16,.55)); opacity: .9; transition: opacity .3s; }
.hero__link img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.hero__link:hover img, .hero__link:focus-visible img { transform: scale(1.04); }
.hero__tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: .01em;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(247, 246, 243, 0.94); color: var(--ink);
  transition: background-color .2s, color .2s;
}
.hero__tag::after { content: "→"; transition: transform .2s; }
.hero__link:hover .hero__tag, .hero__link:focus-visible .hero__tag { background: var(--ink); color: #fff; }
.hero__link:hover .hero__tag::after { transform: translateX(3px); }
@media (max-width: 599px) { .hero__side .hero__tag { left: 8px; bottom: 8px; font-size: 0.6875rem; padding: 4px 9px; } .hero__side .hero__tag::after { display: none; } }
@media (min-width: 900px) {
  /* Marco decorativo desplazado detrás del collage */
  .hero__collage { position: relative; margin: 0 18px 18px 0; }
  .hero__collage::before {
    content: ""; position: absolute; z-index: -1; inset: 18px -18px -18px 18px;
    border: 1px solid var(--copper-light); border-radius: var(--radius);
  }
}

/* Franja de confianza con íconos */
.trust li { flex-direction: row; align-items: flex-start; gap: 14px; }
.trust__text { display: flex; flex-direction: column; gap: 2px; }
.trust__icon {
  flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  fill: none; stroke: var(--walnut); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Encabezados de sección: la línea del antetítulo se dibuja al aparecer */
.js .reveal .eyebrow::before { width: 0; transition: width .7s cubic-bezier(.2,.7,.2,1) .25s; }
.js .reveal.is-visible .eyebrow::before { width: 24px; }

/* Fotos: aparecen con un fundido al terminar de cargar */
.js img[data-fade] { opacity: 0; transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js img[data-fade].is-loaded { opacity: 1; }
.card__media { background: linear-gradient(135deg, var(--bg-alt), #E6E1D8); }

/* Pestañas de categorías: indicador deslizante y sombra al fijarse */
.cat-tabs { transition: box-shadow .3s ease; }
.cat-tabs.is-stuck { box-shadow: 0 12px 24px -20px rgba(36, 35, 34, .5); }
.cat-tabs__scroll { position: relative; }
.cat-tabs__ind {
  position: absolute; left: 0; top: 10px; height: 40px; width: 0; z-index: 0;
  background: var(--ink); border-radius: 999px; opacity: 0; pointer-events: none;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), width .45s cubic-bezier(.2,.7,.2,1), opacity .2s;
}
.cat-tab { position: relative; z-index: 1; background: transparent; }
.cat-tab:hover { background: var(--surface); }
.cat-tab[aria-current="true"] { background: transparent; border-color: transparent; color: #fff; }
.cat-tab[aria-current="true"]:hover { background: transparent; color: #fff; }

/* Tarjetas de obras: la foto se descubre al aparecer */
.js .gallery > li.reveal .card__media img { transform: scale(1.08); }
.js .gallery > li.reveal.is-visible .card__media img { transform: none; transition-duration: .6s, 1.2s; }
.js .gallery > li.reveal.is-visible .card__btn:hover .card__media img { transform: scale(1.05); transition-duration: .6s, .8s; }
.card__views { display: inline-flex; align-items: center; gap: 5px; }
.card__views::before { content: ""; width: 10px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }

/* Servicios */
.services li { transition: color .25s ease, padding-left .35s cubic-bezier(.2,.7,.2,1); }
.services li::before { transition: color .25s; }
@media (hover: hover) { .services li:hover { color: var(--walnut); padding-left: 8px; } .services li:hover::before { color: var(--walnut); } }
.js .services.reveal { opacity: 1; transform: none; }
.js .services.reveal li { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease, color .25s, padding-left .35s; }
.js .services.reveal.is-visible li { opacity: 1; transform: none; }
.js .services.reveal.is-visible li:nth-child(2) { transition-delay: 40ms; }
.js .services.reveal.is-visible li:nth-child(3) { transition-delay: 80ms; }
.js .services.reveal.is-visible li:nth-child(4) { transition-delay: 120ms; }
.js .services.reveal.is-visible li:nth-child(5) { transition-delay: 160ms; }
.js .services.reveal.is-visible li:nth-child(6) { transition-delay: 200ms; }
.js .services.reveal.is-visible li:nth-child(7) { transition-delay: 240ms; }
.js .services.reveal.is-visible li:nth-child(8) { transition-delay: 280ms; }
.js .services.reveal.is-visible li:nth-child(9) { transition-delay: 320ms; }
.js .services.reveal.is-visible li:nth-child(10) { transition-delay: 360ms; }
.js .services.reveal.is-visible li:nth-child(11) { transition-delay: 400ms; }
.js .services.reveal.is-visible li:nth-child(12) { transition-delay: 440ms; }

/* Proceso: la línea de cada paso se dibuja en cobre */
.steps li { position: relative; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--copper); transform: scaleX(0); transform-origin: left;
  transition: transform .9s cubic-bezier(.2,.7,.2,1) calc(var(--reveal-delay, 0ms) + 250ms);
}
.steps li.is-visible::before, html:not(.js) .steps li::before { transform: scaleX(1); }
.steps__n { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--copper-light); font-size: 1.5rem; background: var(--surface); }
.checklist { box-shadow: 0 24px 48px -36px rgba(36, 35, 34, .45); }

/* Historia */

/* Preguntas: apertura suave */
.faq details[open] summary { color: var(--walnut); }
.faq summary { transition: color .2s, padding-left .3s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .faq summary:hover { padding-left: 6px; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.2,.7,.2,1), content-visibility .35s allow-discrete; }
    .faq details[open]::details-content { height: auto; }
  }
}

/* Cobertura */
.zones h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.zones__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: .02em;
  color: var(--walnut); background: rgba(167, 112, 78, .14); padding: 3px 9px; border-radius: 999px;
}
.zones__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }

/* Ubicación */
.map { box-shadow: 0 24px 48px -36px rgba(36, 35, 34, .55); }
.js .map.reveal.is-visible .map__pin { animation: amao-drop .7s cubic-bezier(.2,.7,.2,1) .35s both; }
.hours tr.is-today th::before { content: "Hoy · "; color: var(--walnut); font-weight: 600; }

/* Redes */
.social-card__icon { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.social-card:hover .social-card__icon { transform: scale(1.06) rotate(-4deg); }

/* Botón flotante: entra una vez al cargar */
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: amao-pop .5s cubic-bezier(.2,.7,.2,1) 1.2s backwards; }
}

/* Vista ampliada: transición entre fotos */
.lightbox__stage img { transition: opacity .25s ease; }
.lightbox__stage img.is-loading { opacity: .25; }
.lightbox__stage img.is-in { animation: amao-slide .45s cubic-bezier(.2,.7,.2,1) both; }
.lightbox__stage.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 2px solid rgba(255,255,255,.18); border-top-color: #fff; border-radius: 50%;
  animation: amao-spin .8s linear infinite;
}
.lb-thumb { transition: opacity .2s, border-color .2s, transform .2s; }
.lb-thumb:hover { transform: translateY(-2px); }
.lb-prev, .lb-next { transition: background-color .2s, transform .2s; }
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

/* Pie */
.footer a { transition: color .2s; }

/* =========================================================
   Portada (v11): fondo oscuro cálido, foco en las fotos
   ========================================================= */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(167, 112, 78, .28), rgba(167, 112, 78, 0) 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(107, 67, 49, .35), rgba(107, 67, 49, 0) 70%),
    #1F1D1B;
  color: #CFCAC2;
  padding: 36px 0 8px;
  overflow: hidden;
}
.hero::before { display: none; }
.hero .eyebrow { color: var(--copper-light); }
.hero .eyebrow::before { background: var(--copper-light); }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--copper-light); }
.hero .lead { color: #CFCAC2; }
.hero .btn--dark-ghost { border-color: rgba(255, 255, 255, .35); }
.hero .btn--dark-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero :focus-visible { outline-color: var(--copper-light); }

.hero__collage figure { background: #2E2C2A; }
.hero__collage::before { border-color: rgba(217, 168, 137, .45); }
.hero__link::after { background: linear-gradient(180deg, rgba(20,18,16,0), rgba(20,18,16,.6)); }

/* Franja de confianza sobre fondo oscuro */
.hero .trust { border-color: rgba(255, 255, 255, .12); margin-top: 40px; }
.hero .trust li + li { border-color: rgba(255, 255, 255, .12); }
.hero .trust strong { color: #fff; }
.hero .trust span { color: #A8A29A; }
.hero .trust__icon { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); stroke: var(--copper-light); }
.hero .trust { border-bottom: 0; }

@media (max-width: 599px) {
  .hero__cta .btn { flex: 1 1 100%; }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 8px; }
  .hero h1 { font-size: clamp(2.5rem, 3.9vw, 3.6rem); }
  .hero__grid { gap: 72px; }
  .hero__collage { height: min(620px, 72vh); }
  .hero .trust { margin-top: 64px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__text > :nth-child(5) { animation-delay: .4s; }
  .hero__text > :nth-child(6) { animation-delay: .5s; }
}

[tabindex="-1"]:focus { outline: none; }

/* Cotización: contacto directo */

/* Pie: categorías en dos columnas */
@media (min-width: 600px) {
  #footer-cats { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; gap: 0 32px; align-content: start; }
  #footer-cats ul + .footer__label { margin-top: 0; }
}

/* Servicios: aviso de mantenimiento */
.upkeep {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center;
  margin-top: 28px; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--copper);
}
.upkeep__icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(167, 112, 78, .12);
  fill: none; stroke: var(--walnut); stroke-width: 1.6; stroke-linejoin: round;
}
.upkeep h3 { font-size: 1.25rem; margin-bottom: 2px; }
.upkeep p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.upkeep .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 700px) {
  .upkeep { grid-template-columns: auto 1fr auto; }
  .upkeep .btn { grid-column: auto; }
}

/* Portada: precios de referencia */
.hero__price {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px;
  margin-top: 22px; font-size: 0.9375rem; color: #CFCAC2; text-decoration: none;
}
.hero__price strong { color: #fff; font-weight: 600; }
.hero__price::after { content: "→"; color: var(--copper-light); transition: transform .2s; }
.hero__price:hover { color: #fff; }
.hero__price:hover::after { transform: translateX(3px); }

/* ---------- Precios y plazos ---------- */
.prices { display: grid; gap: 16px; }
@media (min-width: 1000px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.price {
  display: flex; flex-direction: column; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--copper); border-radius: var(--radius);
  box-shadow: 0 24px 48px -36px rgba(36, 35, 34, .45);
}
@media (min-width: 600px) { .price { padding: 32px; } }
.price h3, .price h4 { font-size: 1.5rem; }
.price__desc { margin: 4px 0 22px; color: var(--ink-soft); font-size: 0.9375rem; }
.price__amount { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 3.2rem); line-height: 1; color: var(--walnut); }
.price__from { font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-soft); }
.price__facts { margin: 0 0 24px; }
.price__facts > div, .price__woods tr { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price__facts > div:first-child { border-top: 1px solid var(--line); }
.price__facts dt, .price__woods th { font-size: 0.9375rem; font-weight: 400; color: var(--ink-soft); text-align: left; }
.price__facts dd { margin: 0; font-weight: 500; text-align: right; }
.price__woods { width: 100%; border-collapse: collapse; margin: 0; }
.price__woods tbody { display: block; border-top: 1px solid var(--line); }
.price__woods td { font-weight: 500; text-align: right; white-space: nowrap; }
.price__woods + .price__facts > div:first-child { border-top: 0; }
.price__actions { margin-top: auto; display: flex; flex-direction: column; align-items: center; }
.price__actions .link-arrow { margin-top: 16px; }

.assure { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .assure { grid-template-columns: 1fr 1fr; gap: 24px; } }
.assure li {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius);
}
.assure__icon {
  flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 50%;
  background: rgba(21, 128, 61, .08); fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.assure__text { display: flex; flex-direction: column; gap: 2px; }
.assure strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.assure__text > span { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- Maderas ---------- */
.woods { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .woods { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.wood { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.wood__photo { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: var(--bg-alt); }
.wood__body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.wood h3 { font-size: 1.5rem; }
.wood__tag { margin: 4px 0 12px; font-size: 0.8125rem; font-weight: 500; color: var(--walnut); }
.wood__desc { margin: 0 0 20px; font-size: 0.9375rem; color: var(--ink-soft); }
.wood__facts { margin: auto 0 20px; border-top: 1px solid var(--line); }
.wood__facts > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.wood__facts dt { font-size: 0.9375rem; color: var(--ink-soft); }
.wood__facts dd { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 16px; height: 6px; border-radius: 2px; background: var(--line); }
.meter[data-level="1"] i:nth-child(-n+1),
.meter[data-level="2"] i:nth-child(-n+2),
.meter[data-level="3"] i { background: var(--copper); }
.price__note { margin: -8px 0 24px; font-size: 0.875rem; color: var(--ink-soft); }


/* Precios por grupo: interiores (4 opciones), principales y plazos */
.prices__group { margin: 48px 0 20px; max-width: 46rem; }
.section__head + .prices__group { margin-top: 0; }
.prices__title { font-size: clamp(1.4rem, 3.4vw, 1.75rem); }
.prices__lead { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.9375rem; }
.prices__note { margin: 14px 0 0; font-size: 0.875rem; color: var(--ink-soft); }
@media (min-width: 640px) { .prices--tiers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .prices--tiers { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 800px) { .prices--main { grid-template-columns: 1fr 1fr; gap: 24px; } }
.price--tier { padding: 24px; }
.price--tier h4 { font-size: 1.3rem; }
.price__tag { margin: 4px 0 18px; font-size: 0.8125rem; font-weight: 500; color: var(--walnut); }
.price--tier .price__amount { font-size: clamp(2.1rem, 6vw, 2.6rem); margin-bottom: 18px; }
.price--tier .price__facts dt, .price--tier .price__facts dd { font-size: 0.875rem; }
.price--tier .price__facts > div { padding: 10px 0; }
.price__woods td + td { color: var(--ink-soft); font-weight: 400; min-width: 4.5em; }
.price__woods th { flex: 1; }
.leadtimes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.leadtimes table { width: 100%; border-collapse: collapse; }
.leadtimes th, .leadtimes td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.9375rem; vertical-align: middle; }
.leadtimes thead th { font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .02em; }
.leadtimes tbody th { font-weight: 400; }
.leadtimes td { text-align: right; font-weight: 500; white-space: nowrap; padding-left: 16px; }
.leadtimes thead th:last-child { text-align: right; }
.leadtimes tbody tr:last-child > * { border-bottom: 0; }
.badge { display: inline-block; margin: 2px 0 2px 8px; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; color: var(--green, var(--walnut)); background: var(--bg-alt); white-space: nowrap; }

/* Vista ampliada en el celular: más espacio para la foto, acciones en una fila */
.lightbox__stage { touch-action: pan-y pinch-zoom; }
.lightbox__stage img.is-dragging { transition: none; animation: none; }
.lightbox__stage img:not(.is-dragging) { transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1); }
.lightbox__count:empty { visibility: hidden; }
.toast { z-index: 20; white-space: nowrap; }
@media (max-width: 767px) {
  .lightbox__info { gap: 12px; padding-top: 12px; }
  .lightbox__text h3 { font-size: 1.15rem; }
  .lightbox__text p { font-size: 0.875rem; }
  .lightbox__actions { flex-wrap: nowrap; }
  #lb-share { flex: 0 0 auto; width: 52px; padding: 0; justify-content: center; }
  .lb-share__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lightbox .toast { top: 64px; bottom: auto; transform: translate(-50%, -10px); }
  .lightbox .toast.is-visible { transform: translate(-50%, 0); }
}

/* Pestañas de categorías: el borde se difumina solo del lado donde hay más pestañas */
.cat-tabs__scroll.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.cat-tabs__scroll.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.cat-tabs__scroll.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

/* Tarjeta del mapa: toda la tarjeta abre Google Maps */
.map__bg { transition: opacity .3s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.map:hover .map__bg, .map:focus-visible .map__bg { opacity: .5; transform: scale(1.03); }
.map:hover .btn--light { background: var(--bg-alt); }
.map:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* =========================================================
   Tarjetas: esquinas redondeadas, borde tenue y sombra suave
   ========================================================= */
:root {
  --radius: 8px;
  --radius-lg: 14px;
  --border-soft: rgba(36, 35, 34, .09);
  --shadow-card: 0 1px 2px rgba(36, 35, 34, .05), 0 12px 30px -18px rgba(36, 35, 34, .3);
  --shadow-photo: 0 14px 30px -20px rgba(36, 35, 34, .55);
}

.price, .wood, .leadtimes, .assure li, .upkeep, .checklist, .map, .social-card {
  border-radius: var(--radius-lg);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-card);
}
/* El color de acento va como franja interior: así sigue la curva de la esquina */
.price { border-top: 1px solid var(--border-soft); }
.assure li { border-left: 1px solid var(--border-soft); box-shadow: inset 3px 0 0 var(--green), var(--shadow-card); }
.upkeep { border-left: 1px solid var(--border-soft); box-shadow: inset 3px 0 0 var(--copper), var(--shadow-card); }
.social-card:hover { border-color: rgba(36, 35, 34, .25); box-shadow: 0 1px 2px rgba(36, 35, 34, .05), 0 18px 36px -20px rgba(36, 35, 34, .45); }

/* Fotos: esquinas redondeadas y una sombra que las separa del fondo */
.hero__collage figure, .card__media { border-radius: var(--radius-lg); }
.card__media { box-shadow: var(--shadow-photo); transition: box-shadow .4s ease; }
.card__btn:hover .card__media, .card__btn:focus-visible .card__media { box-shadow: 0 22px 40px -22px rgba(36, 35, 34, .65); }
.hero__collage figure { box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .7); }
.wood__photo { border-bottom: 1px solid var(--border-soft); }
.price > :last-child { margin-bottom: 0; }

/* Llamadas de atención: brillo de WhatsApp, pin que salta, "abierto" en vivo */
.map__marker { position: relative; display: block; width: 44px; height: 54px; margin-bottom: 10px; }
.map__pin { position: relative; z-index: 1; transform-origin: 50% 100%; }
.map__shadow { position: absolute; left: 50%; bottom: 0; width: 20px; height: 6px; margin-left: -10px; border-radius: 50%; background: rgba(0,0,0,.5); filter: blur(1px); }
.map__marker::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 48px; height: 16px; margin-left: -24px;
  border: 2px solid rgba(255,255,255,.75); border-radius: 50%; opacity: 0; pointer-events: none;
}
.hero__cta .btn--green { position: relative; overflow: hidden; isolation: isolate; }
.hero__cta .btn--green::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
  transform: translateX(-130%) skewX(-20deg);
}

@keyframes amao-wa-glow {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.7), 0 0 16px 2px rgba(37,211,102,.45), 0 10px 24px -8px rgba(17,102,50,.55), 0 2px 6px rgba(0,0,0,.12); }
  55%  { box-shadow: 0 0 0 18px rgba(37,211,102,0), 0 0 30px 8px rgba(37,211,102,.65), 0 10px 24px -8px rgba(17,102,50,.55), 0 2px 6px rgba(0,0,0,.12); }
  100% { box-shadow: 0 0 0 18px rgba(37,211,102,0), 0 0 16px 2px rgba(37,211,102,.45), 0 10px 24px -8px rgba(17,102,50,.55), 0 2px 6px rgba(0,0,0,.12); }
}
@keyframes amao-wa-shake {
  0%, 9%, 100% { transform: none; }
  1.5% { transform: rotate(-16deg) scale(1.1); }
  3%   { transform: rotate(13deg) scale(1.1); }
  4.5% { transform: rotate(-9deg) scale(1.05); }
  6%   { transform: rotate(6deg); }
  7.5% { transform: rotate(-2deg); }
}
@keyframes amao-pin-bounce {
  0%, 42%, 100% { transform: none; }
  16% { transform: translateY(-16px); }
  30% { transform: scale(1.1, .88); }
  36% { transform: translateY(-4px); }
}
@keyframes amao-pin-shadow {
  0%, 42%, 100% { transform: none; opacity: 1; }
  16% { transform: scale(.5); opacity: .45; }
  30% { transform: scale(1.15); }
}
@keyframes amao-pin-ripple {
  0%, 28% { transform: scale(.3); opacity: 0; }
  31% { opacity: .9; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}
@keyframes amao-live { 0% { box-shadow: 0 0 0 0 rgba(63,181,107,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(63,181,107,0); } }
@keyframes amao-shine { 0% { transform: translateX(-130%) skewX(-20deg); } 22%, 100% { transform: translateX(330%) skewX(-20deg); } }

@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: amao-pop .5s cubic-bezier(.2,.7,.2,1) 1.2s backwards, amao-wa-glow 2.4s ease-out 1.8s infinite; }
  .wa-float:hover, .wa-float.is-hidden { animation-play-state: running, paused; }
  .wa-float svg { animation: amao-wa-shake 7s ease-in-out 3s infinite; }
  .wa-float:hover svg { animation: none; }
  .js .map.reveal.is-visible .map__pin { animation: amao-drop .7s cubic-bezier(.2,.7,.2,1) .35s both, amao-pin-bounce 2.6s ease-in-out 1.8s infinite; }
  .js .map.reveal.is-visible .map__shadow { animation: amao-pin-shadow 2.6s ease-in-out 1.8s infinite; }
  .js .map.reveal.is-visible .map__marker::after { animation: amao-pin-ripple 2.6s ease-out 1.8s infinite; }
  .open-status.is-open::before { animation: amao-live 2s ease-out infinite; }
  .hero__cta .btn--green::after { animation: amao-shine 5s ease-in-out 2.2s infinite; }
}

/* Número de WhatsApp siempre con su ícono */
.wa-num { display: inline-flex; align-items: center; gap: 6px; }
.wa-num .i-wa { width: 1.15em; height: 1.15em; }

/* Celular: cada sección del portafolio es una fila que se desliza */
.row-bar { display: none; }
@media (max-width: 599px) {
  .gallery--row {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 22px;
  }
  .gallery--row::-webkit-scrollbar { display: none; }
  .gallery--row > li { flex: 0 0 80%; min-width: 0; scroll-snap-align: start; }
  .js .gallery--row > li.reveal { opacity: 1; transform: none; }
  .gallery--row + .row-bar { display: block; position: relative; height: 3px; margin: 0 0 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
  .row-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--copper); transition: width .2s; }
  .gallery--row ~ .cat-more { display: none; }
}

/* Globito junto a la burbuja de WhatsApp */
.wa-bubble {
  position: fixed; right: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px); z-index: 60;
  display: flex; align-items: flex-start; gap: 4px; max-width: min(280px, calc(100vw - 32px));
  background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 6px 12px 14px;
  box-shadow: 0 16px 36px -14px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.05);
  opacity: 0; transform: translateY(10px) scale(.95); transform-origin: 85% 100%; pointer-events: none;
  transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.2,1.2);
}
.wa-bubble::after { content: ""; position: absolute; right: 22px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.wa-bubble.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble a { color: inherit; text-decoration: none; font-size: 0.9375rem; line-height: 1.35; }
.wa-bubble strong { display: block; font-weight: 600; color: var(--green); }
.wa-bubble button { flex-shrink: 0; width: 28px; height: 28px; margin-top: -6px; border: 0; background: none; color: var(--ink-soft); font-size: 1.25rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.wa-bubble button:hover { background: var(--bg-alt); color: var(--ink); }
@media (min-width: 768px) { .wa-bubble { right: 24px; bottom: 92px; } .wa-bubble::after { right: 40px; } }
@media (max-width: 599px) {
  .cat-section:has(.gallery--row) .cat-head__count::after { content: " · desliza para ver más →"; color: var(--copper); }
  .cat-head { margin-bottom: 20px; }
}

/* Filas deslizables: el impulso fluye libre y siempre se detiene alineado en una foto */
@media (max-width: 599px) {
  .gallery--row { -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
  .gallery--row > li { scroll-snap-stop: normal; }
  .js .gallery--row > li.reveal .card__media img,
  .gallery--row .card__btn:hover .card__media img { transform: none; transition: opacity .4s ease; }
  .gallery--row .card__media { transition: none; }
  .gallery--row .card__btn { -webkit-tap-highlight-color: transparent; }
  .gallery--row .card__btn:active .card__media { transform: scale(.985); transition: transform .15s ease; }
}

/* Videos: una fila que se desliza; en computadora, con flechas */
.videos { padding-bottom: 48px; }
.videos__list {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px;
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
}
.videos__list::-webkit-scrollbar { display: none; }
.vid { flex: 0 0 min(58%, 260px); min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start; }
.vid__media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow-photo); }
.vid__media video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.vid__title { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.25; margin: 14px 0 4px; }
.vid__desc { font-size: 0.875rem; color: var(--ink-soft); margin: 0 0 2px; }
.vid__ask { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; font-size: 0.875rem; font-weight: 500; color: var(--green); text-decoration: none; }
.vid__ask:hover { color: var(--green-dark); text-decoration: underline; }
.videos__nav { display: none; }
@media (min-width: 900px) {
  .videos { padding-bottom: 64px; }
  .videos__side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
  .videos__nav { display: flex; gap: 8px; }
  .videos__arrow {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color .2s, border-color .2s, opacity .2s;
  }
  .videos__arrow:hover:not(:disabled) { border-color: var(--ink); }
  .videos__arrow:disabled { opacity: .35; cursor: default; }
  .videos__list { margin: 0; padding: 4px 0 16px; gap: 20px; scroll-padding: 0; }
  .vid { flex-basis: calc((100% - 80px) / 5); }
}

/* Visor de videos a pantalla completa */
.reels {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #0E0D0C; color: #fff; overflow: hidden;
}
.reels::backdrop { background: #0E0D0C; }
.reels[open] { animation: amao-fade .25s ease both; }
.reels__stage { position: relative; width: 100%; height: 100%; max-width: calc(100dvh * 9 / 16); margin: 0 auto; touch-action: none; }
.reels__stage video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.reels__stage video.is-in { animation: amao-reel .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes amao-reel { from { opacity: .3; transform: translateY(var(--dy, 0)); } to { opacity: 1; transform: none; } }
.reels__paused { position: absolute; left: 50%; top: 45%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.reels__paused svg { width: 34px; height: 34px; margin-left: 4px; }
.reels__paused[hidden] { display: none; }
.reels__top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 12px 24px 16px; z-index: 1; background: linear-gradient(rgba(0,0,0,.5), transparent); }
.reels__count { font-size: 0.8125rem; font-weight: 500; letter-spacing: .04em; opacity: .85; }
.reels__close { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(20,19,18,.75); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.reels__close svg { width: 22px; height: 22px; }
.reels__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 16px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(14,13,12,.82) 30%, rgba(14,13,12,.94)); }
.reels__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; margin: 0 0 4px; color: #fff; }
.reels__desc { margin: 0 0 14px; font-size: 0.9375rem; color: #E4DFD8; }
.reels__ask { width: 100%; }
.reels__hint { margin: 10px 0 0; text-align: center; font-size: 0.75rem; color: #BDB7AE; }
.reels__hint[hidden] { display: none; }
.reels__nav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .reels__hint { display: none; }
  .reels__nav {
    display: flex; align-items: center; justify-content: center; position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background-color .2s;
  }
  .reels__nav:hover { background: rgba(255,255,255,.28); }
  .reels__nav--prev { left: -64px; }
  .reels__nav--next { right: -64px; }
}
.vid__media::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; pointer-events: none;
  background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* El logo de cada video va arriba a la derecha: el cierre y el contador van a la izquierda */
.reels__top { flex-direction: row-reverse; justify-content: flex-end; gap: 12px; padding-left: 12px; }
.vid__media video:focus-visible { outline: 3px solid var(--copper); outline-offset: -3px; }

/* =========================================================
   Portada (v38): tres videos verticales escalonados
   ========================================================= */
.hero { padding-top: 20px; }
.hero__grid { gap: 28px; }
.hero__reels { order: -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.hero__reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: #2E2C2A; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
}
.hero__reel:nth-child(2) { transform: translateY(18px); }
.hero__reel video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.hero__reel video:focus-visible { outline: 2px solid var(--copper-light); outline-offset: -2px; }
.hero__reel::after {
  content: ""; position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; pointer-events: none;
  background: rgba(20, 18, 16, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .hero__reels { order: 0; gap: 14px; margin: 0; }
  .hero__reel { border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .hero__reel:nth-child(1), .hero__reel:nth-child(3) { transform: translateY(-10px); }
  .hero__reel:nth-child(2) { transform: translateY(40px); }
  .hero__reel:nth-child(1):hover, .hero__reel:nth-child(3):hover { transform: translateY(-16px); }
  .hero__reel:nth-child(2):hover { transform: translateY(34px); }
  .hero h1 { font-size: clamp(2.6rem, 4.2vw, 3.8rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__reel { animation: amao-fade 1s ease both; }
  .hero__reel:nth-child(2) { animation-delay: .12s; }
  .hero__reel:nth-child(3) { animation-delay: .24s; }
}
@keyframes amao-fade { from { opacity: 0; } }

/* Videos: el rebote del tope no debe ensanchar la página */
.videos { overflow-x: clip; }

/* Visítanos: datos con íconos sobre una tarjeta */
.visit__info { display: flex; flex-direction: column; }
.visit__data { border-top: 0; margin-bottom: 20px; display: grid; gap: 10px; }
.visit__data > div {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .2s, transform .3s cubic-bezier(.2,.7,.2,1);
}
.visit__data > div:hover { border-color: var(--copper-light); }
.visit__icon {
  grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.visit__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--walnut); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.visit__data dt { grid-column: 2; font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--walnut); margin: 2px 0 4px; }
.visit__data dd { grid-column: 2; min-width: 0; }
.visit__data .hours { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .visit__data > div:hover .visit__icon { animation: amao-icon-nudge .5s ease; }
}
@keyframes amao-icon-nudge { 30% { transform: translateY(-3px) rotate(-6deg); } 60% { transform: translateY(0) rotate(3deg); } }

/* Visítanos en celular: una sola tarjeta suave con separadores finos */
@media (max-width: 599px) {
  .visit { gap: 20px; }
  .visit__data {
    gap: 0; margin-bottom: 16px; padding: 2px 16px;
    background: var(--surface); border: 1px solid rgba(36, 35, 34, .07); border-radius: 20px;
    box-shadow: 0 14px 34px -24px rgba(36, 35, 34, .35);
  }
  .visit__data > div {
    grid-template-columns: 34px 1fr; column-gap: 12px;
    padding: 14px 0; border: 0; border-radius: 0; background: none;
  }
  .visit__data > div + div { border-top: 1px solid rgba(36, 35, 34, .07); }
  .visit__data > div:hover { border-color: rgba(36, 35, 34, .07); }
  .visit__icon { width: 34px; height: 34px; border: 0; background: rgba(167, 112, 78, .1); }
  .visit__icon svg { width: 17px; height: 17px; stroke-width: 1.6; }
  .visit__data dt { font-size: 0.6875rem; letter-spacing: .07em; margin: 2px 0 2px; }
  .visit__data dd { font-size: 0.9375rem; line-height: 1.5; }
  .visit__data dd small { font-size: 0.8125rem; color: var(--muted, #8A847D); }
  .visit__data .open-status--lg { font-size: 0.9375rem; margin-bottom: 6px; }
  .visit__data .hours { font-size: 0.875rem; }
  .visit__data .hours th, .visit__data .hours td { padding-block: 4px; }
  .visit__actions { gap: 8px; }
  .visit__actions .btn { flex: 1 1 0; min-height: 48px; border-radius: 14px; font-size: 0.9375rem; }
  .map, .map__cover { min-height: 250px; }
  .map { border-radius: 20px; }
}

/* Servicios: check en lugar de números */
.services li { align-items: center; }
.services li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; min-width: 0; border-radius: 50%;
  background: rgba(167, 112, 78, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7704E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: background-color .25s, transform .3s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) { .services li:hover::before { background-color: rgba(167, 112, 78, .22); transform: scale(1.1); } }

/* Videos en computadora: sombra en el borde cuando hay más videos y flecha que llama la atención */
@media (min-width: 900px) {
  .videos__list.is-more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 140px), rgba(0,0,0,.15)); mask-image: linear-gradient(90deg, #000 calc(100% - 140px), rgba(0,0,0,.15)); }
  .videos__list.is-more-l { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.15), #000 140px); mask-image: linear-gradient(90deg, rgba(0,0,0,.15), #000 140px); }
  .videos__list.is-more-l.is-more-r { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.15), #000 140px, #000 calc(100% - 140px), rgba(0,0,0,.15)); mask-image: linear-gradient(90deg, rgba(0,0,0,.15), #000 140px, #000 calc(100% - 140px), rgba(0,0,0,.15)); }
  .videos__arrow[data-dir="1"]:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 8px 20px -6px rgba(36, 35, 34, .55); }
  .videos__arrow[data-dir="1"]:not(:disabled):hover { background: var(--walnut); border-color: var(--walnut); }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .videos__arrow[data-dir="1"]:not(:disabled) { animation: amao-arrow-hint 2.4s ease-in-out infinite; }
  .videos__arrow[data-dir="1"]:not(:disabled):hover { animation: none; }
}
@keyframes amao-arrow-hint {
  0%, 100% { transform: translateX(0); box-shadow: 0 8px 20px -6px rgba(36, 35, 34, .55), 0 0 0 0 rgba(167, 112, 78, .45); }
  50% { transform: translateX(3px); box-shadow: 0 8px 20px -6px rgba(36, 35, 34, .55), 0 0 0 8px rgba(167, 112, 78, 0); }
}
@media (min-width: 900px) {
  /* Se asoma parte del siguiente video para que se note que la fila sigue */
  .vid { flex-basis: calc((100% - 80px) / 4.45); }
}
.services li::before { width: 24px; height: 24px; background-size: 14px; background-color: rgba(167, 112, 78, .16); }

/* Carga de fotos más rápida a la vista */
.js img[data-fade] { transition: opacity .3s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.lightbox__stage { background: center / contain no-repeat; background-origin: content-box; }
.lightbox__stage.is-loading img.is-loading { opacity: 0; }

/* Portada: enlace al asistente de cotización */
.hero__asis { margin-top: 16px; font-size: 0.9375rem; color: var(--copper-light); }
.hero__asis:hover { color: #fff; }

/* Las secciones de trabajos que aún no se ven no se dibujan hasta acercarse:
   la página carga más rápido en celulares. El tamaño estimado evita saltos. */
.cat-section { content-visibility: auto; contain-intrinsic-size: auto 800px; }
@media (min-width: 600px) { .cat-section { contain-intrinsic-size: auto 900px; } }
.cv-todo .cat-section { content-visibility: visible; }
