/* Custom Styles */
:root {
  --primary-color: #4A6B4C; /* Verde bosque profundo */
  --secondary-color: #D97706; /* Naranja terroso / ocre */
  --dark-color: #212529;
  --light-color: #f8f9fa;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}
section.py-5 {
  padding: 5rem 0 !important;
}
.content-after-navbar {
    padding-top: 180px; /* Ajusta este valor si tu navbar tiene otra altura */
}

/* Hero Banner */
.hero-banner {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden; /* To contain the scaled background */
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("assets/bg-quintafunga-1.jpg") no-repeat center center;
  background-size: cover;
  background-position: center;
  animation: heroBackgroundZoom 40s infinite alternate ease-in-out;
}

@keyframes heroBackgroundZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.5);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

/* Countdown Timer */

.countdown-item {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.5rem;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Featured Expositor Card */
.expositor-card-destacado {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  min-height: 450px; /* Ensure consistent height */
}

.expositor-card-destacado .img-fluid {
  object-fit: cover;
}

/* Expositor Cards */
.expositor-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.expositor-card:hover {
  transform: translateY(-10px);
}

.expositor-card.featured {
  border: 3px solid var(--secondary-color);
}

.expositor-image {
  position: relative;
  overflow: hidden;
}

.expositor-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.expositor-card:hover .expositor-image img {
  transform: scale(1.1);
}

.expositor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: white;
}

.expositor-info h4 {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color);
}

/* Small Expositor Cards */
.expositor-card-small {
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background: white;
}

.expositor-card-small:hover {
  transform: translateY(-5px);
}

.expositor-card-small img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background-position: top;
}

.expositor-info-small {
  padding: 1rem;
}

.expositor-info-small h6 {
  margin-bottom: 0.25rem;
  font-weight: bold;
}

/* Schedule */
.nav-pills .nav-link {
  border-radius: 0;
  margin: 0;
  padding: 1rem 1.5rem;
  background: white;
  color: var(--dark-color);
  border: 2px solid #e9ecef;
  border-right-width: 0;
  transition: all 0.3s ease;
}

.nav-pills .nav-item:first-child .nav-link {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.nav-pills .nav-item:last-child .nav-link {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-right-width: 2px;
}

.nav-pills .nav-link.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.nav-pills .nav-link small {
  font-size: 0.9rem;
}

.schedule-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.schedule-item:hover {
  transform: translateX(10px);
}

.schedule-item .time {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  min-width: 100px;
  text-align: center;
  margin-right: 1rem;
}

.schedule-item .event h6 {
  margin-bottom: 0.25rem;
  color: var(--dark-color);
}

.schedule-item.charla .time {
  background: var(--secondary-color);
}

.schedule-item.excursion .time {
  background: #198754; /* Verde para excursiones */
}

/* Carousel Customization */
.carousel-indicators [data-bs-target] {
  background-color: var(--primary-color);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--secondary-color);
}

.carousel-control-prev, .carousel-control-next {
    width: 4rem;
    height: 4rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    /* Este filtro convierte el SVG blanco por defecto al color naranja del tema */
    filter: invert(52%) sepia(84%) saturate(1008%) hue-rotate(359deg) brightness(90%) contrast(88%);
}

/* Sponsors */
.sponsor-card {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-card:hover {
  transform: translateY(-5px);
}

.sponsor-card.main-sponsor {
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.sponsor-card img {
  max-width: 100%;
  height: auto;
}

/* Responsive Navbar adjustments */
@media (max-width: 991.98px) {
  .navbar .container {
    /* Center the logo by default on mobile */
    justify-content: center;
  }

  .navbar-toggler {
    /* Position toggler on the right without affecting the brand's centering */
    position: absolute;
    right: 1rem;
    transition: opacity 0.4s ease;
  }

  /* Hide the toggler ONLY when at the top AND the menu is collapsed */
  .navbar:not(.navbar-scrolled) .navbar-toggler[aria-expanded="false"] {
    opacity: 0;
    pointer-events: none;
  }

  /* When scrolled, align brand to the left */
  .navbar.navbar-scrolled .container {
    justify-content: flex-start;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-overlay {
    height: auto;
    min-height: 100vh;
    padding-top: 200px !important;
    padding-bottom: 100px !important;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .countdown-item {
    padding: 0.5rem;
    margin: 0.25rem;
  }

  .expositor-image img {
    height: 250px;
  }

  .expositor-card-destacado {
    flex-direction: column;
    min-height: auto;
  }
  .expositor-card-destacado .img-fluid {
    height: 360px !important;
    width: 100%;
  }

  .carousel-control-prev, .carousel-control-next {
    width: 3rem;
    height: 3rem;
  }
  .navbar-collapse.show {
    background-color: rgba(12, 9, 8, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 10px;
  }

  #schedule-tabs {
    flex-direction: column;
  }
  .nav-pills .nav-link {
    border-radius: 10px;
    border-right-width: 2px;
  }
  .nav-pills .nav-item:not(:last-child) {
    margin-bottom: 0.5rem;
  }

  .schedule-item {
    flex-direction: column;
    text-align: center;
  }

  .schedule-item .time {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.navbar-brand {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}

#home .navbar-logo {
  height: 126px;
}
 .navbar-logo {
  height: 98px;
}
@media screen and (max-width: 991px) {
  .navbar-logo {
    height: 98px;
    margin: 0 !important;
  }
  .navbar-scrolled .navbar-logo {
    height: 80px;
  }
}

.navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.navbar-scrolled {
  background-color: rgba(12, 9, 8, 0.95);
  backdrop-filter: blur(10px);
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar .dropdown-menu {
  background-color: rgba(12, 9, 8, 0.9) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.5rem 0;
}

.navbar .dropdown-item {
  color: var(--light-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
  background-color: var(--primary-color);
  color: white;
}
/* Buttons */
.btn {
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  background: var(--dark-color) !important;
}

footer .social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: #0c0908;
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}
footer ul.list-unstyled {
  line-height: 2em;
}

#galeria-videos .h6 {
  margin-top: 15px;
  margin-bottom: 20px;
}