.main-navigation {
  background-color: #e8e8e8; /* mismo tono que el top-header */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--gris-claro);
  position: fixed;
  top: 75px;
  width: 100%;
  z-index: 1050;
  padding: 0 20px;
}


.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end; /* alineado a la derecha */
  align-items: center;
  height: 60px;
}

.nav-menu {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item .nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--negro);
  text-decoration: none;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
  color: #364DFF; /* azul eléctrico */
}


.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--blanco);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  list-style: none;
  min-width: 200px;
  border-radius: 8px;
  z-index: 999;
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  color: var(--negro);
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-link:hover {
  background-color: var(--gris-claro);
  color: #364DFF; /* azul eléctrico */
}


/* Mostrar dropdown al pasar el mouse */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

/* Animación suave para dropdowns */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Íconos para cada enlace de submenú */
.dropdown-link::before {
  content: "➤";
  display: inline-block;
  margin-right: 8px;
  color: #001f7f; /* azul oscuro */
  transition: transform 0.3s ease, color 0.3s ease;
}

.dropdown-link:hover::before {
  color: #364DFF; /* azul eléctrico al hover */
  transform: translateX(3px);
}

/* Variables CSS */
:root {
  --azul-electrico: #364DFF;   /* azul chillón / eléctrico */
  --azul-oscuro: #001f7f;      /* azul oscuro */
  --blanco: #ffffff;
  --negro: #000000;
  --gris-claro: #f8f9fa;
  --gris-texto: #6c757d;
}

/* Reset y configuración general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 120px; /* Espacio para el header y navbar */
}

.top-header {
  background-color: #e8e8e8; /* blanco ligeramente más oscuro */
  padding: 15px 0;
  border-bottom: 2px solid var(--gris-claro);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}


.header-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 2px;
}


.social-header {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.social-header-icon {
  color: var(--negro);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--negro);
  text-decoration: none;
}

.social-header-icon:hover {
  color: var(--azul-electrico);
  border-color: var(--azul-electrico);
  transform: scale(1.1);
}


/* Navbar */
.navbar {
  background-color: var(--negro) !important;
  transition: box-shadow 0.3s ease;
  padding: 1rem 0;
  top: 60px; /* Posicionar debajo del header */
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  color: var(--azul-electrico) !important;
  font-size: 1.5rem;
  font-weight: 700;
}


.navbar-nav .nav-link {
  color: var(--blanco) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--azul-electrico) !important; /* azul chillón */
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Imagen de fondo visible como capa inferior */
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Capa oscura encima de la imagen */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Contenido encima de todo */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

/* Sección Hero */
.hero-section {
  background-image: url('img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-text {
  color: var(--blanco);
}

.hero-title {
  color: #39ff14; /* Verde chillón estilo neón */
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}


.hero-subtitle {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-btn {
  background-color: #39ff14; /* Verde chillón estilo neón */
  color: var(--negro); /* mejor contraste sobre verde */
  border: none;
  padding: 18px 45px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(57, 255, 20, 0.5); /* sombra en verde */
}



.hero-btn:hover {
  background-color: #364DFF; /* azul eléctrico */
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(54, 77, 255, 0.4); /* sombra azul */
}


.hero-btn:active {
  transform: scale(0.98);
}

/* Sección Trámites */
.tramites-section {
  background-color: var(--gris-claro);
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  color: var(--azul-electrico); /* azul eléctrico */
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.tramites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.tramite-card {
  background-color: var(--blanco);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateX(-50px);
  overflow: hidden;
}

.tramite-card.animate {
  opacity: 1;
  transform: translateX(0);
}

.tramite-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 30px 20px;
  text-align: center;
}

.tramite-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.tramite-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 15px 0;
}


.tramite-description {
  color: #444444;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Animación de entrada desde la izquierda */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tramite-card.slide-in {
  animation: slideInFromLeft 0.6s ease forwards;
}
.nav-container {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

/* Sección Trámites */
.tramites-section {
  background-color: var(--gris-claro);
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}


.tramites-section .tramites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* siempre 4 columnas */
  gap: 30px;
  max-width: 100%;
  margin: 0 auto;
}


.tramite-card {
  background-color: var(--blanco);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateX(-50px);
  overflow: hidden;
}

.tramite-card.animate {
  opacity: 1;
  transform: translateX(0);
}

.tramite-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 30px 20px;
  text-align: center;
}

