:root {
  color-scheme: dark;
}
body {
  background-color: #0a0a0a;
  color: #e6dfd0;
  font-family: "Figtree", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
.font-heading {
  font-family: "Josefin Sans", sans-serif;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #c9a24a;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 1. CTA con brillo ===== */
.cta-glow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: ctaPulse 2.6s ease-in-out infinite;
}
.cta-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  animation: ctaShine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.cta-glow:hover {
  animation-duration: 1.4s;
}
@keyframes ctaPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(201, 162, 74, 0.55),
      0 0 12px rgba(201, 162, 74, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(201, 162, 74, 0),
      0 0 26px rgba(224, 188, 102, 0.6);
  }
}
@keyframes ctaShine {
  0%,
  55% {
    left: -75%;
  }
  100% {
    left: 130%;
  }
}

/* ===== 2. Servicios: filas que entran y línea dorada al pasar el cursor ===== */
.svc-row {
  position: relative;
}
.svc-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #c9a24a, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.svc-row:hover::after {
  transform: scaleX(1);
}
.svc-row > span:first-child {
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
.svc-row:hover > span:first-child {
  transform: translateX(10px);
}
.svc-row:hover > span:last-child {
  color: #c9a24a;
}

/* ===== 3. Galería clickeable ===== */
.gallery-item {
  cursor: pointer;
  display: flex;
}
.gallery-item img {
  transition:
    transform 0.6s ease,
    opacity 0.3s ease;
}
.gallery-item.group:hover img,
.gallery-item.group:focus-visible img {
  transform: scale(1.06);
  opacity: 0.45;
}
.gal-hint {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f0dab9;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover .gal-hint,
.gallery-item:focus-visible .gal-hint {
  opacity: 1;
}
.gal-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 162, 74, 0.6);
  border-radius: 3px;
  background: rgba(10, 10, 10, 0.6);
  color: #c9a24a;
}

/* ===== 4. Aparición al hacer scroll ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.svc-row {
  transform: translateX(-28px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Menú móvil lateral ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
}
.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(320px, 85vw);
  display: flex;
  flex-direction: column;
  background: #141414;
  border-left: 1px solid #83703f;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0.35s;
  overflow-y: auto;
}
.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}
.menu-open .menu-drawer {
  transform: none;
  visibility: visible;
}
@media (min-width: 768px) {
  .menu-overlay,
  .menu-drawer {
    display: none;
  }
}
