:root {
  --color-naranja: #fd9800;
  --color-azul: #0098ff;
  --color-amarillo: #ffcb33;
  --color-verde-claro: #98ca34;
  --color-verde-oscuro: #346633;
  --color-blanco: #ffffff;
  --color-gov: #004884;
  --color-texto: #333333;
}

html {
  font-size: 16px;
  transition: font-size 0.3s ease;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-texto);
  padding-bottom: 70px;
  position: relative;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Fondo animado sutil amazónico */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/fondo_tablero.png");
  background-size: 500px;
  opacity: 0.04;
  z-index: -1;
  animation: moverFondo 90s linear infinite;
}
@keyframes moverFondo {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1500px 1500px;
  }
}
@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Splash Screen */
#splash-screen {
  position: fixed;
  inset: 0;
  background: var(--color-verde-oscuro);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s ease-out;
}
.festiva-logo-splash {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  animation: popIn 1s ease-out;
  text-align: center;
  line-height: 1.1;
}
.festiva-logo-splash span {
  display: block;
  color: var(--color-amarillo);
  font-size: 1.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 10px;
}
@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  80% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.topbar-gov {
  background-color: var(--color-gov);
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-gov img {
  height: 25px;
}
.accessibility-tools button {
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  margin-left: 10px;
}
.accessibility-tools button:hover {
  color: var(--color-amarillo);
  transform: scale(1.2);
}

.main-header {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: 0.3s;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-principal {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}
.logo-principal img {
  max-height: 50px;
  transition: transform 0.3s;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.18));
}
.logo-principal:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.22));
}

.festiva-brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-verde-oscuro);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
}
.festiva-brand span {
  color: var(--color-naranja);
  display: block;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.logos-secundarios {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logos-secundarios img {
  height: auto;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s;
  object-fit: contain;
}
.logos-secundarios img:hover {
  opacity: 1;
}
.logos-secundarios .logo-gobernacion {
  height: 25px;
}
.logos-secundarios .logo-caqueta-gov {
  height: 22px;
}
.logos-secundarios .logo-icdr {
  height: 45px;
}

@media (min-width: 992px) {
  .logo-principal img {
    max-height: 60px;
  }
  .festiva-brand {
    font-size: 1.8rem;
  }
  .logos-secundarios .logo-gobernacion {
    height: 35px;
  }
  .logos-secundarios .logo-caqueta-gov {
    height: 30px;
  }
  .logos-secundarios .logo-icdr {
    height: 60px;
  }
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--color-verde-oscuro);
  font-size: 1.8rem;
  margin-left: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.desktop-nav {
  display: none;
}
@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
  }
  .desktop-nav a {
    position: relative;
    color: var(--color-verde-oscuro);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding-bottom: 5px;
  }
  .desktop-nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--color-naranja);
    transition: width 0.3s ease;
  }
  .desktop-nav a:hover::after,
  .desktop-nav a.active::after {
    width: 100%;
  }
  .desktop-nav a:hover {
    color: var(--color-naranja);
  }
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-around;
  padding: 12px 5px;
  z-index: 9999;
  border-top: 3px solid var(--color-verde-oscuro);
  border-radius: 20px 20px 0 0;
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #777;
  font-size: 0.75rem;
  font-weight: bold;
  transition: 0.3s;
}
.mobile-bottom-nav a i {
  font-size: 1.3rem;
  margin-bottom: 4px;
  transition: 0.3s;
}
.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active {
  color: var(--color-verde-oscuro);
}
.mobile-bottom-nav a:hover i,
.mobile-bottom-nav a.active i {
  color: var(--color-naranja);
  transform: translateY(-3px) scale(1.1);
}
@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.offcanvas-menu {
  background-color: var(--color-verde-oscuro);
  color: white;
}
.offcanvas-menu .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
.offcanvas-menu .nav-link {
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.1rem;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}
.offcanvas-menu .nav-link:hover {
  color: var(--color-amarillo);
  padding-left: 10px;
}

