/* ==========================================================================
   Grupo Boza — Sistema de diseño
   Identidad tomada del sello Santo Remedio: oro sobre tinta, crema de papel,
   tipografía capitular grabada y ornamentos de filete doble.
   El oro es el acento constante en todo el sitio; cada línea de negocio se
   distingue por su TONO oscuro, no por otro color de acento.
   El tono se activa con data-linea en el <body>.
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Oro del sello */
  --oro:        #B8891C;
  --oro-med:    #C9A227;
  --oro-clr:    #E8CE7A;
  --oro-osc:    #8A6510;

  /* Tintas cálidas */
  --tinta:      #14110A;
  --tinta-2:    #241F14;
  --tinta-3:    #37301F;

  /* Papel */
  --crema:      #FBF8F0;
  --crema-2:    #F4EEE0;
  --crema-3:    #EAE1CC;

  /* Texto */
  --texto:      #221D12;
  --gris:       #6B6252;
  --gris-clr:   #948B78;
  --linea:      #DED4BC;
  --linea-sv:   #EDE7D7;

  /* WhatsApp */
  --wa:         #25D366;
  --wa-osc:     #1DA851;

  /* Tono oscuro por línea. Por defecto, el corporativo. */
  --tono:       #14110A;
  --tono-2:     #241F14;

  /* Métrica */
  --ancho:      1180px;
  --r:          2px;
  --r-lg:       4px;

  /* Tipografía */
  --capital:    "Cinzel", "Trajan Pro", Georgia, serif;
  --lectura:    "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --util:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --sombra-sm:  0 1px 3px rgba(20, 17, 10, .09);
  --sombra:     0 6px 22px rgba(20, 17, 10, .10);
  --sombra-lg:  0 18px 50px rgba(20, 17, 10, .18);
}

