/* ============================================================
   Widgets flotantes — Viaja con Chapitos
   Bocadillo de contacto + panel de accesibilidad
   Prefijo vcf- · z-index 99999
   ============================================================ */

/* ---------- Contenedor fijo (esquina inferior derecha) ------- */
.vcf-stack {
  position: fixed;
  right: 1.55rem;
  bottom: 1rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
}

.vcf-stack > * {
  pointer-events: auto;
}

.vcf-contact-trigger:hover {
  transform: scale(1.06);
  background: #0f1724;
}

.vcf-contact-trigger:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.vcf-bubble__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.vcf-bubble__list li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Iconos circulares con color oficial ---------------- */
.vcf-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.05rem;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-bottom: 0.55rem;
  z-index: 99999;
}

.vcf-social-link i {
  line-height: 1;
  font-size: 1.05rem;
  color: #ffffff;
}

.vcf-social-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.vcf-social-link:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

.vcf-social-link--whatsapp { background: #25d366; }
.vcf-social-link--instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.vcf-social-link--facebook  { background: #1877f2; }
.vcf-social-link--email     { background: #ea4335; }
.vcf-social-link--phone     { background: #0f1724; }

.vcf-social-link:focus-visible {
  outline: 3px solid rgba(251,191,36,0.95);
  outline-offset: 3px;
}

.vcf-a11y-trigger {
  width: 3.5rem;
  height: 3.5rem;
  border: 3px solid #111111;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.4rem;
  background: #2563eb;
  box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.vcf-a11y-trigger:hover {
  transform: scale(1.06);
  background: #1d4ed8;
  box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.25);
}

.vcf-a11y-trigger:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.vcf-a11y-trigger[aria-expanded="true"] {
  background: #1e3a8a;
  transform: scale(0.97);
}

.vcf-a11y-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.vcf-a11y-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.vcf-a11y-dialog {
  position: fixed;
  right: 1.55rem;
  bottom: 7.1rem;
  z-index: 99999;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(75vh, 32rem);
  overflow-y: auto;
  background: #ffffff;
  color: #111827;
  border: 3px solid #111111;
  border-radius: 14px;
  box-shadow: 6px 8px 24px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.vcf-a11y-dialog.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vcf-a11y-dialog:focus {
  outline: none;
}

.vcf-a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #e5e7eb;
}

.vcf-a11y-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0b3d91;
}

.vcf-a11y-close {
  width: 2rem;
  height: 2rem;
  border: 2px solid #111111;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111827;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.vcf-a11y-close:hover {
  background: #e5e7eb;
}

.vcf-a11y-close:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.vcf-a11y-options {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vcf-a11y-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.vcf-a11y-span-2 {
  grid-column: 1 / -1;
}

.vcf-a11y-btn__icon {
  width: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b3d91;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.vcf-a11y-btn__text {
  flex: 1;
}
.vcf-a11y-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
}
.vcf-a11y-btn:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.vcf-a11y-btn[aria-pressed="true"],
.vcf-a11y-btn.active {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1e3a8a;
}

.vcf-a11y-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.875rem;
  font-weight: 600;
}

.vcf-a11y-group__actions {
  display: flex;
  gap: 0.35rem;
}

.vcf-a11y-mini {
  min-width: 2.2rem;
  height: 2.1rem;
  padding: 0 0.45rem;
  border: 2px solid #9ca3af;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vcf-a11y-mini:hover {
  background: #e5e7eb;
}

.vcf-a11y-mini:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.vcf-a11y-reset {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.85rem;
  border: 3px solid #111111;
  border-radius: 10px;
  background: #0b3d91;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vcf-a11y-reset:hover {
  background: #1f6feb;
}

.vcf-a11y-reset:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

.vcf-a11y-hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .vcf-a11y-hint {
    display: none;
  }
}

html.vcf-a11y-contrast,
html.vcf-a11y-contrast body {
  background: #000000 !important;
  color: #ffff00 !important;
}

html.vcf-a11y-contrast a,
html.vcf-a11y-contrast button,
html.vcf-a11y-contrast h1,
html.vcf-a11y-contrast h2,
html.vcf-a11y-contrast h3,
html.vcf-a11y-contrast h4,
html.vcf-a11y-contrast p,
html.vcf-a11y-contrast li,
html.vcf-a11y-contrast span,
html.vcf-a11y-contrast label,
html.vcf-a11y-contrast small {
  color: #ffff00 !important;
}

html.vcf-a11y-contrast .navbar,
html.vcf-a11y-contrast .footer,
html.vcf-a11y-contrast .card,
html.vcf-a11y-contrast .hero,
html.vcf-a11y-contrast .section,
html.vcf-a11y-contrast .tour,
html.vcf-a11y-contrast .modal-box,
html.vcf-a11y-contrast .vcf-a11y-dialog,
html.vcf-a11y-contrast .vcf-bubble {
  background: #000000 !important;
  border-color: #ffffff !important;
}

html.vcf-a11y-contrast .btn {
  background: #ffff00 !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

html.vcf-a11y-contrast img {
  opacity: 0.85;
}

html.vcf-a11y-grayscale {
  filter: grayscale(100%);
}

html.vcf-a11y-highlight a {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 2px !important;
  text-decoration: underline !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 3px !important;
}

html.vcf-a11y-highlight button,
html.vcf-a11y-highlight .btn,
html.vcf-a11y-highlight input[type="submit"] {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #000000 !important;
}

html.vcf-a11y-big-cursor,
html.vcf-a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='2' d='M8 4l4 36 8-14 12 16 6-4-12-16h16z'/%3E%3C/svg%3E") 4 4, auto !important;
}

html.vcf-a11y-no-motion *,
html.vcf-a11y-no-motion *::before,
html.vcf-a11y-no-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

html.vcf-a11y-no-motion .hero,
html.vcf-a11y-no-motion .btn {
  transform: none !important;
}

@media (max-width: 480px) {
  .vcf-stack {
    right: 0.85rem;
    bottom: 0.75rem;
  }

  .vcf-social-link {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1rem;
  }

  .vcf-contact-trigger,
  .vcf-a11y-trigger {
    width: 3.15rem;
    height: 3.15rem;
  }

  .vcf-a11y-dialog {
    right: 0.85rem;
    left: 0.85rem;
    bottom: 6.4rem;
    width: auto;
  }

  .vcf-a11y-options {
    grid-template-columns: 1fr;
  }

  .vcf-a11y-btn {
    padding: 0.68rem 0.75rem;
    font-size: 0.84rem;
  }

  .vcf-cloud {
    right: 0;
    bottom: 7rem;
    z-index: 100002;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }

  .vcf-cloud__list {
    flex-direction: column;
    gap: 0.45rem;
    padding: 0;
    align-items: flex-end;
  }
}

@media (min-width: 769px) {
  .vcf-a11y-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (hover: none), (pointer: coarse) {
  .vcf-a11y-desktop-only {
    display: none !important;
  }

  #vcf-big-cursor {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  #vcf-big-cursor {
    display: none !important;
  }
}

html.vcf-a11y-dyslexia-font,
html.vcf-a11y-dyslexia-font body,
html.vcf-a11y-dyslexia-font button,
html.vcf-a11y-dyslexia-font input,
html.vcf-a11y-dyslexia-font textarea,
html.vcf-a11y-dyslexia-font select {
  font-family: "Atkinson Hyperlegible", "Lexend", "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0.012em;
  word-spacing: 0.06em;
}

html.vcf-a11y-reading-guide::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 46vh;
  height: 3px;
  background: linear-gradient(90deg, rgba(37,99,235,0), rgba(37,99,235,0.8), rgba(37,99,235,0));
  box-shadow: 0 0 0 1px rgba(37,99,235,0.18), 0 0 14px rgba(37,99,235,0.25);
  z-index: 99997;
  pointer-events: none;
}

html.vcf-a11y-hide-images img,
html.vcf-a11y-hide-images picture,
html.vcf-a11y-hide-images figure {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .vcf-a11y-backdrop,
  .vcf-a11y-dialog,
  .vcf-social-link,
  .vcf-a11y-trigger {
    transition: none !important;
  }
}