/* Banners 1920x450 */
.hero-swiper {
  width: 100%;
  background-color: #fff;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}
.hero-swiper img {
  width: 100%;
  height: auto;
  display: block;
}

.custom-swiper-nav {
  color: var(--color-naranja) !important;
  background: rgba(255, 255, 255, 0.9);
  width: 45px !important;
  height: 45px !important;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.custom-swiper-nav::after {
  font-size: 1.3rem !important;
  font-weight: bold;
}
.custom-swiper-nav:hover {
  background: var(--color-verde-oscuro);
  color: white !important;
  transform: scale(1.1);
}

/* Live Alert */
.live-alert {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: rgba(45, 87, 44, 0.95);
  backdrop-filter: blur(5px);
  border: 2px solid var(--color-naranja);
  padding: 15px;
  border-radius: 15px;
  width: 280px;
  z-index: 1050;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
@media (min-width: 992px) {
  .live-alert {
    bottom: 30px;
  }
}
.pulse-anim {
  animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.8);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.section-title {
  color: var(--color-verde-oscuro);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 4px;
  background-color: var(--color-naranja);
  border-radius: 2px;
}
.title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.btn-custom {
  background: linear-gradient(45deg, var(--color-naranja), #ff9f1a);
  color: white;
  font-weight: bold;
  border-radius: 30px;
  padding: 12px 30px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(230, 138, 0, 0.4);
  border: none;
}
.btn-custom:hover {
  background: linear-gradient(45deg, var(--color-verde-oscuro), #3c7a3b);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(45, 87, 44, 0.4);
}
.btn-outline-custom {
  border: 2px solid var(--color-verde-oscuro);
  color: var(--color-verde-oscuro);
  font-weight: bold;
  border-radius: 30px;
  padding: 10px 25px;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-custom:hover {
  background: var(--color-verde-oscuro);
  color: white;
}

.news-section {
  background-color: #1a2f4c;
  padding: 60px 0;
  border-radius: 30px;
  margin-top: 30px;
}
.news-section .section-title {
  color: white;
}
.news-section .section-title::after {
  background-color: var(--color-amarillo);
}

.creative-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-texto);
  position: relative;
  border: 1px solid #eee;
}
.creative-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--color-naranja);
}
.creative-card .img-wrapper {
  overflow: hidden;
  height: 220px;
  position: relative;
}
.creative-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.creative-card:hover img {
  transform: scale(1.1);
}
.creative-card .content {
  padding: 25px;
  flex-grow: 1;
  background: white;
  z-index: 2;
  position: relative;
}
.creative-card .date {
  color: var(--color-azul);
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.creative-card h5 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-verde-oscuro);
  margin-top: 10px;
  line-height: 1.4;
}

.badge-hoy {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #dc3545;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.5);
  animation: pulse-red 2s infinite;
  font-size: 0.9rem;
}

.fest-mini-card {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--color-texto);
  border: 1px solid #eee;
  transition: 0.3s;
  overflow: hidden;
}
.fest-mini-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-naranja);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.fest-mini-img {
  width: 110px;
  flex-shrink: 0;
}
.fest-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fest-mini-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fest-mini-info h6 {
  color: var(--color-verde-oscuro);
  font-weight: 800;
  margin-bottom: 5px;
  font-size: 1.05rem;
  line-height: 1.2;
}
.fest-mini-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}
.fest-mini-date {
  background: var(--color-verde-oscuro);
  color: white;
  padding: 15px;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-left: 3px solid var(--color-naranja);
}
.fest-mini-date .day {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}
.fest-mini-date .month {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--color-amarillo);
}

.event-hero {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
}
.event-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0) 80%
  );
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.event-hero-title {
  font-size: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Título fuera de la imagen en móvil */
.event-hero-title-mobile {
  background: var(--color-blanco);
  border-left: 6px solid var(--color-naranja);
  border-radius: 0 15px 15px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  padding: 18px 20px;
  margin-top: -15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.event-hero-title-mobile-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-naranja);
  margin-bottom: 6px;
}
.event-hero-title-mobile h1 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-verde-oscuro);
}

@media (max-width: 767.98px) {
  .event-hero {
    height: 220px;
  }
}