/* Tono oscuro por línea de negocio */
body[data-linea="muebles"]       { --tono: #2E1D11; --tono-2: #432C1B; }
body[data-linea="santo-remedio"] { --tono: #171227; --tono-2: #251D3C; }
body[data-linea="velas"]         { --tono: #33200D; --tono-2: #4A3116; }
body[data-linea="piel"]          { --tono: #21160E; --tono-2: #362518; }
body[data-linea="terraza"]       { --tono: #2B1114; --tono-2: #401D21; }
body[data-linea="autos"]         { --tono: #16181C; --tono-2: #262A30; }
body[data-linea="casa-patio"]    { --tono: #17211B; --tono-2: #26362C; }

/* --- Base ----------------------------------------------------------------- */

body {
  font-family: var(--lectura);
  font-size: 19px;
  line-height: 1.68;
  font-weight: 500;
  color: var(--texto);
  background: var(--crema);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--oro); color: #fff; }

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

.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--oro);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  font-family: var(--util);
  font-weight: 600;
}
.saltar:focus { left: 0; }

/* --- Tipografía ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--capital);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .015em;
  text-wrap: balance;
  color: var(--texto);
}

h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.08rem; line-height: 1.32; letter-spacing: .02em; }

p { max-width: 68ch; }

.entradilla {
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.6;
  color: var(--gris);
  max-width: 58ch;
  font-weight: 500;
}

/* Rótulo capitular espaciado, como el «GRUPO BOZA» del sello */
.rotulo {
  font-family: var(--capital);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--oro);
  display: block;
  margin-bottom: 16px;
}

.rotulo-clr { color: var(--oro-clr); }

/* --- Ornamento de filete, tomado del divisor del sello -------------------- */

.orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--oro);
}

.orn::before, .orn::after {
  content: "";
  height: 1px;
  width: clamp(40px, 12vw, 120px);
  background: currentColor;
  opacity: .55;
}

.orn span {
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.orn-izq { justify-content: flex-start; }
.orn-izq::before { display: none; }
.orn-izq::after { width: clamp(60px, 20vw, 200px); }

/* --- Layout --------------------------------------------------------------- */

.env {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: clamp(66px, 9vw, 118px) 0; }

.sec-osc {
  background: var(--tono);
  color: #fff;
}
.sec-osc h1, .sec-osc h2, .sec-osc h3, .sec-osc h4 { color: #fff; }
.sec-osc .entradilla { color: rgba(255, 255, 255, .76); }
.sec-osc .rotulo { color: var(--oro-clr); }
.sec-osc p { color: rgba(255, 255, 255, .8); }

.sec-crema { background: var(--crema-2); }

.cab { margin-bottom: clamp(38px, 5vw, 62px); max-width: 780px; }
.cab p { margin-top: 18px; }
.cab-centro { margin-left: auto; margin-right: auto; text-align: center; }
.cab-centro p { margin-left: auto; margin-right: auto; }

/* --- Botones -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--util);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  text-align: center;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-pri { background: var(--oro); color: #fff; border-color: var(--oro); }
.btn-pri:hover { background: var(--oro-osc); border-color: var(--oro-osc); }

.btn-sec { border-color: var(--oro); color: var(--oro); }
.btn-sec:hover { background: var(--oro); color: #fff; }

.btn-oro { background: var(--oro-clr); color: var(--tinta); border-color: var(--oro-clr); }
.btn-oro:hover { background: #fff; border-color: #fff; }

.btn-clr { border-color: rgba(232, 206, 122, .6); color: var(--oro-clr); }
.btn-clr:hover { background: var(--oro-clr); color: var(--tinta); border-color: var(--oro-clr); }

.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-osc); border-color: var(--wa-osc); }

.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

@media (max-width: 520px) {
  .btns { flex-direction: column; align-items: stretch; }
  .btns .btn { width: 100%; }
}

/* --- Encabezado ----------------------------------------------------------- */

.enc {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 240, .97);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--linea);
  transition: background-color .3s, border-color .3s;
}

.enc[data-flotante="si"]:not(.enc-fijo) {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: rgba(232, 206, 122, .22);
}
.enc[data-flotante="si"]:not(.enc-fijo) .enc-marca-txt { color: #fff; }
.enc[data-flotante="si"]:not(.enc-fijo) .enc-marca-sub { color: var(--oro-clr); }
.enc[data-flotante="si"]:not(.enc-fijo) .enc-nav a { color: rgba(255, 255, 255, .9); }
.enc[data-flotante="si"]:not(.enc-fijo) .hamb span { background: var(--oro-clr); }
.enc[data-flotante="si"]:not(.enc-fijo) .enc-sello-oscuro { display: block; }
.enc[data-flotante="si"]:not(.enc-fijo) .enc-sello-claro { display: none; }

.enc[data-flotante="si"]:not(.enc-fijo) .enc-nav a.enc-cta {
  background: transparent;
  border-color: rgba(232, 206, 122, .6);
  color: var(--oro-clr);
}
.enc[data-flotante="si"]:not(.enc-fijo) .enc-nav a.enc-cta:hover {
  background: var(--oro-clr);
  color: var(--tinta);
  border-color: var(--oro-clr);
}

.enc-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
}

.enc-marca { display: flex; align-items: center; gap: 13px; }

/* El monograma del logotipo, discreto: la marca no compite con el contenido. */
.enc-sello { width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
.enc-sello-oscuro { display: none; }

.enc-marca-txt {
  font-family: var(--capital);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--texto);
  white-space: nowrap;
}

.enc-marca-sub {
  display: block;
  font-family: var(--util);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-top: 4px;
}

.enc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.enc-nav a {
  font-family: var(--util);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--texto);
  padding: 7px 0;
  position: relative;
  transition: color .18s;
  white-space: nowrap;
}

.enc-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--oro);
  transform: scaleX(0);
  transition: transform .22s;
}

.enc-nav a:hover::after,
.enc-nav a[aria-current="page"]::after { transform: scaleX(1); }
.enc-nav a[aria-current="page"] { color: var(--oro); font-weight: 700; }

