:root {
  --accent-color: #6366f1;
  --accent-color-2: #8b5cf6;
  --dark-bg: #0f172a;
  --nav-text-light: #ffffff;
  --nav-text-dark: #1e293b;
  --nav-bg-dark: transparent;
  --nav-bg-light: #ffffff;
}

/* ================= NAVBART ================= */
.navbart {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  background: var(--nav-bg-dark);
  color: var(--nav-text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.3s ease;
}

.navbart a,
.navbart .logo-text h1,
.navbart .logo-text p {
  color: var(--nav-text-light);
  transition: color 0.3s ease;
}

.navbart.scrolled {
  background: var(--nav-bg-light);
  color: var(--nav-text-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbart.scrolled a,
.navbart.scrolled .logo-text h1,
.navbart.scrolled .logo-text p {
  color: var(--nav-text-dark) !important;
}

.navbart.scrolled a:hover {
  color: var(--accent-color) !important;
}



/* ================= CARRUSEL GALERÍA ================= */
.gallery-carousel {
  background: var(--dark-bg);
  color: #fff;
  padding: 0;
  position: relative;
  margin-top: 8rem; /* bajo navbar fijo */
  outline: none;
}

.gallery-main {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
}

.gallery-slide {
  flex: 1 0 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gallery-slide.active {
  opacity: 1;
  z-index: 2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
  z-index: 1;
}

.gallery-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
  max-width: 640px;
  backdrop-filter: saturate(1.2);
}

.gallery-caption h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gallery-caption p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #f1f5f9;
}

/* Botón primario alterno */
.btn-alt {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
  padding: 0.75rem 1.5rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.btn-alt:hover { transform: translateY(-2px); }

/* ================= FLECHAS ================= */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s ease, transform 0.15s ease;
}
.gallery-arrow.left  { left: 1rem; }
.gallery-arrow.right { right: 1rem; }
.gallery-arrow:hover { background: rgba(255,255,255,0.45); transform: translateY(-50%) scale(1.05); }

/* ================= INDICADORES (PUNTOS) ================= */
.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.gallery-dot {
  width: 26px;              /* “guion” largo tipo pill */
  height: 8px;
  border-radius: 999px;
  background: rgba(241,245,249,0.25);
  border: none;
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease, transform 0.2s ease;
  position: relative;
}

.gallery-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
  transition: transform 1.2s ease;
}

.gallery-dot:hover { transform: scale(1.06); }

.gallery-dot.active {
  background: rgba(241,245,249,0.35);
  width: 40px;              /* el activo se “alarga” */
}

.gallery-dot.active::after {
  transform: scaleX(1);     /* “llenado” animado */
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .gallery-main { height: 68vh; }
}

@media (max-width: 768px) {
  .gallery-main { height: 58vh; }
  .gallery-caption {
    margin: 1.25rem;
    padding: 1rem;
  }
  .gallery-caption h2 { font-size: 1.4rem; }
  .gallery-caption p  { font-size: 0.95rem; }
  .gallery-arrow {
    width: 2rem; height: 2rem; font-size: 1.2rem;
  }
}