.event-sidebar {
  background: #fff;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-top: 5px solid var(--color-naranja);
}
.event-sidebar-item {
  display: flex;
  margin-bottom: 25px;
  align-items: center;
}
.event-sidebar-icon {
  width: 50px;
  height: 50px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-naranja);
  font-size: 1.3rem;
  margin-right: 15px;
  flex-shrink: 0;
  border: 1px solid #eee;
}
.event-sidebar-text h6 {
  margin: 0;
  font-size: 0.85rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}
.event-sidebar-text p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-verde-oscuro);
  font-weight: 800;
  line-height: 1.2;
}

.itinerary-list {
  list-style: none;
  padding: 0;
  border-left: 2px dashed var(--color-naranja);
  margin-left: 15px;
  margin-top: 20px;
}
.itinerary-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 25px;
}
.itinerary-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--color-amarillo);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.itinerary-item h6 {
  color: var(--color-verde-oscuro);
  font-weight: 900;
  margin-bottom: 5px;
  font-size: 1.1rem;
}
.itinerary-item p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

.doc-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 1px solid #eaeaea;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--color-azul);
}
.doc-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background-color: var(--color-verde-oscuro);
  transition: 0.3s;
}
.doc-card:hover::before {
  background-color: var(--color-naranja);
  width: 8px;
}
.doc-icon-wrapper {
  width: 65px;
  height: 65px;
  background: #fff5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #dc3545;
  flex-shrink: 0;
  border: 1px solid #ffe3e3;
}
.doc-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: #f8f9fa;
  color: var(--color-azul);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}
.doc-download-btn:hover {
  background: var(--color-azul);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 138, 230, 0.3);
}

.gallery-swiper .swiper-slide {
  width: 280px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.gallery-swiper .swiper-slide:hover img {
  transform: scale(1.08);
  filter: brightness(0.8);
}
.gallery-swiper .overlay {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 30px 20px 20px;
  text-align: center;
  transition: 0.4s;
}
.gallery-swiper .swiper-slide:hover .overlay {
  bottom: 0;
}

.video-thumbnail {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.video-thumbnail img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: 0.5s;
}
.video-thumbnail::after {
  content: "\f144";
  font-family: "FontAwesome";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: #ff0000;
  transition: all 0.4s;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.video-thumbnail:hover img {
  transform: scale(1.05);
}
.video-thumbnail:hover::after {
  transform: translate(-50%, -50%) scale(1.2);
  color: var(--color-naranja);
}

.custom-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.custom-pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-azul);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 138, 230, 0.4);
}
.custom-pagination a:hover,
.custom-pagination a.active {
  background-color: var(--color-verde-oscuro);
  transform: translateY(-3px);
}

.aliados-section {
  background: white;
  padding: 40px 0;
  border-top: 2px solid #eee;
  text-align: center;
  overflow: hidden;
}
.logo-ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  white-space: nowrap;
}
.logo-ticker-wrap::before,
.logo-ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logo-ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}
.logo-ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}
.logo-ticker-track {
  display: inline-block;
  animation: scrollTicker 35s linear infinite;
}
.logo-ticker-track:hover {
  animation-play-state: paused;
}
.logo-item {
  display: inline-block;
  margin: 0 30px;
  vertical-align: middle;
}
.logo-item img {
  height: 60px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.4s ease;
}
.logo-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}
@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