.enc-cta {
  margin-left: 4px;
  padding: 11px 20px;
  border: 1px solid var(--oro);
  border-radius: var(--r);
  background: var(--oro);
  color: #fff !important;
}
.enc-cta::after { display: none !important; }
.enc-cta:hover { background: var(--oro-osc); border-color: var(--oro-osc); }

.hamb {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 10px;
}
.hamb span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--oro);
  transition: transform .22s, opacity .22s;
}
.hamb[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamb[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamb[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .hamb { display: flex; }
  .enc-nav {
    position: absolute;
    top: 84px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--crema);
    border-bottom: 1px solid var(--linea);
    padding: 8px 24px 26px;
    box-shadow: var(--sombra);
    display: none;
  }
  .enc-nav[data-abierto="si"] { display: flex; }
  .enc-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--linea-sv);
    color: var(--texto) !important;
    font-size: .86rem;
  }
  .enc-nav a::after { display: none; }
  .enc-cta { margin: 20px 0 0; border-bottom: 1px solid var(--oro) !important; }

  /* El panel móvil siempre es crema: el CTA vuelve a su relleno sólido. */
  .enc .enc-nav a.enc-cta,
  .enc[data-flotante="si"]:not(.enc-fijo) .enc-nav a.enc-cta {
    background: var(--oro);
    border-color: var(--oro);
    color: #fff !important;
  }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 78px;
  overflow: hidden;
  background: var(--tono);
  color: #fff;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }

.hero-media video,
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 30%, rgba(232, 206, 122, .13) 0%, transparent 52%),
    linear-gradient(180deg, rgba(10, 8, 4, .58) 0%, rgba(10, 8, 4, .44) 38%, rgba(10, 8, 4, .9) 100%);
}

/* Rayos tenues detrás del hero, como los del ojo del sello */
.hero-media::before {
  content: "";
  position: absolute;
  top: -30%; right: -12%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(232, 206, 122, .09) 0deg 1.1deg,
    transparent 1.1deg 4deg
  );
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  z-index: 1;
  pointer-events: none;
}

.hero-in { position: relative; z-index: 2; width: 100%; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .entradilla { color: rgba(255, 255, 255, .86); margin-top: 24px; max-width: 56ch; }

.hero-barra {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(232, 206, 122, .3);
  font-family: var(--util);
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .82);
}

.hero-barra li { display: flex; align-items: center; gap: 9px; }
.hero-barra li::before {
  content: "";
  width: 4px; height: 4px;
  transform: rotate(45deg);
  background: var(--oro-clr);
}

.hero-corto { min-height: 46vh; padding: 150px 0 62px; align-items: center; }

/* --- Marcador de recurso pendiente --------------------------------------- */

.pend {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 32px 24px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, var(--crema-2) 0 14px, var(--crema-3) 14px 28px);
  color: var(--gris);
  border: 1px solid var(--linea);
  border-radius: var(--r);
}

.pend-t {
  font-family: var(--capital);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oro-osc);
}

.pend-d { font-family: var(--util); font-size: .84rem; max-width: 42ch; line-height: 1.5; }

/* En el hero se reduce a etiqueta discreta para no competir con el titular */
.hero .hero-media {
  background:
    radial-gradient(circle at 70% 26%, var(--tono-2) 0%, var(--tono) 62%);
}

.hero .pend {
  position: absolute;
  top: 104px;
  right: 24px;
  z-index: 3;
  min-height: 0;
  max-width: 250px;
  padding: 12px 16px;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  background: rgba(10, 8, 4, .55);
  backdrop-filter: blur(4px);
  border-color: rgba(232, 206, 122, .3);
  color: rgba(255, 255, 255, .72);
}

.hero .pend-t { color: var(--oro-clr); font-size: .62rem; }
.hero .pend-d { font-size: .76rem; }

@media (max-width: 1080px) { .hero .pend { display: none; } }

/* --- Tarjetas de línea de negocio ---------------------------------------- */

.lineas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.linea-t {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  overflow: hidden;
  background: var(--ltono, var(--tinta));
  color: #fff;
  isolation: isolate;
  border: 1px solid rgba(232, 206, 122, .22);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.linea-t:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-lg);
  border-color: rgba(232, 206, 122, .55);
}

