/**
 * Tema público: fondo, acento azul vivo, compatibilidad con Bootstrap 5
 * Incluye mejoras de accesibilidad (WCAG 2.2), SEO y Core Web Vitals
 */
:root {
  --vt-accent: #3aa8ff;
  --vt-accent-hover: #2196f3;
  --vt-accent-active: #1a7fd9;
  --vt-navy: #1a2d4a;
  --vt-navy-muted: #3d5a7a;
  --vt-text-muted: #5a6b7d;
  --vt-glass: rgba(255, 255, 255, 0.72);
  --vt-glass-strong: rgba(255, 255, 255, 0.88);
  --bs-primary: #3aa8ff;
  --bs-primary-rgb: 58, 168, 255;
  --bs-link-color: var(--vt-navy);
  --bs-link-hover-color: var(--vt-navy-muted);
  --vt-focus-ring: 0 0 0 3px rgba(44, 94, 158, 0.4);
}

/* Scroll suave solo si el usuario no prefiere movimiento reducido */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Reducir movimiento para usuarios que lo prefieren (WCAG 2.3) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link para accesibilidad (WCAG 2.4.1) */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 1rem 1.5rem;
  background: var(--vt-navy);
  color: #fff !important;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform 0.2s ease-in-out;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--vt-focus-ring);
}

/* Focus visible mejorado para accesibilidad de teclado (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--vt-navy);
  outline-offset: 2px;
  box-shadow: var(--vt-focus-ring);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--vt-navy);
  outline-offset: 2px;
  box-shadow: var(--vt-focus-ring);
}

/* Scroll margin para navegación con sticky header (WCAG 2.4.11) */
[id] {
  scroll-margin-top: 6rem;
}

#main-content {
  scroll-margin-top: 5.5rem;
}

body {
  padding-top: 5.5rem;
  min-height: 100vh;
  color: var(--vt-navy);
  background-color: #cfe8fc;
  background-image: url("../img/site-bg-bokeh.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
}

body a:not(.btn):not(.nav-link):not(.navbar-brand) {
  color: var(--vt-navy);
}

body a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
  color: var(--vt-navy-muted);
}

/* Navbar transparente */
.vt-navbar {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.vt-navbar .navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--vt-navy) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vt-navbar .nav-link {
  color: var(--vt-navy) !important;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  border-radius: 999px;
}

.vt-navbar .nav-link:hover,
.vt-navbar .nav-link:focus {
  background: rgba(158, 203, 244, 0.45) !important;
  color: var(--vt-navy) !important;
}

.vt-search-form {
  max-width: 420px;
  width: 100%;
}

.vt-search-form .input-group {
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 45, 74, 0.08);
}

.vt-search-form .form-control {
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding-left: 1.25rem;
}

.vt-search-form .input-group-text {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--vt-navy-muted);
}

/* Botones primarios */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--vt-accent);
  --bs-btn-border-color: var(--vt-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--vt-accent-hover);
  --bs-btn-hover-border-color: var(--vt-accent-hover);
  --bs-btn-focus-shadow-rgb: 158, 203, 244;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--vt-accent-active);
  --bs-btn-active-border-color: var(--vt-accent-active);
  font-weight: 600;
}

.btn-outline-primary {
  --bs-btn-color: var(--vt-navy);
  --bs-btn-border-color: var(--vt-accent);
  --bs-btn-hover-bg: var(--vt-accent);
  --bs-btn-hover-border-color: var(--vt-accent);
  --bs-btn-hover-color: #fff;
}

/* Hero (referencia: alineado con la tarjeta de eventos) */
.vt-hero-shell {
  width: 100%;
  max-width: min(96vw, 1040px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1rem;
}

.vt-hero-inner {
  max-width: 42rem;
}

.vt-hero-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #2c5e9e;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vt-hero-line + .vt-hero-line {
  margin-top: 0.2em;
}

.vt-hero-regular {
  font-weight: 400;
}

