:root {
  /* Paleta Premium */
  --primary: #0b4f9e;
  --primary-dark: #073a78;
  --accent: #ffb703; /* Naranja/Dorado vibrante */
  --bg-light: #f4f7f6;
  --surface: #ffffff;
  --text-main: #2b2d42;
  --text-muted: #8d99ae;
  
  /* Radios de borde tipo App (muy redondeados) */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 50px;
  
  /* Sombras modernas */
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px rgba(11, 79, 158, 0.15);
}

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Navbar Clásica pero Moderna */
.navbar-custom {
  background: var(--primary);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 5px 0;
}

.navbar-brand img {
  height: 45px;
}

.navbar-custom .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 15px;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
  color: #fff;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh; /* Casi pantalla completa */
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* Un poco más claro */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Animación Banner */
.hero-banner-link {
  display: inline-block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
}

.hero-banner-link:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.hero-banner-link img {
  width: 100%;
  height: auto;
  display: block;
}

/* Secciones */
.section-padding {
  padding: 80px 0;
}

.section-title {
  color: var(--primary);
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* Tarjetas Estilo App */
.app-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.03);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.app-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md); /* Redondeo interior si es imagen sola */
}

.app-card.card-content img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Footer Premium */
.footer-custom {
  background-color: var(--text-main); /* Gris muy oscuro */
  color: #fff;
  padding: 60px 0 30px;
  border-top: 5px solid var(--accent);
}

.footer-custom h5 {
  color: var(--accent);
}

.social-icons a {
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent);
  color: var(--text-main);
  transform: translateY(-3px);
}

/* Top Bar Institucional */
.top-bar-custom {
  background-color: #2ab7ca; /* Color cyan de la imagen */
  padding: 8px 0;
  animation: slideDown 0.5s ease-out forwards;
  transform-origin: top;
}

@keyframes slideDown {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

.top-bar-links {
  list-style: none;
}

.top-bar-links li {
  margin: 0 15px;
}

.top-bar-links a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.top-bar-links a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Carrusel Infinito de Logos */
.logo-slider {
  overflow: hidden;
  padding: 40px 0;
  background: var(--bg-light);
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.logo-slider::before,
.logo-slider::after {
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  content: "";
  z-index: 2;
  pointer-events: none;
}
.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-light) 0%, rgba(244, 247, 246, 0) 100%);
}
.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light) 0%, rgba(244, 247, 246, 0) 100%);
}

.logo-slider-track {
  display: inline-block;
  animation: scroll-left 35s linear infinite;
}

.logo-slider-track:hover {
  animation-play-state: paused;
}

.logo-slide {
  display: inline-block;
  height: 160px;
  margin: 0 40px;
  vertical-align: middle;
}

.logo-slide img {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background-color: white;
  padding: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-slide img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Estilos para las pestañas de Municipio */
.municipio-tab {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.municipio-tab.active {
  background-color: var(--bg-light) !important;
  border-left: 4px solid var(--accent) !important;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.municipio-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}