.linea-t-media { position: absolute; inset: 0; z-index: -2; }
.linea-t-media img { width: 100%; height: 100%; object-fit: cover; }

.linea-t::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 4, .18) 0%, rgba(10, 8, 4, .6) 46%, rgba(10, 8, 4, .94) 100%);
  transition: background .3s;
}

.linea-t:hover::after {
  background: linear-gradient(180deg, rgba(10, 8, 4, .3) 0%, rgba(10, 8, 4, .7) 46%, rgba(10, 8, 4, .96) 100%);
}

.linea-t-in { margin-top: auto; padding: 30px 28px 28px; }

.linea-t-num {
  font-family: var(--capital);
  font-size: .68rem;
  letter-spacing: .24em;
  color: var(--oro-clr);
  display: block;
  margin-bottom: 10px;
}

.linea-t-in h3 { color: #fff; margin-bottom: 10px; letter-spacing: .04em; }
.linea-t-in p {
  font-size: .98rem;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 20px;
  font-family: var(--util);
  line-height: 1.55;
}

.linea-t-mas {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--util);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--oro-clr);
  padding-top: 14px;
  border-top: 1px solid rgba(232, 206, 122, .3);
}
.linea-t-mas span { transition: transform .22s; }
.linea-t:hover .linea-t-mas span { transform: translateX(5px); }

/* --- Rejillas ------------------------------------------------------------- */

.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
  gap: 26px;
}

.rejilla-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 46px;
}

.tarjeta {
  background: var(--crema);
  border: 1px solid var(--linea);
  padding: 30px 28px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.tarjeta:hover { border-color: var(--oro); box-shadow: var(--sombra); transform: translateY(-3px); }
.tarjeta h3 { font-size: 1.16rem; margin-bottom: 12px; }
.tarjeta h4 { margin-bottom: 10px; color: var(--oro-osc); }
.tarjeta p { font-size: .96rem; color: var(--gris); font-family: var(--util); line-height: 1.6; }

.sec-crema .tarjeta { background: var(--crema); }

.sec-osc .tarjeta {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(232, 206, 122, .25);
}
.sec-osc .tarjeta h4 { color: var(--oro-clr); }
.sec-osc .tarjeta p { color: rgba(255, 255, 255, .76); }
.sec-osc .tarjeta:hover { border-color: var(--oro-clr); }

/* Rasgos con filete de acento */
.rasgos { display: grid; gap: 2px; }

.rasgo {
  padding: 24px 0 24px 26px;
  border-left: 1px solid var(--linea);
  transition: border-color .25s;
}
.rasgo:hover { border-left-color: var(--oro); }
.rasgo h4 { margin-bottom: 8px; color: var(--oro-osc); }
.rasgo p { font-size: .96rem; color: var(--gris); font-family: var(--util); line-height: 1.6; }

.sec-osc .rasgo { border-left-color: rgba(232, 206, 122, .3); }
.sec-osc .rasgo h4 { color: var(--oro-clr); }
.sec-osc .rasgo p { color: rgba(255, 255, 255, .76); }
.sec-osc .rasgo:hover { border-left-color: var(--oro-clr); }

/* --- Catálogo ------------------------------------------------------------- */

.cat { display: grid; gap: 0; }

.cat-fila {
  display: grid;
  grid-template-columns: minmax(190px, 270px) 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--linea);
  align-items: start;
}
.cat-fila:first-child { border-top: 1px solid var(--linea); }
.cat-fila h4 { color: var(--oro-osc); }
.cat-fila p { font-size: .99rem; color: var(--gris); font-family: var(--util); line-height: 1.62; }

.sec-osc .cat-fila { border-bottom-color: rgba(232, 206, 122, .2); }
.sec-osc .cat-fila:first-child { border-top-color: rgba(232, 206, 122, .2); }
.sec-osc .cat-fila h4 { color: var(--oro-clr); }
.sec-osc .cat-fila p { color: rgba(255, 255, 255, .78); }