.vt-hero-bold {
  font-weight: 700;
}

.vt-hero-cta {
  background: linear-gradient(180deg, #c5e2fb 0%, #9ecbf4 45%, #7eb6e8 100%);
  border: none;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.85rem;
  box-shadow: 0 6px 18px rgba(44, 94, 158, 0.28);
}

.vt-hero-cta:hover {
  filter: brightness(1.04);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(44, 94, 158, 0.32);
}

/* Ancho del bloque Eventos Destacados (referencia: ancho generoso, centrado) */
.vt-featured-shell {
  width: 100%;
  max-width: min(96vw, 1040px);
  margin-left: auto;
  margin-right: auto;
}

/* Columna de texto: ocupa el espacio disponible y envuelve líneas sin empujar el botón abajo */
.vt-featured-list .vt-event-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* Tarjeta eventos destacados (casi blanco / vidrio, legible) */
.vt-featured-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 1.5rem;
  box-shadow: 0 8px 28px rgba(26, 45, 74, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--vt-navy);
}

.vt-featured-card__body {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* Título con líneas que se difuminan hacia los bordes y punto junto al texto */
.vt-section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
  width: 100%;
}

.vt-section-title-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--vt-navy);
  letter-spacing: 0.02em;
}

.vt-section-fade-line {
  flex: 1;
  min-width: 1.5rem;
  height: 1px;
  position: relative;
}

/* Línea izquierda: transparente en el borde exterior → más visible junto al título; punto interior */
.vt-section-fade-line--left {
  background: linear-gradient(
    90deg,
    rgba(26, 45, 74, 0) 0%,
    rgba(26, 45, 74, 0.12) 45%,
    rgba(26, 45, 74, 0.38) 100%
  );
}

.vt-section-fade-line--left::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(26, 45, 74, 0.45);
}

/* Línea derecha: espejo */
.vt-section-fade-line--right {
  background: linear-gradient(
    270deg,
    rgba(26, 45, 74, 0) 0%,
    rgba(26, 45, 74, 0.12) 45%,
    rgba(26, 45, 74, 0.38) 100%
  );
}

.vt-section-fade-line--right::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(26, 45, 74, 0.45);
}

.vt-featured-list .list-group-item {
  background: transparent;
}

/* Cada evento: tarjeta blanca con radio suave (referencia) */
.vt-featured-list .home-event-row {
  background: #fff;
  border: 1px solid rgba(26, 45, 74, 0.06);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(26, 45, 74, 0.06);
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.75rem !important;
}

.vt-featured-list .home-event-row:last-child {
  margin-bottom: 0;
}

/* Miniatura evento: marco 16:9 (carteles horizontales); evita recorte tipo “cuadrado” del bloque 100×72 */
.home-event-thumb-link {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  width: min(11.5rem, 32vw);
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  overflow: hidden;
  background: linear-gradient(160deg, #eef2f7 0%, #e2e8f0 100%);
  box-shadow: 0 2px 10px rgba(26, 45, 74, 0.1);
}

.home-event-thumb {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  display: block;
  box-shadow: none;
}

.vt-featured-list .vt-event-cta {
  white-space: nowrap;
}

.vt-event-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

.vt-event-title a {
  color: var(--vt-navy);
}

.vt-event-title a:hover {
  color: var(--vt-navy-muted);
}

.vt-event-sub {
  color: #4a5d72;
  font-size: 0.8125rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.vt-event-meta-line {
  color: #3d4f63;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.vt-event-date-time {
  font-weight: 600;
  color: var(--vt-navy);
}

.vt-event-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--vt-accent);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 0.35rem;
}

/* Footer claro con bordes difuminados laterales */
.vt-footer {
  position: relative;
  color: var(--vt-navy);
  margin-top: 3rem;
  padding: 1rem 0 0.75rem;
  background: transparent;
}

.vt-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 10%,
    rgba(255, 255, 255, 0.65) 25%,
    rgba(255, 255, 255, 0.65) 75%,
    rgba(255, 255, 255, 0.55) 90%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

