/* L.A. REFORMAS — estilos propios (motion.css aparte) */

:root {
  --mk-primario: #b21c2e;
  --mk-secundario: #d0b78f;
  --mk-fondo: #fdfaf5;
  --mk-texto: #211a16;

  --rojo: #b21c2e;
  --rojo-osc: #8a1523;
  --madera: #d0b78f;
  --madera-osc: #503225;
  --crema: #fdfaf5;
  --crema-alt: #f3e9d8;
  --tinta: #211a16;
  --tinta-suave: #5a4e46;

  --fnt-titulos: "Fraunces", Georgia, serif;
  --fnt-texto: "Karla", "Segoe UI", sans-serif;

  --radio: 14px;
  --sombra: 0 20px 50px -20px rgba(33, 26, 22, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fnt-texto);
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.contenedor {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
h1, h2, h3, h4 {
  font-family: var(--fnt-titulos);
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--tinta);
  font-weight: 600;
}
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--fnt-texto);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--rojo);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--rojo);
  display: inline-block;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  font-family: var(--fnt-texto);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow .3s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--rojo { background: var(--rojo); color: #fff; box-shadow: 0 14px 30px -10px rgba(178,28,46,.55); }
.btn--rojo:hover { background: var(--rojo-osc); }
.btn--fantasma { background: transparent; color: inherit; border-color: currentColor; }
.btn--fantasma:hover { background: rgba(255,255,255,.12); }
.btn--claro { background: var(--crema); color: var(--tinta); }

/* ---------- Header ---------- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(253, 250, 245, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(80, 50, 37, 0.08);
}
.marca {
  display: flex; align-items: center; gap: 0.65em;
  text-decoration: none; color: var(--tinta);
}
.marca img { height: 34px; width: auto; }
.marca strong {
  font-family: var(--fnt-titulos);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--rojo);
  letter-spacing: 0.01em;
}
.marca-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  font-weight: 700;
}
#nav-links {
  display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0;
  font-weight: 700; font-size: 0.92rem;
}
#nav-links a { text-decoration: none; position: relative; }
#nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--rojo); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
#nav-links a:hover::after { transform: scaleX(1); }
.header-derecha { display: flex; align-items: center; gap: 1.3rem; }
.tel-header {
  display: flex; flex-direction: column; text-decoration: none; text-align: right;
}
.tel-header strong { font-family: var(--fnt-titulos); font-size: 1.05rem; color: var(--tinta); white-space: nowrap; }
.tel-header small { font-size: 0.68rem; color: var(--tinta-suave); font-weight: 700; }
#nav-toggle { display: none; }
.nav-burger { display: none; }

@media (max-width: 880px) {
  #nav-links { display: none; }
  .marca-sub { display: none; }
}
@media (max-width: 640px) {
  .tel-header small { display: none; }
  .header-derecha .btn { display: none; }
  .marca img { height: 28px; }
  .tel-header strong { font-size: 0.92rem; }
  #site-header { padding: 0.6rem 1.1rem; }
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
#hero .hero-media {
  position: absolute; inset: 0; z-index: 0;
}
#hero .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
#hero .hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,14,10,.35) 0%, rgba(20,14,10,.15) 30%, rgba(20,14,10,.55) 72%, rgba(15,10,8,.88) 100%);
}
#hero .hero-contenido {
  position: relative; z-index: 2;
  padding: clamp(6rem,14vw,8rem) clamp(1.25rem,4vw,2.5rem) clamp(3rem,7vw,4.5rem);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
#hero .eyebrow { color: var(--madera); }
#hero .eyebrow::before { background: var(--madera); }
#hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
#hero .hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #f1e9dd;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 2.4rem; }
.hero-stats {
  display: flex; gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 1.6rem;
}
.hero-stats .stat strong {
  display: block; font-family: var(--fnt-titulos); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff;
}
.hero-stats .stat span { font-size: 0.78rem; color: var(--madera); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ---------- Secciones genéricas ---------- */
section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { color: var(--tinta-suave); font-size: 1.08rem; }

/* ---------- Valores ---------- */
#valores { background: var(--crema); }
.valores-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.valores-intro p { font-size: 1.12rem; color: var(--tinta-suave); }
.valores-intro .firma {
  margin-top: 1.6rem; font-family: var(--fnt-titulos); font-style: italic; font-size: 1.2rem; color: var(--rojo);
}
.lista-valores { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.lista-valores li {
  display: flex; gap: 0.9em; align-items: flex-start;
  padding: 1.1rem 1.2rem; background: #fff; border-radius: var(--radio);
  border: 1px solid rgba(80,50,37,.08);
}
.lista-valores li svg { flex-shrink: 0; margin-top: 3px; color: var(--rojo); }
.lista-valores strong { display: block; font-family: var(--fnt-titulos); font-size: 1.02rem; }
.lista-valores span { color: var(--tinta-suave); font-size: 0.94rem; }

/* ---------- Galería horizontal (mk-pin + mk-hscroll) ---------- */
#trabajo { background: var(--madera-osc); color: #fff; }
#trabajo .section-head { color: #fff; }
#trabajo .section-head p { color: #e4d5c2; }
#trabajo .eyebrow { color: var(--madera); }
#trabajo .eyebrow::before { background: var(--madera); }
.mk-pin.galeria { height: 320vh; }
.galeria-card {
  width: min(70vw, 560px); height: min(70vh, 620px);
  border-radius: var(--radio); overflow: hidden; position: relative;
  box-shadow: var(--sombra);
}
.galeria-card img { width: 100%; height: 100%; object-fit: cover; }
.galeria-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: #fff; font-weight: 700; font-family: var(--fnt-titulos); font-size: 1.05rem;
}
.galeria-hint {
  text-align: center; font-size: 0.85rem; color: #e4d5c2; margin-top: 1rem; letter-spacing: .04em;
}

/* ---------- Servicios ---------- */
#servicios { background: var(--crema); }
.servicio-fila {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid rgba(80,50,37,.12);
}
.servicio-fila:first-of-type { border-top: none; }
.servicio-fila.invertida { direction: rtl; }
.servicio-fila.invertida > * { direction: ltr; }
.servicio-foto { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4/3.1; }
.servicio-foto img { width: 100%; height: 100%; object-fit: cover; }
.servicio-texto h3 { font-size: 1.6rem; }
.lista-servicios { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.lista-servicios li { border-left: 3px solid var(--rojo); padding-left: 1rem; }
.lista-servicios strong { display: block; font-family: var(--fnt-titulos); font-size: 1.05rem; }
.lista-servicios span { color: var(--tinta-suave); font-size: 0.93rem; }

/* ---------- Nosotros ---------- */
#nosotros { background: var(--crema-alt); }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.cita-grande {
  font-family: var(--fnt-titulos); font-style: italic; color: var(--rojo);
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; margin: 0 0 1.2rem;
}
.fundadores { display: flex; gap: 1.4rem; align-items: center; margin: 1.6rem 0; }
.fundadores .avatar { display: flex; align-items: center; gap: .6rem; }
.fundadores img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.fundadores span { font-weight: 700; font-size: .92rem; }
.nosotros-foto { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.nosotros-foto figcaption {
  background: var(--madera-osc); color: #f1e9dd; padding: .9rem 1.2rem; font-size: .88rem; font-weight: 700;
}

/* ---------- Reseñas ---------- */
#resenas { background: var(--crema); }
.resenas-cabecera { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.badge-google {
  display: flex; align-items: center; gap: .9rem;
  background: #fff; border: 1px solid rgba(80,50,37,.12); border-radius: var(--radio);
  padding: 1rem 1.4rem; box-shadow: var(--sombra);
}
.badge-google strong { font-family: var(--fnt-titulos); font-size: 1.8rem; }
.badge-google .estrellas { color: #e8a93a; letter-spacing: 2px; }
.badge-google small { display: block; color: var(--tinta-suave); }
.resenas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.resena-card {
  background: #fff; border-radius: var(--radio); padding: 1.6rem;
  border: 1px solid rgba(80,50,37,.1);
}
.resena-card .estrellas { color: #e8a93a; letter-spacing: 2px; font-size: .9rem; margin-bottom: .6rem; display: block; }
.resena-card p { font-size: .96rem; color: var(--tinta); }
.resena-card footer { font-weight: 700; font-size: .88rem; color: var(--tinta-suave); }
.link-google {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 2rem;
  font-weight: 700; text-decoration: none; color: var(--rojo); border-bottom: 2px solid var(--rojo);
  padding-bottom: 2px;
}

/* ---------- Marcas (marquee) ---------- */
#marcas { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--crema-alt); }
#marcas .section-head { margin-bottom: 1.6rem; text-align: center; max-width: none; }
#marcas .section-head p { margin: 0 auto; }
.mk-marquee-track img { height: 34px; width: auto; object-fit: contain; filter: grayscale(1) opacity(0.65); }

/* ---------- Contacto (cierre estático) ---------- */
#contacto {
  background: var(--madera-osc); color: #f6ede0;
  padding: clamp(4.5rem, 9vw, 7rem) 0 0;
}
#contacto .eyebrow { color: var(--madera); }
#contacto .eyebrow::before { background: var(--madera); }
#contacto h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); max-width: 16ch; }
.contacto-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contacto-tel {
  display: inline-flex; flex-direction: column; text-decoration: none; color: #fff;
  margin: 1.4rem 0 2rem;
}
.contacto-tel strong { font-family: var(--fnt-titulos); font-size: clamp(2rem, 5vw, 2.8rem); }
.contacto-datos { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; font-size: 1rem; }
.contacto-datos li { display: flex; gap: .8em; align-items: flex-start; }
.contacto-datos svg { flex-shrink: 0; margin-top: 3px; color: var(--madera); }
.contacto-datos a { text-decoration: none; color: #fff; }
.mapa-embed { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); border: 4px solid rgba(255,255,255,.08); }
.mapa-embed iframe { width: 100%; height: 340px; border: 0; display: block; }
.footer-bottom {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  font-size: .82rem; color: #cbb89f;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .valores-grid, .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; }
  .servicio-fila { grid-template-columns: 1fr; }
  .servicio-fila.invertida { direction: ltr; }
  .servicio-fila .servicio-foto { order: -1; }
  .resenas-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .resenas-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .fundadores { flex-wrap: wrap; }
  .contacto-grid { gap: 2.5rem; }
}