.tramite-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.tramite-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 15px 0;
}


.tramite-description {
  color: #444444;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Animación de entrada desde la izquierda */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tramite-card.slide-in {
  animation: slideInFromLeft 0.6s ease forwards;
}

/* Responsive Design para trámites */
@media (max-width: 768px) {
  .tramites-section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .tramites-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card-content {
    padding: 25px 15px;
  }
  
  .tramite-image {
    width: 70px;
    height: 70px;
  }
  
  .tramite-title {
    font-size: 1.2rem;
  }
  
  .tramite-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .tramite-image {
    width: 60px;
    height: 60px;
  }
  
  .tramite-title {
    font-size: 1.1rem;
  }
}

/* Sección de Botones Visuales */
.botones-section {
  background-color: var(--blanco);
  padding: 80px 0;
}

.botones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.boton-card {
  position: relative;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.boton-card.fade-in {
  opacity: 1;
}

.boton-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.boton-card:hover .card-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.card-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--blanco);
  z-index: 2;
  width: 90%;
}

.card-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 8px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive para botones visuales */
@media (max-width: 768px) {
  .botones-section {
    padding: 60px 0;
  }
  
  .botones-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
  }
  
  .boton-card {
    height: 180px;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .card-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .boton-card {
    height: 160px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-subtitle {
    font-size: 0.75rem;
  }
}

/* Footer */
.footer {
  background-color: var(--negro);
  padding: 40px 0;
  margin-top: 0;
}

.footer-text {
  color: var(--blanco);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  color: var(--blanco);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--blanco);
}

.social-icon:hover {
  color: var(--azul-electrico);
  border-color: var(--azul-electrico);
  transform: scale(1.1);
}