/* Línea superior difuminada */
.vt-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(26, 45, 74, 0) 0%,
    rgba(26, 45, 74, 0.08) 10%,
    rgba(26, 45, 74, 0.15) 25%,
    rgba(26, 45, 74, 0.15) 75%,
    rgba(26, 45, 74, 0.08) 90%,
    rgba(26, 45, 74, 0) 100%
  );
}

.vt-footer > .container {
  position: relative;
  z-index: 1;
}

.vt-footer a {
  color: var(--vt-navy);
  text-decoration: none;
}

.vt-footer a:hover {
  color: var(--vt-navy-muted);
}

.vt-footer .navbar-brand span {
  color: var(--vt-navy) !important;
}

.vt-footer .phone,
.vt-footer .email {
  color: var(--vt-navy);
}

.vt-footer .social-media {
  display: flex;
}

.vt-footer .social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 3px;
  border-radius: 8px;
  background: rgba(100, 180, 230, 0.85);
  color: #fff !important;
  font-size: 1rem;
  transition: transform 0.2s, background 0.2s;
}

.vt-footer .social-media a:hover {
  background: rgba(80, 160, 210, 0.95);
  transform: translateY(-1px);
  color: #fff !important;
}

.vt-footer .copyright {
  color: var(--vt-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  border-top: 1px solid rgba(26, 45, 74, 0.08);
  padding-top: 0.6rem;
  margin-top: 0.75rem !important;
}

/* Dropdown */
.dropdown-menu {
  border-radius: 1rem;
  border: 1px solid rgba(158, 203, 244, 0.5);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(158, 203, 244, 0.35) !important;
  color: var(--vt-navy) !important;
}

/* Páginas internas: tarjetas legibles sobre el fondo */
body .card:not(.vt-featured-card) {
  background: var(--vt-glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--vt-navy);
}

body .card-header {
  background: rgba(255, 255, 255, 0.5);
  color: var(--vt-navy);
  border-color: rgba(26, 45, 74, 0.1);
}

body .table {
  --bs-table-bg: transparent;
  color: var(--vt-navy);
}

body .text-muted {
  color: var(--vt-text-muted) !important;
}

/* Autenticación: ancho útil casi completo en móvil, con aire respecto al borde del viewport */
@media (max-width: 767.98px) {
  main.vt-auth-page.container {
    max-width: 100%;
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  main.vt-auth-page > .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
  }

  main.vt-auth-page > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    flex: 0 0 100%;
    width: 100%;
  }
}

/* Tarjetas de autenticación (login, registro, recuperar) */
.vt-auth-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(26, 45, 74, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem 1.75rem;
}

@media (min-width: 576px) {
  .vt-auth-card {
    padding: 2.5rem 2.25rem;
  }
}

@media (max-width: 767.98px) {
  main.vt-auth-page .vt-auth-card {
    border-radius: 1.25rem;
    padding: 1.65rem 1.35rem;
  }
}

.vt-auth-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--vt-navy);
  font-size: 1.5rem;
}

.vt-auth-card .form-control {
  border: 1px solid rgba(26, 45, 74, 0.15);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: #fff;
  color: var(--vt-navy);
}

.vt-auth-card .form-control:focus {
  border-color: var(--vt-accent);
  box-shadow: 0 0 0 3px rgba(158, 203, 244, 0.25);
}

.vt-auth-card .form-control::placeholder {
  color: var(--vt-text-muted);
}

.vt-auth-card .input-group-text {
  background: rgba(158, 203, 244, 0.15);
  border: 1px solid rgba(26, 45, 74, 0.15);
  border-right: none;
  border-radius: 0.75rem 0 0 0.75rem;
  color: var(--vt-navy-muted);
  padding: 0.75rem 1rem;
}

.vt-auth-card .input-group .form-control {
  border-radius: 0 0.75rem 0.75rem 0;
}

