/* Ajustes compartidos de accesibilidad, estabilidad visual y responsive. */

:focus-visible {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 3px !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  transform: translateY(-160%);
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .24);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

/* El contenido sigue visible aunque falle JavaScript o IntersectionObserver. */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

.footer-brand p,
.brand-copy span,
.site-footer p,
.site-footer .footer-bottom {
  color: #cbd5e1 !important;
}

.hero-image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.indicator {
  width: 28px !important;
  height: 28px !important;
  background: radial-gradient(circle, rgba(255,255,255,.38) 0 6px, transparent 6.5px) !important;
}
.indicator.active {
  width: 38px !important;
  background: linear-gradient(90deg, #60a5fa, #22d3ee) !important;
}

.privacy-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99990;
  max-width: 920px;
  margin-inline: auto;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 24px 70px rgba(2,6,23,.38);
}

.privacy-consent p { margin: 0; color: #e2e8f0; line-height: 1.55; }
.privacy-consent a { color: #93c5fd; text-decoration: underline; }
.privacy-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.privacy-consent button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #64748b;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.privacy-consent button[data-consent="accept"] { border-color: #2563eb; background: #2563eb; }

.privacy-settings {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 9990;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(2,6,23,.24);
}

.external-content-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 420px;
  padding: 30px;
  border: 1px dashed #94a3b8;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  text-align: center;
}
.external-content-placeholder p { max-width: 42ch; margin: 0; color: #475569; }

.instagram-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  background: #fff;
}
.instagram-reference p { margin: 5px 0 0; color: #475569; }
.instagram-reference__label { color: #7c3aed; font-weight: 800; }

@media (max-width: 720px) {
  .instagram-reference { align-items: stretch; flex-direction: column; }
  .instagram-reference .btn { width: 100%; }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr) !important; }
  .hero-visual { display: block !important; }
}

@media (max-width: 1100px) {
  .nav-links,
  .nav-actions .desktop-only { display: none !important; }
  .menu-toggle { display: inline-flex !important; }
  .nav-links.mobile-open {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: grid !important;
    gap: 2px;
    padding: 12px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 60px rgba(2,6,23,.2);
  }
  .nav-links.mobile-open a { display: block; padding: 12px 10px; border-radius: 10px; }
}

@media (max-width: 720px) {
  .topbar { min-height: 38px; }
  .topbar-inner { min-height: 38px; gap: 8px !important; flex-wrap: nowrap !important; }
  .topbar-info span:not(:first-child),
  .topbar-actions a:not(:last-child) { display: none !important; }
  .topbar-info, .topbar-actions { flex-wrap: nowrap !important; font-size: .76rem; }
  .topbar-actions { margin-left: auto; }
  .hero { padding-top: 54px !important; }
  .hero-copy h1 { font-size: clamp(2.25rem, 12vw, 3.5rem) !important; }
  .privacy-consent { bottom: 10px; left: 10px; right: 10px; padding: 16px; }
  .privacy-consent__actions button { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