footer {
  background-color: #1a2f4c;
  color: #d1d8e0;
  margin-top: 0;
  font-size: 0.9rem;
}
.footer-main {
  padding: 60px 0 40px;
}
.footer-main h5 {
  color: white;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-naranja);
  display: inline-block;
  padding-bottom: 5px;
}
.footer-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-info-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}
.footer-info-list i {
  color: var(--color-amarillo);
  font-size: 1.2rem;
  margin-right: 15px;
  margin-top: 3px;
  width: 20px;
  text-align: center;
}
.footer-info-list a {
  color: #d1d8e0;
  text-decoration: none;
  transition: 0.3s;
}
.footer-info-list a:hover {
  color: var(--color-amarillo);
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.2rem;
  margin: 0 8px 10px 0;
  color: white;
  transition: all 0.3s;
  text-decoration: none;
}
.social-links a:hover {
  background: var(--color-naranja);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(230, 138, 0, 0.5);
}
.footer-gov-bar {
  background-color: var(--color-gov);
  padding: 15px 0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-gov-bar img {
  height: 35px;
}

/* ===== MODAL LOGIN MINIMALISTA ===== */
.login-modal-dialog {
  max-width: 380px;
}
.login-modal-card {
  border: none;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
  position: relative;
}
.login-modal-bar {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-verde-oscuro),
    var(--color-verde-claro),
    var(--color-naranja),
    var(--color-amarillo)
  );
}
.login-modal-brand {
  padding: 32px 35px 18px;
  text-align: center;
}
.login-brand-icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--color-verde-oscuro), #2a5229);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--color-amarillo);
  font-size: 1.7rem;
  box-shadow: 0 10px 25px rgba(52, 102, 51, 0.3);
}
.login-brand-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-verde-oscuro);
  letter-spacing: 3px;
  margin: 0;
  line-height: 1.1;
}
.login-brand-name span {
  color: var(--color-naranja);
  font-size: 0.85rem;
  letter-spacing: 4px;
  display: block;
  font-weight: 700;
}
.login-brand-label {
  display: block;
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}
.login-modal-form {
  padding: 8px 35px 35px;
}
.login-field {
  position: relative;
  margin-bottom: 24px;
}
.login-field i {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.3s;
}
.login-field input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ebebeb;
  padding: 10px 10px 10px 30px;
  font-size: 0.95rem;
  outline: none;
  background: transparent;
  color: var(--color-texto);
  transition: border-color 0.3s;
}
.login-field input::placeholder {
  color: #c5c5c5;
  font-size: 0.9rem;
}
.login-field input:focus {
  border-bottom-color: var(--color-verde-oscuro);
}
.login-field:focus-within i {
  color: var(--color-verde-oscuro);
}
.login-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--color-naranja), #d97000);
  color: var(--color-blanco);
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(253, 152, 0, 0.35);
}
.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(253, 152, 0, 0.5);
}
.login-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.2s;
  z-index: 10;
}
.login-close-btn:hover {
  color: #555;
}

/* ===== BOTONES FLOTANTES ===== */
.floating-btn-container {
  position: fixed;
  z-index: 1040;
  right: 30px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media (max-width: 768px) {
  .floating-btn-container {
    right: 15px;
    bottom: 110px;
    transform: scale(0.85);
    transform-origin: bottom right;
  }
}
.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  position: relative;
}
.float-btn:hover {
  transform: scale(1.1) translateY(-5px);
  color: white;
}
.float-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 75px;
  background: rgba(0, 0, 0, 0.82);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  transform: translateX(10px);
}
.float-btn:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.btn-login-float {
  background: linear-gradient(135deg, var(--color-naranja), #e74c3c);
  border: 2px solid var(--color-blanco);
}
.btn-encuesta-float {
  background: linear-gradient(
    135deg,
    var(--color-verde-oscuro),
    var(--color-verde-claro)
  );
  border: 2px solid var(--color-blanco);
}

/* Image with blurred background effect for non-standard aspect ratios */
.blurred-bg-wrapper {
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.blurred-bg-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.65);
  transform: scale(1.15); /* prevents white corners */
  z-index: 1;
}
.blurred-bg-wrapper img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

/* Event Hero banner adjustments with blurred background */
.event-hero.blurred-bg-wrapper img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  opacity: 0.95;
}
.event-hero-overlay {
  z-index: 3 !important;
}

/* Facebook Video Card & Play Button Styles */
.video-play-btn.fb-btn {
  background-color: #1877f2 !important;
}
.video-play-btn.fb-btn:hover {
  background-color: #166fe5 !important;
}

/* Vertical video container styling to prevent vertical stretching and screen overflow */
.yt-video-container.is-vertical {
  padding-bottom: 0 !important;
  height: 65vh !important;
  max-height: 520px !important;
  aspect-ratio: 9 / 16 !important;
  margin: 0 auto !important;
  background: #000 !important;
  width: 100% !important;
  max-width: 292px !important; /* 520 * 9 / 16 = 292.5px */
}

.yt-modal-dialog.modal-vertical {
  max-width: 360px !important;
}

/* On smaller devices, adapt vertical player height */
@media (max-height: 600px) {
  .yt-video-container.is-vertical {
    height: 55vh !important;
    max-height: 400px !important;
    max-width: 225px !important;
  }
}