.vt-auth-card .btn-primary {
  border-radius: 0.75rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
}

.vt-auth-card hr {
  border-color: rgba(26, 45, 74, 0.1);
}

.vt-auth-card a {
  color: var(--vt-navy);
}

.vt-auth-card a:hover {
  color: var(--vt-accent-hover);
}

.vt-auth-link {
  color: var(--vt-text-muted);
  text-decoration: none;
}

.vt-auth-link:hover {
  color: var(--vt-navy);
  text-decoration: underline;
}

/* Modal sobre tarjetas con backdrop-filter */
.modal {
  z-index: 1060;
}

.modal-backdrop {
  z-index: 1055;
}

.modal-content {
  background: #fff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(26, 45, 74, 0.2);
}

.modal-header {
  border-bottom: 1px solid rgba(26, 45, 74, 0.1);
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--vt-navy);
}

.modal-body {
  padding: 1.5rem;
  color: var(--vt-navy);
}

.modal-footer {
  border-top: 1px solid rgba(26, 45, 74, 0.1);
  padding: 1rem 1.5rem;
}

/* Modales de estado (éxito, error) */
#registroExitosoModal .modal-content,
#registroErrorModal .modal-content {
  border-radius: 1.25rem;
  border: none;
}

#registroExitosoModal .fa-envelope-circle-check {
  color: #28a745;
}

#registroErrorModal .fa-circle-exclamation {
  color: #dc3545;
}

/* Spinner en botón */
.btn .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* ========================================
   Página de detalle del evento
   ======================================== */

.vt-event-hero {
  text-align: center;
}

.vt-event-hero-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: var(--vt-navy);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
}

.vt-event-hero-title strong {
  font-weight: 700;
}

.vt-event-hero-sub {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #5a9fd4;
  font-size: 1.1rem;
}

.vt-event-hero-sub strong {
  font-weight: 600;
  font-style: italic;
  color: #4a8fc8;
}

/* Tarjeta principal del evento */
.vt-event-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(26, 45, 74, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.vt-event-card-img {
  padding: 1.5rem;
}

.vt-event-card-img img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(26, 45, 74, 0.12);
}

.vt-event-card-body {
  padding: 1.5rem;
}

@media (min-width: 992px) {
  .vt-event-card-body {
    padding: 2rem 2rem 2rem 0.5rem;
  }
}

.vt-event-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #2c5e9e;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.vt-event-card-date,
.vt-event-card-hours,
.vt-event-card-venue {
  color: #3a6ba8;
  font-size: 0.95rem;
}

.vt-event-card-date i,
.vt-event-card-hours i,
.vt-event-card-venue i {
  color: #5a9fd4;
  width: 1.25rem;
}

.vt-event-card-venue strong {
  color: #5a9fd4;
}

