/* =========================
   ESTILOS GENERALES
   ========================= */
body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  background-color: #f5f6f7;
}

h1, h2, h5 {
  font-weight: 700;
}

/* Botón principal en dorado (para conservar contraste) */
.btn-warning {
  background-color: #f2c037;
  border: none;
  color: #222;
}

.btn-warning:hover {
  background-color: #d9aa2d;
  color: #111;
}

/* =========================
   HEADER / NAVBAR
   ========================= */

.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.7rem 1rem;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.navbar-light .nav-link {
  color: #007bbd !important;
  font-weight: 500;
  margin: 0 5px;
}

.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
  color: #f2c037 !important;
}

.navbar .btn-warning {
  font-weight: 600;
  border-radius: 6px;
  padding: 5px 15px;
}


/* =========================
   HERO SECTION
   ========================= */
.hero {
  background: 
    linear-gradient(to bottom, rgba(110,193,228,0.5), rgba(255,255,255,0.6)),
    url('../img/banner-ferias.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003366;
  text-shadow: 0 2px 6px rgba(255,255,255,0.7);
}

.hero h1 {
  background-color: rgba(255, 255, 255, 0.75);
  padding: 10px 20px;
  border-radius: 10px;
}

/* =========================
   FILTROS
   ========================= */
.filtros {
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  background-color: #ffffff;
}

.filtros input,
.filtros select {
  border-radius: 8px;
  border: 1px solid #cce7f3;
}

/* =========================
   EVENTOS
   ========================= */
.event-card img {
  height: 200px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

.event-card {
  background-color: #fff;
  border: 1px solid #e6f1f8;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 123, 189, 0.2);
}

.event-card h5 {
  color: #007bbd;
}

/* =========================
   CONTACTO
   ========================= */
#contacto {
  background-color: #007bbd;
  color: white;
  padding: 60px 0;
}

#contacto h2 {
  color: #f2c037;
}

#contacto .form-control {
  border-radius: 8px;
  border: 1px solid #cce7f3;
}

/* =========================
   FOOTER
   ========================= */
footer {
  font-size: 0.9rem;
  background-color: #003366;
  color: #ffffffcc;
  text-align: center;
  padding: 20px 0;
}

footer a {
  color: #f2c037;
}

footer a:hover {
  color: #ffffff;
}


.role-card {
  cursor: pointer;
  transition: all .2s ease;
}

.role-card.active {
  border: 2px solid #000;
  transform: scale(1.03);
}

.role-description {
  margin-top: 30px;
  min-height: 120px;
}

  /* estilo mínimo */
    #map { width:100%; height:75vh; }
    .marker-card { max-width: 280px; }
    .marker-card img { width:100%; height:120px; object-fit:cover; border-radius:4px; }
    .legend { background:#fff;padding:8px;border-radius:6px; box-shadow:0 2px 6px rgba(0,0,0,0.15); }


/* =========================================================
   HERO SLIDER - DEFERIAS
   ========================================================= */

.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-slide {
  height: 68vh;
  min-height: 520px;
}

.hero-slide {
  position: relative;
  width: 100%;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 35, 0.78) 0%, rgba(8, 18, 35, 0.50) 35%, rgba(8, 18, 35, 0.18) 70%, rgba(8, 18, 35, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.28) 100%);
  z-index: 1;
}

.hero-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 680px;
  color: #fff;
  padding: 40px 0 70px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 4.3rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.30);
}

.hero-text {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 28px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero-meta i {
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-hero-primary,
.btn-hero-secondary {
  min-width: 180px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-primary {
  background: #f4b400;
  color: #1b1b1b;
  border: 1px solid #f4b400;
  box-shadow: 0 10px 30px rgba(244, 180, 0, 0.25);
}

.btn-hero-primary:hover {
  background: #ffca2c;
  border-color: #ffca2c;
  color: #111;
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

.hero-control {
  width: 7%;
  z-index: 4;
  opacity: 1;
}

.hero-control-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 20, 35, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.hero-control-icon i {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-control:hover .hero-control-icon {
  background: rgba(10, 20, 35, 0.72);
  transform: scale(1.06);
}

.hero-indicators {
  z-index: 5;
  margin-bottom: 26px;
}

.hero-indicators [data-bs-target] {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: all 0.25s ease;
}

.hero-indicators .active {
  width: 34px;
  border-radius: 999px;
  background-color: #f4b400;
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 991.98px) {
  .hero-carousel,
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide {
    height: 60vh;
    min-height: 470px;
  }

  .hero-content {
    max-width: 90%;
    padding: 30px 0 80px;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-meta span {
    font-size: 0.9rem;
  }

  .hero-control {
    width: 10%;
  }

  .hero-control-icon {
    width: 46px;
    height: 46px;
  }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 767.98px) {
  .hero-carousel,
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide {
    height: auto;
    min-height: 540px;
  }

  .hero-slide-img {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 18, 35, 0.30) 0%, rgba(8, 18, 35, 0.54) 40%, rgba(8, 18, 35, 0.86) 100%);
  }

  .hero-content-wrap {
    position: relative;
    min-height: 540px;
    align-items: end;
  }

  .hero-content {
    max-width: 100%;
    padding: 28px 0 78px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 7px 12px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .hero-text {
    font-size: 0.97rem;
    margin-bottom: 18px;
  }

  .hero-meta {
    gap: 10px;
    margin-bottom: 22px;
  }

  .hero-meta span {
    font-size: 0.86rem;
    padding: 9px 12px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    min-width: auto;
    padding: 14px 18px;
  }

  .hero-control {
    width: 14%;
  }

  .hero-control-icon {
    width: 40px;
    height: 40px;
  }

  .hero-control-icon i {
    font-size: 1.1rem;
  }

  .hero-indicators {
    margin-bottom: 18px;
  }

  .hero-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    margin: 0 5px;
  }

  .hero-indicators .active {
    width: 28px;
  }
}

/* =========================
   EXTRA SMALL
   ========================= */
@media (max-width: 480px) {
  .hero-carousel,
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide,
  .hero-content-wrap {
    min-height: 510px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-text {
    font-size: 0.93rem;
  }

  .hero-meta span {
    width: 100%;
    justify-content: flex-start;
  }
}