/* ============================================================
   AUDITORÍA — styles.css
   Página de reserva: hero + embed del calendario HubSpot Meetings.
   Hereda tokens de components.css y utilidades de ../home/styles.css.
   Solo estilos propios de esta página (prefijo dg-aud-).
   ============================================================ */

/* ---- S1 · HERO ---- */
.dg-aud-hero {
  padding: 96px 0 56px;
  background: #fff;
}

.dg-aud-hero__inner {
  max-width: 820px;
  text-align: center;
}

.dg-aud-hero__eyebrow {
  margin-bottom: 18px;
}

.dg-aud-hero__h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 24px;
}

.dg-aud-hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 640px;
  margin: 0 auto 32px;
}

.dg-aud-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dg-aud-hero__trust-item {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-80);
  padding-left: 22px;
}

/* Check verde lima como marcador */
.dg-aud-hero__trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--lima);
}

/* ---- S2 · CALENDARIO ---- */
.dg-aud-cal {
  padding: 0 0 96px;
  background: #fff;
}

.dg-aud-cal__inner {
  max-width: 960px;
}

.dg-aud-cal__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.dg-aud-cal__h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}

.dg-aud-cal__sub {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  color: var(--ink-70);
  margin: 0;
}

.dg-aud-cal__embed {
  position: relative;
  border: 1px solid var(--ink-12);
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  min-height: 640px;
  box-shadow: 0 18px 50px -28px rgba(38, 59, 74, 0.35);
}

/* El embed de HubSpot inyecta un iframe a 100% de ancho. */
.dg-aud-cal__embed .meetings-iframe-container {
  position: relative;
  z-index: 1;
  min-height: 624px;
}

.dg-aud-cal__embed .meetings-iframe-container iframe {
  width: 100% !important;
  min-height: 624px;
  border: 0;
}

/* ---- Estado de carga (se oculta al inyectarse el iframe) ---- */
.dg-aud-cal__loading {
  position: absolute;
  inset: 8px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-70);
}

.dg-aud-cal__loading-bar {
  width: 180px;
  height: 4px;
  border-radius: 4px;
  background: var(--ink-12);
  overflow: hidden;
}

.dg-aud-cal__loading-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 4px;
  background: var(--lima);
  animation: dg-aud-load 1.1s var(--ease-out, ease-in-out) infinite;
}

@keyframes dg-aud-load {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.dg-aud-cal__fallback {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-65);
}

.dg-aud-cal__fallback a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lima);
  text-underline-offset: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .dg-aud-hero { padding: 72px 0 40px; }
  .dg-aud-cal { padding: 0 0 64px; }
  .dg-aud-cal__embed { min-height: 560px; }
  .dg-aud-cal__embed .meetings-iframe-container,
  .dg-aud-cal__embed .meetings-iframe-container iframe { min-height: 544px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .dg-aud-cal__loading-bar::after { animation: none; width: 100%; }
}