.vt-event-card-desc {
  color: #4a7ab0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Lista de funciones */
.vt-event-functions {
  border-top: 1px solid rgba(90, 159, 212, 0.2);
  padding-top: 1rem;
}

.vt-event-functions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vt-function-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(158, 203, 244, 0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

.vt-function-info {
  flex: 1;
}

.vt-function-date {
  font-weight: 600;
  color: #3a6ba8;
  font-size: 0.95rem;
}

.vt-function-action .btn {
  font-weight: 600;
  background: #0d6efd;
  border-color: #7eb8e8;
}

.vt-function-action .btn:hover {
  background: #6aa9dc;
  border-color: #6aa9dc;
}

@media (max-width: 767.98px) {
  .vt-event-card-img {
    padding: 1rem;
  }
  
  .vt-event-card-body {
    padding: 1rem;
  }
  
  .vt-function-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .vt-function-action {
    width: 100%;
  }
  
  .vt-function-action .btn {
    width: 100%;
  }
  
  .vt-function-action form {
    width: 100%;
  }
}

/* Alertas */
.alert {
  border-radius: 1rem;
}

/* Encabezados de sección (login, registro, etc.) - legacy */
.section-header h1,
.section-header h2 {
  color: var(--vt-navy);
  text-shadow: none;
}

/* Detalle de evento */
.wrap-details-event .wrap-description-event h1 {
  color: var(--vt-navy);
}

.wrap-details-event .wrap-description-event p,
.wrap-details-event .wrap-content-event {
  color: var(--vt-navy-muted);
}

/* Listados de funciones (evento/index.php) */
.event-list,
.content-title {
  color: var(--vt-navy);
}

h3.content-title {
  background: rgba(255, 255, 255, 0.85);
  color: var(--vt-navy);
  border-color: rgba(26, 45, 74, 0.12);
}

/* Compatibilidad nombre antiguo de Bootstrap 4 */
.card-block {
  flex: 1 1 auto;
  padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
}

@media (max-width: 767.98px) {
  /* Hero en móvil */
  .vt-hero-cta {
    font-size: 0.75rem;
    padding: 0.65rem 1.25rem;
    letter-spacing: 0.02em;
  }

  .vt-hero-title {
    font-size: 1.5rem;
  }

  /* Eventos en móvil: disposición vertical */
  .vt-featured-list .home-event-row {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    text-align: center;
    padding: 1rem !important;
    gap: 0.75rem !important;
  }

  .home-event-thumb-link {
    flex-shrink: 0;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-event-thumb {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .vt-featured-list .vt-event-text {
    width: 100%;
    text-align: center;
  }

  .vt-featured-list .vt-event-cta {
    width: 100%;
    max-width: 280px;
  }

  .vt-event-meta-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }

  .vt-section-title-text {
    font-size: 1rem;
  }

  .vt-search-form {
    max-width: 100%;
  }

  /* Footer móvil */
  .vt-footer .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    text-align: center !important;
  }

  .vt-footer .phone,
  .vt-footer .email {
    display: block !important;
    margin-bottom: 0.35rem;
    margin-right: 0 !important;
  }

  .vt-footer .social-media {
    justify-content: center !important;
  }

  .vt-footer .navbar-brand {
    justify-content: center;
  }
}

/* ==========================================================================
   PÁGINA DE SELECCIÓN DE ASIENTOS (BUY)
   ========================================================================== */

/* Página buy: menos scroll vertical — espacio compacto bajo la navbar */
body.vt-buy-layout {
  padding-top: 8.5rem;
}

/* Columna vertical: primero header a todo el ancho, luego container con mapa+sidebar */
.vt-buy-page {
  padding: 0.15rem 0 0.35rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Encabezado a ancho completo de la ventana; texto y botones centrados en la página */
.vt-buy-header {
  width: 100%;
  max-width: none;
  text-align: center;
  padding: 0.2rem 0.75rem 0.45rem;
  margin: 0 0 0.35rem;
  box-sizing: border-box;
}

.vt-buy-card {
  background: rgba(255, 255, 255, 0.30);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid rgba(158, 203, 244, 0.25);
  box-shadow: 0 8px 32px rgba(26, 45, 74, 0.1);
  max-width: 950px;
  margin: 0 auto;
  overflow: hidden;
}

body.vt-buy-layout .vt-buy-page > .container {
  padding-left: max(0.65rem, var(--bs-gutter-x, 0.75rem));
  padding-right: max(0.65rem, var(--bs-gutter-x, 0.75rem));
}

.vt-buy-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--vt-accent);
  margin: 0 0 0.15rem;
  line-height: 1.2;
}

.vt-buy-header p {
  font-size: 0.8rem;
  color: rgba(26, 45, 74, 0.6);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.vt-zone-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.vt-zone-btns .btn {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  position: relative;
}

.vt-zone-btns .btn.localidad-activa::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -5px;
  height: 3px;
  border-radius: 2px;
  background: rgba(26, 45, 74, 0.75);
}

.vt-zone-btns .btn.localidad-activa {
  filter: brightness(1.05);
  box-shadow: 0 3px 10px rgba(26, 45, 74, 0.18);
}

/* Body: gutters y padding mínimos para caber en viewport sin scroll de página */
.vt-buy-body.row {
  --bs-gutter-x: 0.65rem;
  --bs-gutter-y: 0.45rem;
  padding: 0.25rem 0.35rem;
  margin-top: 0 !important;
  min-height: 0;
}

@media (min-width: 992px) {
  .vt-buy-body.row {
    flex-wrap: nowrap !important;
  }

  .vt-buy-body.row > .vt-buy-map,
  .vt-buy-body.row > .vt-buy-sidebar {
    flex-shrink: 0;
  }
}

.vt-buy-map {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vt-map-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.35rem;
}

.vt-zoom-btns {
  display: flex;
  gap: 0.25rem;
}

.vt-zoom-btns .btn {
  padding: 0.25rem 0.5rem;
}

.vt-seats-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--vt-navy);
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255,255,255,0.5);
  border-radius: 0.4rem;
}

