/* ARREGLA CASA · HOME — una pantalla, fotografía y cinta visual */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.ac-home-page {
  min-height: 100svh;
  background: #171512;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
.ac-home {
  position: relative;
  flex: 1 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}
.ac-home__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,14,12,.74), rgba(15,14,12,.45)),
              rgba(0,0,0,.13);
}
.ac-home__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(96px, 12vh, 130px) 0 25px;
}
.ac-home__intro {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.ac-home__kicker { font-size: 10px; letter-spacing: .3em; opacity: .72; }
.ac-home h1 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 4.5vw, 63px);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.ac-home h1 em { font-family: Georgia, serif; font-weight: 400; }
.ac-home__intro p {
  margin: 0;
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1.6;
  color: rgba(255,255,255,.78);
}
.ac-gallery {
  overflow: hidden;
  margin-top: clamp(20px, 4vh, 38px);
  padding: 12px 0;
  background: rgba(255,255,255,.045);
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.ac-gallery__track {
  display: flex;
  width: max-content;
  animation: ac-slide 65s linear infinite;
}
.ac-gallery:hover .ac-gallery__track { animation-play-state: paused; }
.ac-gallery__set { display: flex; flex: 0 0 auto; gap: 14px; padding-right: 14px; }
.ac-gallery__item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(135px, 13vw, 190px);
  height: clamp(170px, 26vh, 240px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}
.ac-gallery__item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ac-gallery__item::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.63));
}
.ac-gallery__item figcaption {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 13px;
  right: 10px;
  font-size: 11px;
  letter-spacing: .08em;
}
@keyframes ac-slide { to { transform: translateX(-50%); } }
.ac-home__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 25px 20px 0;
}
.ac-home__actions a {
  padding: 13px 19px;
  color: white;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .16em;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  transition: background .25s;
}
.ac-home__actions a:hover { background: rgba(255,255,255,.19); }
.ac-home__actions span { margin-left: 12px; }

@media (min-height: 690px) {
  .ac-home-page { height: 100svh; overflow: hidden; }
}
@media (max-width: 650px) {
  .ac-home__content { padding-top: 85px; }
  .ac-home h1 { font-size: clamp(29px,8.4vw,42px); }
  .ac-gallery__item { width: 145px; height: 190px; }
  .ac-home__actions { gap: 9px; }
  .ac-home__actions a { padding: 12px; font-size: 9px; }
  .ac-home-page .ac-footer__inner { grid-template-columns: 1fr; gap: 6px; }
  .ac-home-page .ac-footer__legal { flex-wrap: wrap; text-align: left; }
}
@media (max-height: 689px) {
  .ac-home__content { padding-top: 85px; }
  .ac-gallery__item { height: 145px; width: 115px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-gallery__track { animation: none; }
  .ac-gallery { overflow-x: auto; }
}

/* Fondo fijo que continúa detrás del footer compartido. */
body.ac-home-page { background: #171512 url("../images/home.png") center / cover fixed no-repeat; }