@media (max-width: 640px) {
  .cat-fila { grid-template-columns: 1fr; gap: 8px; }
}

/* --- Proceso -------------------------------------------------------------- */

.proceso { counter-reset: paso; display: grid; gap: 0; }

.paso {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--linea);
  align-items: start;
}

.paso::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--capital);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--oro);
  line-height: 1;
  letter-spacing: .04em;
}

.paso h4 { margin-bottom: 8px; }
.paso p { font-size: .99rem; color: var(--gris); font-family: var(--util); line-height: 1.62; }

.sec-osc .paso { border-bottom-color: rgba(232, 206, 122, .2); }
.sec-osc .paso::before { color: var(--oro-clr); }
.sec-osc .paso p { color: rgba(255, 255, 255, .78); }

@media (max-width: 560px) {
  .paso { grid-template-columns: 48px 1fr; gap: 16px; }
  .paso::before { font-size: 1.2rem; }
}

/* --- Cita destacada ------------------------------------------------------- */

.cita {
  font-family: var(--lectura);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.42;
  color: var(--texto);
  max-width: 24ch;
  text-wrap: balance;
}

.sec-osc .cita { color: #fff; }
.cita-pie {
  font-family: var(--capital);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oro);
  margin-top: 20px;
  display: block;
}
.sec-osc .cita-pie { color: var(--oro-clr); }

/* --- Video ---------------------------------------------------------------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tinta);
  border: 1px solid var(--linea);
  box-shadow: var(--sombra-lg);
}

.video video, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-poster img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.video-play {
  position: relative;
  z-index: 1;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(251, 248, 240, .94);
  border: 1px solid var(--oro);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s, background-color .25s;
}

.video-poster:hover .video-play { transform: scale(1.08); background: var(--oro-clr); }

.video-play::before {
  content: "";
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--tinta);
  margin-left: 5px;
}

.video .pend { height: 100%; border: 0; }

/* --- Galería -------------------------------------------------------------- */

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}

.galeria-i {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--crema-3);
  cursor: pointer;
  border: 1px solid var(--linea);
}

.galeria-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.galeria-i:hover img { transform: scale(1.05); }

.galeria-i figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  font-family: var(--util);
  font-size: .8rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 8, 4, .88));
  opacity: 0;
  transition: opacity .25s;
}

.galeria-i:hover figcaption { opacity: 1; }
.galeria .pend { aspect-ratio: 4 / 3; min-height: 0; }

/* Lightbox */

.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 8, 4, .96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lb[data-abierto="si"] { display: flex; }
.lb img { max-width: 100%; max-height: 82vh; object-fit: contain; }

.lb-pie {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  text-align: center;
  color: var(--oro-clr);
  font-family: var(--util);
  font-size: .86rem;
  letter-spacing: .04em;
  padding: 0 20px;
}

.lb-x, .lb-nav {
  position: absolute;
  color: var(--oro-clr);
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1px solid rgba(232, 206, 122, .35);
  border-radius: 50%;
  transition: background-color .18s, color .18s;
}

.lb-x:hover, .lb-nav:hover { background: var(--oro-clr); color: var(--tinta); }
.lb-x { top: 22px; right: 22px; }
.lb-nav[data-dir="prev"] { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-nav[data-dir="next"] { right: 22px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lb-nav { width: 44px; height: 44px; }
  .lb-nav[data-dir="prev"] { left: 8px; }
  .lb-nav[data-dir="next"] { right: 8px; }
}

/* --- Inventario de autos -------------------------------------------------- */

.inv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.auto {
  display: flex;
  flex-direction: column;
  background: var(--crema);
  border: 1px solid var(--linea);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.auto:hover { border-color: var(--oro); box-shadow: var(--sombra); transform: translateY(-3px); }

.auto-foto { position: relative; aspect-ratio: 4 / 3; background: var(--crema-3); overflow: hidden; }
.auto-foto img { width: 100%; height: 100%; object-fit: cover; }
.auto-foto .pend { height: 100%; min-height: 0; border: 0; }

.auto-estado {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  font-family: var(--util);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--oro);
  color: #fff;
}

.auto-estado[data-estado="apartado"] { background: var(--tinta-3); }
.auto-estado[data-estado="vendido"]  { background: var(--gris-clr); }

.auto-in { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.auto-in h3 { font-size: 1.12rem; margin-bottom: 5px; }
.auto-anio { font-family: var(--util); font-size: .84rem; color: var(--gris); margin-bottom: 16px; }

.auto-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--util);
  font-size: .82rem;
  color: var(--gris);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--linea-sv);
}