.vt-seats-legend .cube {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: middle;
}

/* Panel del mapa: altura limitada por viewport para reducir scroll de página */
.vt-map-scroll {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(158, 203, 244, 0.2);
  border-radius: 0.75rem;
  overflow: auto;
  min-height: 180px;
  height: min(520px, calc(100vh - 220px));
  max-height: min(520px, calc(100vh - 220px));
}

@media (max-width: 991.98px) {
  .vt-map-scroll {
    height: min(480px, calc(100vh - 200px));
    max-height: min(480px, calc(100vh - 200px));
  }
}

#contenedor_externo {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  cursor: grab;
}

#contenedor_externo:active {
  cursor: grabbing;
}

#contenedor_interno_localidades,
#contenedor_interno_asientos {
  transform-origin: center center;
  flex-shrink: 0;
}

/* Sidebar (derecha) — ancho fijado por col-lg-4 */
.vt-buy-sidebar {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(158, 203, 244, 0.15);
  border-radius: 0.75rem;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
}

.vt-buy-sidebar h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.55rem;
  line-height: 1.25;
  padding: 0.35rem 0.65rem;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--vt-accent);
  box-shadow: 0 6px 18px rgba(26, 45, 74, 0.12);
}

.vt-ev-date,
.vt-ev-venue {
  font-size: 0.75rem;
  color: rgba(26, 45, 74, 0.7);
  margin: 0 0 0.3rem;
}

.vt-ev-date i,
.vt-ev-venue i {
  color: var(--vt-accent);
  width: 16px;
  margin-right: 0.25rem;
}

.vt-ev-img {
  width: 100%;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}

.vt-ev-desc {
  font-size: 0.7rem;
  color: rgba(26, 45, 74, 0.6);
  line-height: 1.35;
  margin-bottom: 0.2rem;
  flex: 0 0 auto;
}

.vt-ev-desc.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vt-desc-toggle {
  border: 0;
  background: transparent;
  color: var(--vt-accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0;
  margin: 0 0 0.35rem;
}

/* Acciones bajo el mapa (solo columna izquierda) */
.vt-map-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  margin-top: 0.4rem;
}

.vt-map-actions .btn {
  font-weight: 600;
  padding: 0.4rem 1rem;
  flex: 1 1 0;
}

.vt-map-actions .btn-primary {
  /*background: linear-gradient(135deg, var(--vt-accent) 0%, #7ab8e8 100%);*/
  border: none;
}

.vt-map-actions .btn:disabled {
  opacity: 0.5;
}

/* Override de style.css en BUY: evitar barra fija oscura que tapa botones */
body.vt-buy-layout .wrap-btn-next {
  position: static;
  bottom: auto;
  left: auto;
  width: auto;
  margin: 0 0 0.25rem !important;
  z-index: auto;
  border-radius: 0;
  background: transparent;
  text-align: center !important;
}

body.vt-buy-layout #box_ticket {
  padding: 0.25rem 0;
}

