/* ---------- Contenedor y secciones fullscreen ---------- */
#sections-viewport {
  position: fixed; inset: 0; overflow: hidden; perspective: 1600px;
}
.fs-section {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8%) scale(1.06);
  transition: opacity var(--dur-section) var(--ease), transform var(--dur-section) var(--ease), visibility 0s;
  will-change: transform, opacity;
}
.fs-section.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}
.fs-section.is-leaving-up { opacity: 0; transform: translateY(-8%) scale(0.92); z-index: 1; }
.fs-section.is-leaving-down { opacity: 0; transform: translateY(8%) scale(0.92); z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .fs-section { transition: opacity 0.3s linear; transform: none !important; }
}

.fs-video-wrap { position: absolute; inset: 0; overflow: hidden; background: #050506; }
.fs-video {
  position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%;
  width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover;
}
.fs-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 1; transition: opacity 0.6s ease;
}
.fs-video-wrap.is-playing .fs-poster { opacity: 0; }
.fs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--overlay-dark) 0%, rgba(6,6,7,0.32) 45%, var(--overlay-dark-strong) 100%);
}

.fs-content {
  position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column;
  /* "safe center": centra verticalmente cuando cabe, pero si el contenido desborda
     (listas largas en pantallas bajas) se ancla arriba en vez de cortarse por los dos lados */
  justify-content: safe center; padding: 5.5rem var(--space-xl) 1.5rem var(--space-xl);
  max-width: 900px; overflow-y: auto; scrollbar-width: thin;
}
.fs-section[data-align="center"] .fs-content { align-items: center; text-align: center; margin: 0 auto; }

.fs-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em; font-size: var(--fs-small);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-strong); margin-bottom: var(--space-sm);
}
.fs-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-strong); }
.fs-title { font-size: var(--fs-hero); color: var(--ink-1); margin-bottom: var(--space-sm); }
.fs-section:not(.hero-section) .fs-title { font-size: var(--fs-h1); }
.fs-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin-bottom: var(--space-md); }
.fs-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-sm); }

/* ---------- Listas de servicios ---------- */
.service-list { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 560px; }
.service-list li {
  display: flex; justify-content: space-between; gap: var(--space-md); align-items: baseline;
  padding: 0.75em 0; border-bottom: 1px dashed rgba(247,245,240,0.22);
}
.service-list .name { color: var(--ink-1); font-size: 1.02rem; }
.service-list .name small { display: block; color: var(--ink-3); font-size: 0.8rem; margin-top: 0.15em; }
.service-list .price { color: var(--gold-strong); font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }

/* ---------- Grid de pilares (sobre nosotros) ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-md); width: 100%; }
.pillar { text-align: center; }
.pillar .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-strong); display: block; }
.pillar .label { font-size: var(--fs-small); color: var(--ink-2); }

/* ---------- Ubicación ---------- */
.location-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-lg); width: 100%; align-items: center; }
.location-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(201,163,92,0.3); height: 360px; }
.location-map iframe { width: 100%; height: 100%; border: 0; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: var(--space-sm); }
.hours-table td { padding: 0.4em 0; color: var(--ink-2); border-bottom: 1px solid rgba(247,245,240,0.12); }
.hours-table td:first-child { color: var(--ink-1); font-weight: 600; }
.hours-table td:last-child { text-align: right; }
.contact-line { display: flex; align-items: center; gap: 0.6em; margin: 0.5em 0; color: var(--ink-1); }
.contact-line a { color: var(--gold-strong); text-decoration: none; }
.contact-line svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-strong); }

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .location-map { height: 260px; }
}

/* ---------- Formulario de contacto ---------- */
.contact-form { width: 100%; max-width: 480px; display: grid; gap: 0.9rem; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.contact-form label { display: block; font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 0.35em; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(247,245,240,0.25);
  border-radius: var(--radius); padding: 0.75em 0.9em; color: var(--ink-1); font-family: var(--font-body); font-size: 1rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form select option { color: #000; }
.form-error { color: #e5484d; font-size: var(--fs-small); margin: 0; }
.form-success { color: var(--gold-strong); font-size: 0.95rem; line-height: 1.5; margin: 0; }
.social-row { display: flex; gap: 0.8rem; margin-top: var(--space-sm); }
.social-row a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247,245,240,0.35); display: flex; align-items: center; justify-content: center; }
.social-row svg { width: 20px; height: 20px; }

/* ---------- Responsive general de contenido ---------- */
@media (max-width: 760px) {
  .fs-content { padding: 5.5rem var(--space-md) 9rem var(--space-md); max-width: 100%; } /* 9rem abajo: los 2 fabs apilados ocupan ~120px + margen */
  .fs-content { padding-right: 3.2rem; } /* espacio para los dots */
  .pillar-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-sm); margin-top: var(--space-sm); }
  .pillar .num { font-size: 1.6rem; }
  .pillar .label { font-size: 0.72rem; }
  .contact-form .row2 { grid-template-columns: 1fr; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .fs-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .fs-lead { display: none; }
}