.auto-precio {
  font-family: var(--capital);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--oro-osc);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}

.auto .btn { margin-top: auto; width: 100%; padding: 13px 20px; font-size: .74rem; }

/* --- Catálogo de piezas (El Santo Remedio) -------------------------------- */

.piezas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 26px;
}

.pieza {
  display: flex;
  flex-direction: column;
  background: var(--crema);
  border: 1px solid var(--linea);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.pieza:hover { border-color: var(--oro); box-shadow: var(--sombra); transform: translateY(-3px); }

.pieza-foto {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.pieza-foto img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .35s;
}

/* La segunda toma (montaje) aparece al pasar el cursor */
.pieza-foto img + img { position: absolute; inset: 0; object-fit: cover; opacity: 0; }
.pieza-foto:hover img + img { opacity: 1; }

.pieza-in { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.pieza-in h3 { font-size: 1.08rem; margin-bottom: 10px; }
.pieza-in p { font-size: .94rem; color: var(--gris); font-family: var(--util); line-height: 1.6; margin-bottom: 16px; }

.pieza-medidas {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--linea-sv);
  font-family: var(--util);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--oro-osc);
}

.pieza-medidas b { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 4px; color: var(--gris-clr); font-size: .68rem; }

.pieza[data-sinfoto="si"] .pieza-foto { background: var(--crema-2); }

/* Registro INDAUTOR: solo lo tiene el Metatrón */
.pieza-cert {
  font-family: var(--util);
  font-size: .8rem !important;
  color: var(--oro-osc) !important;
  margin: -6px 0 16px !important;
}
.pieza-cert a { color: var(--oro-osc); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pieza-cert a:hover { color: var(--texto); }

/* Foto histórica de la fachada, en Muebles: va en la columna del titular */
.fachada { margin-top: 32px; max-width: 420px; }
.fachada img {
  width: 100%;
  border: 1px solid var(--linea);
  padding: 8px;
  background: #fff;
  box-shadow: var(--sombra-sm);
}
.fachada figcaption {
  margin-top: 10px;
  font-family: var(--lectura);
  font-style: italic;
  font-size: .98rem;
  color: var(--gris);
}

/* Sello de la línea, usado con mesura dentro de la página */
.sello-linea {
  width: clamp(120px, 15vw, 168px);
  margin: 0 auto 26px;
  display: block;
  opacity: .95;
}

/* --- Ficha de dos columnas (Casa Patio, amenidades) ----------------------- */

.amenidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 32px;
}

.amenidades li {
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--linea);
  font-family: var(--util);
  font-size: .95rem;
  position: relative;
}

.amenidades li::before {
  content: "";
  position: absolute;
  left: 2px; top: 22px;
  width: 5px; height: 5px;
  transform: rotate(45deg);
  background: var(--oro);
}

.sec-osc .amenidades li { border-bottom-color: rgba(232, 206, 122, .2); color: rgba(255, 255, 255, .84); }

/* --- FAQ ------------------------------------------------------------------ */

.faq { border-top: 1px solid var(--linea); max-width: 880px; }

.faq details { border-bottom: 1px solid var(--linea); }

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 0;
  font-family: var(--capital);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: .015em;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--oro); }

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px; height: 11px;
  margin-top: 8px;
  border-right: 1px solid var(--oro);
  border-bottom: 1px solid var(--oro);
  transform: rotate(45deg);
  transition: transform .25s;
}

.faq details[open] summary::after { transform: rotate(-135deg); }