body.vt-buy-layout .vt-seat-summary {
  margin-top: 0.25rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(26, 45, 74, 0.12);
}

#seat-summary-mobile-slot {
  display: none;
}

body.vt-buy-layout .vt-seat-summary-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vt-navy);
  margin-bottom: 0.2rem;
}

body.vt-buy-layout #box_warning {
  margin-bottom: 0.3rem;
}

body.vt-buy-layout .wrap_cart_items {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0.3rem;
}

body.vt-buy-layout .vt-seat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.1rem;
  border-bottom: 1px solid rgba(26, 45, 74, 0.14);
}

body.vt-buy-layout .vt-seat-row:last-of-type {
  border-bottom: 0;
}

body.vt-buy-layout .vt-seat-row-label {
  color: #1f2630;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.4px;
}

body.vt-buy-layout .vt-seat-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 8px;
  background: #ff5257;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-transform: lowercase;
}

body.vt-buy-layout .vt-seat-remove:hover {
  background: #f44348;
}

/* ==========================================================================
   CHECKOUT (evento/buy/checkout.php)
   ========================================================================== */
body.vt-checkout-layout .card {
  background: rgba(255, 255, 255, 0.75) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(158, 203, 244, 0.25) !important;
  box-shadow: 0 8px 32px rgba(26, 45, 74, 0.08);
}

body.vt-checkout-layout .card-header {
  background: linear-gradient(135deg, rgba(158, 203, 244, 0.95) 0%, rgba(126, 182, 232, 0.95) 100%) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(158, 203, 244, 0.35) !important;
}

body.vt-checkout-layout .card-body {
  background: transparent !important;
}

body.vt-checkout-layout .table {
  color: rgba(26, 45, 74, 0.88) !important;
  margin-bottom: 0;
}

body.vt-checkout-layout .table thead th {
  background: transparent !important;
  color: rgba(26, 45, 74, 0.82) !important;
  border-color: rgba(158, 203, 244, 0.25) !important;
  font-weight: 700;
}

body.vt-checkout-layout .table tbody td,
body.vt-checkout-layout .table tbody th,
body.vt-checkout-layout .table tfoot td {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(158, 203, 244, 0.18) !important;
  color: rgba(26, 45, 74, 0.9) !important;
}

body.vt-checkout-layout .table strong {
  color: rgba(26, 45, 74, 0.92) !important;
}

body.vt-checkout-layout .col-md-7.card > .table-responsive {
  padding-top: 0.45rem;
}

body.vt-checkout-layout #payment_buttn {
  display: block;
  width: min(100%, 320px);
  margin: 0.35rem auto 0;
}

/* ==========================================================================
   OVERRIDES LEGACY FRONT (elimina fondos oscuros de style.css)
   ========================================================================== */
body:not(.vt-buy-layout):not(.vt-checkout-layout) .card:not(.vt-featured-card),
body:not(.vt-buy-layout):not(.vt-checkout-layout) .card-header,
body:not(.vt-buy-layout):not(.vt-checkout-layout) .card-block,
body:not(.vt-buy-layout):not(.vt-checkout-layout) .wrap-leyenda-asientos .list-group-item {
  background: rgba(255, 255, 255, 0.72) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: rgba(158, 203, 244, 0.28) !important;
  color: rgba(26, 45, 74, 0.9) !important;
}

body:not(.vt-buy-layout):not(.vt-checkout-layout) .jumbotron {
  background: rgba(255, 255, 255, 0.74) !important;
  border: 1px solid rgba(158, 203, 244, 0.28);
  border-radius: 1rem;
  color: rgba(26, 45, 74, 0.9);
}

/* Timeexpire: ajuste solo del bloque principal */
body.vt-timeexpire-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.vt-timeexpire-layout > .container {
  flex: 1 0 auto;
}

body.vt-timeexpire-layout .vt-footer {
  margin-top: auto;
}

body.vt-timeexpire-layout .jumbotron {
  padding: 1.6rem 1.4rem;
}