/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-top: 140px;
  }
  
  .header-title {
    font-size: 1.4rem;
    text-align: center;
  }
  
  .social-header {
    justify-content: center;
    margin-top: 10px;
  }
  
  .hero-section {
    background-attachment: scroll;
    min-height: calc(100vh - 140px);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-btn {
    padding: 15px 35px;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .tramite-icon {
    font-size: 3rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 160px;
  }
  
  .top-header {
    padding: 10px 0;
  }
  
  .header-title {
    font-size: 1.2rem;
  }
  
  .social-header-icon {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }
  
  .hero-section {
    min-height: calc(100vh - 160px);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-btn {
    padding: 12px 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  
  .tramites-section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Página Guía de Trámites */
.guia-tramites-main {
  padding: 40px 0 80px;
  background-color: var(--gris-claro);
  min-height: calc(100vh - 120px);
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 0;
  background-color: var(--blanco);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}


.page-subtitle {
  color: var(--gris-texto);
  font-size: 1.2rem;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tramites-section {
  margin-bottom: 60px;
  background-color: var(--blanco);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #364DFF; /* azul eléctrico */
  padding-bottom: 15px;
}


.section-title i {
  color: #364DFF; /* azul eléctrico */
}

.guia-tramites-main .tramites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}


.tramite-item {
  background-color: var(--gris-claro);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.tramite-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #364DFF; /* azul eléctrico */
}


.tramite-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--azul-electrico); /* azul eléctrico en vez de  */
  transition: width 0.3s ease;
}


.tramite-item:hover::before {
  width: 8px;
}

.tramite-name {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}


.tramite-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tramite-btn {
  background-color: var(--azul-electrico); /* azul eléctrico en lugar de  */
  color: var(--blanco);
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(54, 77, 255, 0.3); /* sombra en azul eléctrico */
}


.tramite-btn:hover {
  background-color: #364DFF; /* azul eléctrico */
  color: var(--blanco);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(54, 77, 255, 0.4); /* sombra azulada */
  text-decoration: none;
}


.tramite-btn:active {
  transform: scale(0.98);
}

/* Responsive para Guía de Trámites */
@media (max-width: 768px) {
  .guia-tramites-main {
    padding: 30px 0 60px;
  }
  
  .page-header {
    margin-bottom: 40px;
    padding: 30px 20px;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
  }
  
  .tramites-section {
    margin-bottom: 40px;
    padding: 30px 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .section-title i {
    font-size: 1.5rem;
  }
  
  .tramites-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tramite-item {
    padding: 20px;
  }
  
  .tramite-name {
    font-size: 1.1rem;
  }
  
  .tramite-description {
    font-size: 0.9rem;
  }
  
  .tramite-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 1.8rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .tramite-item {
    padding: 15px;
  }
  
  .tramite-name {
    font-size: 1rem;
  }
  
  .tramite-description {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  
  .tramite-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }
}

/* Página Institucional */
.institucional-main {
  padding: 40px 0 80px;
  background-color: var(--gris-claro);
  min-height: calc(100vh - 120px);
}

.institucional-section {
  margin-bottom: 30px;
}

.accordion-card {
  background-color: var(--blanco);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.accordion-header {
  padding: 25px 30px;
  background-color: var(--blanco);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gris-claro);
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background-color: #f8f9fa;
}

.accordion-header .section-title {
  margin: 0;
  color: #364DFF; /* azul eléctrico */
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}


.accordion-header .section-title i {
  color: #364DFF; /* azul eléctrico */
}


.accordion-icon {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-icon.rotated {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
}

.accordion-content.active {
  padding: 30px;
  max-height: 1000px;
  opacity: 1;
}

/* Autoridades */
.autoridades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.autoridad-card {
  background-color: var(--gris-claro);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.autoridad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #364DFF; /* azul eléctrico */
}


.autoridad-image {
  margin-bottom: 20px;
}

.autoridad-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #364DFF; /* azul eléctrico */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


.autoridad-info {
  text-align: center;
}

.autoridad-nombre {
  color: #007BFF;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.autoridad-cargo {
  color: var(--negro);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.autoridad-profesion {
  color: #555;
  font-size: 1rem;
  margin-bottom: 6px;
}

.autoridad-decreto {
  color: var(--gris-texto);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

/* Historia */
.historia-container {
  text-align: left;
}

.historia-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}


.historia-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.historia-placeholder {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-left: 4px solid var(--azul-electrico); /* azul eléctrico en lugar del  */
  border-radius: 0 8px 8px 0;
}


/* Responsive para Institucional */
@media (max-width: 768px) {
  .institucional-main {
    padding: 30px 0 60px;
  }
  
  .accordion-header {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .accordion-header .section-title {
    font-size: 1.5rem;
  }
  
  .accordion-content.active {
    padding: 20px;
  }
  
  .autoridades-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .autoridad-card {
    padding: 20px;
  }
  
  .autoridad-foto {
    width: 100px;
    height: 100px;
  }
  
  .autoridad-nombre {
    font-size: 1.2rem;
  }
  
  .autoridad-cargo {
    font-size: 1rem;
  }
  
  .historia-title {
    font-size: 1.6rem;
  }
  
  .historia-placeholder {
    font-size: 1rem;
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .accordion-header {
    padding: 15px;
  }
  
  .accordion-header .section-title {
    font-size: 1.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .accordion-content.active {
    padding: 15px;
  }
  
  .autoridad-card {
    padding: 15px;
  }
  
  .autoridad-foto {
    width: 80px;
    height: 80px;
  }
  
  .autoridad-nombre {
    font-size: 1.1rem;
  }
  
  .autoridad-cargo {
    font-size: 0.95rem;
  }
  
  .autoridad-profesion {
    font-size: 0.9rem;
  }
  
  .autoridad-decreto {
    font-size: 0.8rem;
  }
  
  .historia-title {
    font-size: 1.4rem;
  }
  
  .historia-placeholder {
    font-size: 0.95rem;
    padding: 12px;
  }
}

/* Página Transparencia */
.transparencia-main {
  padding: 40px 0 80px;
  background-color: var(--gris-claro);
  min-height: calc(100vh - 120px);
}

.transparencia-section {
  margin-bottom: 40px;
}

.marco-normativo-card,
.portal-transparencia-card {
  background-color: var(--blanco);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 40px;
  transition: all 0.3s ease;
}

.marco-normativo-card:hover,
.portal-transparencia-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.section-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #364DFF; /* azul eléctrico */
  padding-bottom: 15px;
}


.section-title i {
  color: #364DFF; /* azul eléctrico */
}

.portal-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid #364DFF; /* azul eléctrico */
  padding-bottom: 20px;
}


.portal-title i {
  color: var(--azul-electrico);
}


/* Marco Normativo */
.normativo-content {
  line-height: 1.8;
}

.normativo-intro {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-left: 4px solid #364DFF; /* azul eléctrico */
  border-radius: 0 8px 8px 0;
  text-align: justify;
}


.normativo-subsection {
  margin-bottom: 30px;
}

.normativo-subtitle {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gris-claro);
}


.normativo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.normativo-list li {
  color: #444;
  font-size: 1rem;
  margin-bottom: 10px;
  padding: 8px 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.normativo-list li:hover {
  color: #364DFF; /* azul eléctrico */
  transform: translateX(5px);
}


.normativo-list li i {
  color: var(--azul-electrico);
  font-size: 0.9rem;
  width: 20px;
}


/* Portal de Transparencia */
.portal-content {
  line-height: 1.8;
}

.portal-text {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
  text-indent: 2em;
}

.portal-text:first-child {
  font-weight: 500;
  color: #333;
}

/* Responsive para Transparencia */
@media (max-width: 768px) {
  .transparencia-main {
    padding: 30px 0 60px;
  }
  
  .marco-normativo-card,
  .portal-transparencia-card {
    padding: 30px 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .portal-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .section-title i,
  .portal-title i {
    font-size: 1.5rem;
  }
  
  .normativo-intro {
    font-size: 1rem;
    padding: 15px;
  }
  
  .normativo-subtitle {
    font-size: 1.2rem;
  }
  
  .normativo-list li {
    font-size: 0.95rem;
  }
  
  .portal-text {
    font-size: 1rem;
    text-indent: 1.5em;
  }
}

@media (max-width: 576px) {
  .marco-normativo-card,
  .portal-transparencia-card {
    padding: 20px 15px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .portal-title {
    font-size: 1.7rem;
  }
  
  .normativo-intro {
    font-size: 0.95rem;
    padding: 12px;
  }
  
  .normativo-subtitle {
    font-size: 1.1rem;
  }
  
  .normativo-list li {
    font-size: 0.9rem;
    flex-direction: row;
    align-items: flex-start;
  }
  
  .normativo-list li i {
    margin-top: 2px;
    flex-shrink: 0;
  }
  
  .portal-text {
    font-size: 0.95rem;
    text-indent: 1em;
  }
}

/* Página Tasas Retributivas */
.tasas-main {
  padding: 40px 0 80px;
  background-color: var(--gris-claro);
  min-height: calc(100vh - 120px);
}

.tasas-section {
  margin-bottom: 40px;
}

.tasa-accordion-item {
  background-color: var(--blanco);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tasa-accordion-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tasa-accordion-header {
  padding: 25px 30px;
  background-color: var(--blanco);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gris-claro);
  transition: all 0.3s ease;
}

.tasa-accordion-header:hover {
  background-color: #f8f9fa;
}

.tasa-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  flex: 1;
  line-height: 1.4;
}


.tasa-title i {
  color: var(--azul-electrico);
  flex-shrink: 0;
}


.tasa-accordion-icon {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}


.tasa-accordion-icon.rotated {
  transform: rotate(180deg);
}

.tasa-accordion-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
}

.tasa-accordion-content.active {
  padding: 30px;
  max-height: 2000px;
  opacity: 1;
}

/* Contenido de tasas */
.tasa-content {
  line-height: 1.8;
}

.tasa-intro {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 25px;
  padding: 20px;
  background-color: #f8f9fa;
  border-left: 4px solid #364DFF; /* azul eléctrico */
  border-radius: 0 8px 8px 0;
}


.tasa-list {
  margin-bottom: 25px;
}

.tasa-item,
.tasa-item-free,
.tasa-item-formula {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  gap: 20px;
}

.tasa-item:last-child,
.tasa-item-free:last-child,
.tasa-item-formula:last-child {
  border-bottom: none;
}

.tasa-description {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

.tasa-price {
  color: var(--azul-electrico);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}


.tasa-price-free {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}


.tasa-item-formula .tasa-description {
  width: 100%;
}

.tasa-important {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.tasa-important p {
  margin: 0;
  color: #856404;
  font-size: 1rem;
  line-height: 1.6;
}

.tasa-formula {
  background-color: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
  text-align: center;
}

.tasa-formula p {
  margin: 0;
  color: #0056b3;
  font-size: 1.1rem;
  line-height: 1.6;
}

.tasa-explanation {
  background-color: #f8f9fa;
  border-left: 4px solid var(--azul-electrico);
  border-radius: 0 8px 8px 0;
  padding: 20px;
  margin-top: 20px;
}


.tasa-explanation p {
  margin: 0;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
}

/* Responsive para Tasas */
@media (max-width: 768px) {
  .tasas-main {
    padding: 30px 0 60px;
  }
  
  .tasa-accordion-header {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .tasa-title {
    font-size: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .tasa-accordion-icon {
    align-self: flex-end;
    margin-left: 0;
    margin-top: -30px;
  }
  
  .tasa-accordion-content.active {
    padding: 20px;
  }
  
  .tasa-item,
  .tasa-item-free,
  .tasa-item-formula {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .tasa-price,
  .tasa-price-free {
    font-size: 1.1rem;
  }
  
  .tasa-intro {
    font-size: 1rem;
    padding: 15px;
  }
  
  .tasa-important,
  .tasa-formula,
  .tasa-explanation {
    padding: 15px;
  }
  
  .tasa-important p,
  .tasa-formula p,
  .tasa-explanation p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .tasa-accordion-header {
    padding: 15px;
  }
  
  .tasa-title {
    font-size: 1.1rem;
  }
  
  .tasa-accordion-content.active {
    padding: 15px;
  }
  
  .tasa-description {
    font-size: 0.95rem;
  }
  
  .tasa-price,
  .tasa-price-free {
    font-size: 1rem;
  }
  
  .tasa-intro {
    font-size: 0.95rem;
    padding: 12px;
  }
  
  .tasa-important,
  .tasa-formula,
  .tasa-explanation {
    padding: 12px;
  }
  
  .tasa-important p,
  .tasa-formula p,
  .tasa-explanation p {
    font-size: 0.9rem;
  }
}

/* Página Contacto */
.contacto-main {
  padding: 40px 0 0;
  background-color: var(--gris-claro);
  min-height: calc(100vh - 120px);
}

.contacto-content {
  display: flex;
  height: calc(100vh - 200px);
  min-height: 600px;
}

/* Panel lateral */
.sidebar-panel {
  width: 350px;
  background-color: var(--blanco);
  border-right: 2px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.search-container {
  padding: 25px 20px;
  border-bottom: 2px solid var(--gris-claro);
  background-color: #f8f9fa;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 15px;
  color: var(--gris-texto);
  font-size: 1rem;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--blanco);
}

.search-input:focus {
  outline: none;
  border-color: #364DFF; /* azul eléctrico */
  box-shadow: 0 0 0 3px rgba(54, 77, 255, 0.3); /* resplandor azul */
}


.clear-search {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--gris-texto);
  font-size: 1rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: none;
}

.clear-search:hover {
  background-color: #f0f0f0;
  color: var(--azul-electrico);
}


.clear-search.visible {
  display: block;
}

/* Lista de delegaciones */
.delegaciones-list {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.list-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background-color: #f8f9fa;
}


.list-container {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.delegacion-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--blanco);
}

.delegacion-item:hover {
  background-color: #f8f9fa;
  border-left: 4px solid #364DFF; /* azul eléctrico */
  padding-left: 16px;
}


.delegacion-item.active {
  background-color: var(--azul-electrico);
  color: var(--blanco);
  border-left: 4px solid var(--azul-electrico);
  padding-left: 16px;
}



.delegacion-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: inherit;
}

.delegacion-info {
  font-size: 0.9rem;
  color: var(--gris-texto);
  line-height: 1.4;
}

.delegacion-item.active .delegacion-info {
  color: rgba(255, 255, 255, 0.9);
}

/* Mapa */
.map-container {
  flex: 1;
  position: relative;
  background-color: #f0f0f0;
}

.map-element {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gris-texto);
  font-size: 1.2rem;
}

.map-placeholder i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #364DFF; /* azul eléctrico */
}

/* Info window personalizada */
.custom-info-window {
  max-width: 300px;
  padding: 15px;
}

.info-title {
  color: #364DFF; /* azul eléctrico */
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 2px solid #364DFF; /* azul eléctrico */
  padding-bottom: 5px;
}


.info-content {
  line-height: 1.6;
}

.info-item {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.info-item i {
  color: var(--azul-electrico);
  font-size: 0.9rem;
  margin-top: 2px;
  width: 15px;
}


.info-text {
  color: #444;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contacto-main {
    padding: 30px 0 0;
  }
  
  .contacto-content {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 160px);
  }
  
  .sidebar-panel {
    width: 100%;
    height: 300px;
    border-right: none;
    border-bottom: 2px solid #e0e0e0;
  }
  
  .search-container {
    padding: 20px 15px;
  }
  
  .list-title {
    font-size: 1.2rem;
    padding: 15px;
  }
  
  .delegacion-item {
    padding: 12px 15px;
  }
  
  .delegacion-name {
    font-size: 1rem;
  }
  
  .delegacion-info {
    font-size: 0.85rem;
  }
  
  .map-container {
    height: 400px;
    min-height: 400px;
  }
  
  .map-placeholder {
    font-size: 1rem;
  }
  
  .map-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .contacto-main {
    padding: 20px 0 0;
  }
  
  .sidebar-panel {
    height: 250px;
  }
  
  .search-container {
    padding: 15px 10px;
  }
  
  .search-input {
    padding: 10px 12px 10px 40px;
    font-size: 0.95rem;
  }
  
  .list-title {
    font-size: 1.1rem;
    padding: 12px 10px;
  }
  
  .delegacion-item {
    padding: 10px;
  }
  
  .delegacion-name {
    font-size: 0.95rem;
  }
  
  .delegacion-info {
    font-size: 0.8rem;
  }
  
  .map-container {
    height: 350px;
    min-height: 350px;
  }
  
  .custom-info-window {
    max-width: 250px;
    padding: 12px;
  }
  
  .info-title {
    font-size: 1.1rem;
  }
  
  .info-text {
    font-size: 0.9rem;
  }
}

/* Scrollbar personalizada para la lista */
.list-container::-webkit-scrollbar {
  width: 6px;
}

.list-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.list-container::-webkit-scrollbar-thumb {
  background: var(--azul-electrico);
  border-radius: 3px;
}

.list-container::-webkit-scrollbar-thumb:hover {
  background: #2636cc; /* un azul un poco más oscuro para el hover */
}

/* Animaciones */
.delegacion-item {
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados de carga */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: var(--gris-texto);
  font-style: italic;
}

.no-results i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--gris-texto);
}

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

/* Mejoras de accesibilidad */
.btn:focus,
.nav-link:focus,
.tramite-btn:focus,
.accordion-header:focus,
.tasa-accordion-header:focus,
.search-input:focus,
.delegacion-item:focus {
  outline: 2px solid var(--azul-electrico);
  outline-offset: 2px;
}