.faq p { padding: 0 0 28px; color: var(--gris); font-size: 1.02rem; max-width: 72ch; }

.sec-osc .faq { border-top-color: rgba(232, 206, 122, .25); }
.sec-osc .faq details { border-bottom-color: rgba(232, 206, 122, .25); }
.sec-osc .faq summary { color: #fff; }
.sec-osc .faq summary:hover { color: var(--oro-clr); }
.sec-osc .faq p { color: rgba(255, 255, 255, .78); }

/* --- Formulario ----------------------------------------------------------- */

.form-caja {
  background: var(--crema);
  border: 1px solid var(--linea);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--sombra);
}

.sec-osc .form-caja {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(232, 206, 122, .28);
}

.campos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.campo { display: flex; flex-direction: column; gap: 8px; }
.campo-full { grid-column: 1 / -1; }

.campo label {
  font-family: var(--util);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris);
}

.sec-osc .campo label { color: var(--oro-clr); }
.campo label .req { color: var(--oro); }

.campo input,
.campo select,
.campo textarea {
  font-family: var(--util);
  font-size: .96rem;
  color: var(--texto);
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--r);
  padding: 14px 15px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}

.campo textarea { resize: vertical; min-height: 120px; }

.campo select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B8891C' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--oro);
  box-shadow: 0 0 0 3px rgba(184, 137, 28, .16);
}

.campo input[aria-invalid="true"],
.campo select[aria-invalid="true"],
.campo textarea[aria-invalid="true"] {
  border-color: #A32B1E;
  box-shadow: 0 0 0 3px rgba(163, 43, 30, .12);
}

.campo-error {
  font-family: var(--util);
  font-size: .78rem;
  color: #A32B1E;
  font-weight: 500;
  display: none;
}
.campo-error[data-visible="si"] { display: block; }
.sec-osc .campo-error { color: #F0A79C; }

.form-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.form-aviso {
  font-family: var(--util);
  font-size: .78rem;
  color: var(--gris);
  max-width: 40ch;
  line-height: 1.55;
}

.form-aviso a { color: var(--oro-osc); text-decoration: underline; text-underline-offset: 2px; }
.sec-osc .form-aviso { color: rgba(255, 255, 255, .62); }
.sec-osc .form-aviso a { color: var(--oro-clr); }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --- CTA doble ------------------------------------------------------------ */

.cta-doble {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 66px);
  align-items: start;
}

@media (max-width: 900px) { .cta-doble { grid-template-columns: 1fr; } }

/* --- WhatsApp flotante ---------------------------------------------------- */

.wa-flota {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--wa);
  color: #fff;
  padding: 14px 22px 14px 17px;
  border-radius: 100px;
  font-family: var(--util);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(37, 211, 102, .38);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}

.wa-flota:hover {
  background: var(--wa-osc);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, .48);
}

.wa-flota svg { flex: 0 0 auto; }

@media (max-width: 560px) {
  .wa-flota { padding: 15px; right: 16px; bottom: 16px; }
  .wa-flota span { display: none; }
}

/* --- Bloque de cierre: sello, bendición y cámara -------------------------- */

.cierre {
  background: var(--tinta);
  color: rgba(255, 255, 255, .78);
  padding: clamp(56px, 7vw, 84px) 0;
  text-align: center;
  border-top: 1px solid rgba(232, 206, 122, .22);
}

.cierre-rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 44px;
  align-items: center;
  justify-items: center;
}

.cierre img { margin: 0 auto; }
.cierre-besiyata { max-width: 172px; border: 1px solid rgba(232, 206, 122, .3); }
.cierre-sello { max-width: 132px; opacity: .92; }
/* El logotipo de la Cámara es de un tercero: no se recolorea. Va sobre placa
   blanca para que conserve su color sobre el fondo oscuro del cierre. */
.cierre-canaco {
  display: block;
  max-width: 190px;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--r);
}

.cierre-pie {
  font-family: var(--capital);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oro-clr);
  margin-top: 16px;
}