/* Thank you: más espacio superior en el bloque principal */
body.vt-thankyou-layout .col-md-6.mx-auto.jumbotron {
  padding-top: 2.75rem;
}

@media (min-width: 768px) {
  body.vt-thankyou-layout .col-md-6.mx-auto.jumbotron {
    padding-top: 3.25rem;
  }
}

/* Conekta redirect: separacion del header */
body.vt-conekta-layout #conektaContainer {
  margin-top: 1.25rem !important;
}

@media (max-width: 576px) {
  body.vt-conekta-layout #conektaContainer {
    width: min(100% - 1rem, 500px) !important;
  }
}

/* Mis compras: tabla clara estilo glass */
body.vt-miscompras-layout .miscomprastable {
  color: rgba(26, 45, 74, 0.9) !important;
  margin-bottom: 0;
}

body.vt-miscompras-layout .miscomprastable thead th {
  background: rgba(158, 203, 244, 0.22) !important;
  color: rgba(26, 45, 74, 0.86) !important;
  border-color: rgba(158, 203, 244, 0.25) !important;
  font-weight: 700;
}

body.vt-miscompras-layout .miscomprastable tbody td,
body.vt-miscompras-layout .miscomprastable tbody th {
  background: rgba(255, 255, 255, 0.68) !important;
  border-color: rgba(158, 203, 244, 0.2) !important;
  color: rgba(26, 45, 74, 0.92) !important;
}

body.vt-miscompras-layout .miscomprastable.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: rgba(255, 255, 255, 0.58) !important;
}

body.vt-miscompras-layout .miscomprastable.table-hover > tbody > tr:hover > * {
  background: rgba(158, 203, 244, 0.18) !important;
}

/* Perfil: formulario más limpio y botón proporcionado */
body.vt-profile-layout .vt-profile-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(158, 203, 244, 0.26);
  border-radius: 1rem;
  padding: 0.95rem 1rem 1.1rem;
}

body.vt-profile-layout .vt-profile-card .form-group {
  margin-bottom: 0.55rem;
}

body.vt-profile-layout .vt-profile-card label {
  color: var(--vt-navy);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

body.vt-profile-layout .vt-profile-card .form-control {
  border-color: rgba(158, 203, 244, 0.35);
}

body.vt-profile-layout .vt-profile-save-btn {
  display: block;
  width: min(100%, 360px);
  margin: 0.7rem auto 0;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
}

body.vt-buy-layout .vt-footer {
  display: none;
}

/* Contenedor general (cantidad) */
#contenedor_general {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  padding: 1rem;
}

#contenedor_general .btn-info {
  background: var(--vt-accent);
  border-color: var(--vt-accent);
}

/* Selector cantidad (evento general): − [input] + en una sola fila */
#contenedor_general .vt-qty-row {
  max-width: 100%;
}

#contenedor_general .vt-qty-btn {
  flex: 0 0 auto;
  min-width: 2.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

#contenedor_general .vt-qty-input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.wrap_cart_items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.wrap_cart_items .btn-info {
  background: var(--vt-accent);
  border-color: var(--vt-accent);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
}

#btn_submit_cart {
  background: var(--vt-accent);
  border: none;
  border-radius: 1rem;
  padding: 0.4rem 1rem;
  font-weight: 600;
}

/* Reafirma layout de lista de asientos en BUY (sobre reglas globales) */
body.vt-buy-layout .wrap_cart_items {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

/* Responsive: col-12 apila; opcional: sidebar arriba en móvil */
@media (max-width: 991.98px) {
  .vt-buy-sidebar {
    order: -1;
  }

  #seat-summary-mobile-slot {
    display: block;
  }

  #seat-summary-mobile-slot .vt-seat-summary {
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(26, 45, 74, 0.12);
  }
}

@media (max-width: 768px) {
  
  .vt-buy-header h1 {
    font-size: 1.1rem;
  }
  
  .vt-zone-btns .btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }
}