.cierre-nota {
  font-family: var(--lectura);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, .6);
  margin: 8px auto 0;
  max-width: 34ch;
}

/* --- Pie ------------------------------------------------------------------ */

.pie {
  background: var(--tinta);
  color: rgba(255, 255, 255, .7);
  padding: 74px 0 0;
  font-family: var(--util);
  font-size: .88rem;
  border-top: 1px solid rgba(232, 206, 122, .18);
}

.pie-rejilla {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 46px;
  padding-bottom: 56px;
}

@media (max-width: 860px) { .pie-rejilla { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .pie-rejilla { grid-template-columns: 1fr; } }

.pie-sello { width: 132px; margin-bottom: 20px; opacity: .92; }

.pie-marca {
  font-family: var(--capital);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.pie h4 {
  font-family: var(--capital);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oro-clr);
  margin-bottom: 18px;
}

.pie li { margin-bottom: 11px; }
.pie a { transition: color .18s; }
.pie a:hover { color: var(--oro-clr); }
.pie p { color: rgba(255, 255, 255, .68); max-width: 38ch; font-family: var(--lectura); font-size: 1.02rem; }

.pie-legal {
  border-top: 1px solid rgba(232, 206, 122, .16);
  padding: 24px 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

.pie-lema {
  font-family: var(--capital);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oro-clr);
}

.pie-redes { display: flex; gap: 12px; margin-top: 18px; }

.pie-redes a {
  width: 38px; height: 38px;
  border: 1px solid rgba(232, 206, 122, .3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oro-clr);
  transition: background-color .2s, color .2s;
}
.pie-redes a:hover { background: var(--oro-clr); color: var(--tinta); }

/* --- Datos pendientes ----------------------------------------------------- */

.dato-pend {
  background: rgba(184, 137, 28, .16);
  border-bottom: 1px dashed rgba(138, 101, 16, .6);
  padding: 0 3px;
  font-style: normal;
}

.sec-osc .dato-pend,
.pie .dato-pend,
.hero .dato-pend,
.cierre .dato-pend {
  background: rgba(232, 206, 122, .2);
  border-bottom-color: rgba(232, 206, 122, .65);
  color: var(--oro-clr);
}

/* --- Aparición al hacer scroll ------------------------------------------- */

.rev {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.rev[data-visible="si"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { .rev { opacity: 1; transform: none; } }

/* --- Páginas de texto ----------------------------------------------------- */

.texto-largo { max-width: 760px; }
.texto-largo h2 { margin: 46px 0 16px; font-size: 1.45rem; }
.texto-largo h3 { margin: 32px 0 12px; font-size: 1.12rem; }
.texto-largo p { margin-bottom: 16px; }
.texto-largo ul { margin: 0 0 20px 22px; list-style: disc; }
.texto-largo li { margin-bottom: 9px; }
.texto-largo a { color: var(--oro-osc); text-decoration: underline; text-underline-offset: 2px; }

/* --- Utilidades ----------------------------------------------------------- */

.solo-lector {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.centro { text-align: center; margin-left: auto; margin-right: auto; }
.enlace-oro { color: var(--oro-osc); text-decoration: underline; text-underline-offset: 3px; }
.sec-osc .enlace-oro { color: var(--oro-clr); }

/* --- Mapa de contacto ----------------------------------------------------- */

.mapa iframe { display: block; border: 1px solid var(--linea) !important; background: var(--crema-2); }
.mapa a { display: inline-block; margin-top: 12px; font-family: var(--util); font-size: .86rem; }

/* --- Reel vertical (video de Pieles San Dimas) ---------------------------- */

/* Va dentro de una columna, alineado con el titular */
.reel { margin-top: 32px; }

.video-vert {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  box-shadow: var(--sombra);
}

.video-vert video { width: 100%; height: 100%; object-fit: cover; }

.reel-pie {
  margin: 14px 0 0;
  max-width: 320px;
  text-align: left;
  font-family: var(--lectura);
  font-style: italic;
  font-size: 1rem;
  color: var(--gris);
}
