/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Estilos del menú */
.menu {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu-small {
  padding: 0.5rem 0;
  background: linear-gradient(135deg, #1a252f 0%, #0f1a24 100%);
}

.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(45deg, #e74c3c, #f39c12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.menu-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.menu-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #e74c3c;
  transition: width 0.3s ease;
}

.menu-links a:hover::after {
  width: 80%;
}

.menu-links a:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Contenido principal */
.contenido {
  max-width: 1200px;
  margin: 100px auto 0;
  padding: 2rem;
}

.titulo-principal {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
  position: relative;
  padding-bottom: 1rem;
}

.titulo-principal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, #f39c12);
  border-radius: 3px;
}

/* Bloques de contenido */
.bloque {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.texto {
  font-size: 1.1rem;
  color: #555;
}

/* Título específico de Cartagena */
.titulo_cartagena {
  font-size: 2.5rem;
  color: #2c3e50;
  margin: 1rem 0 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.titulo_cartagena::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e74c3c, #f39c12, transparent);
}

.sectores {
  margin: 2rem 0 1rem;
  font-size: 2rem;
  color: #2c3e50;
  border-left: 5px solid #e74c3c;
  padding-left: 1rem;
}

.texto h3:not(.titulo_cartagena):not(.sectores) {
  font-size: 2rem;
  color: #2c3e50;
  margin: 2rem 0 1rem;
  position: relative;
  display: inline-block;
}

.texto h3:not(.titulo_cartagena):not(.sectores)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.texto p span b {
  color: #e74c3c;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  text-align: center;
  padding: 1rem;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 8px;
  border: 1px solid #e74c3c;
}

/* Enlaces */
a {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 25px;
  border: 1px solid transparent;
}

a:hover {
  background: #e74c3c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
  border-color: #e74c3c;
}

/* Información importante */
.texto p:has(b) {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1rem 0;
  border-left: 5px solid #e74c3c;
}

.texto b {
  color: #e74c3c;
  font-size: 1.1rem;
}

/* Lista de emergencias */
.texto br + b {
  display: inline-block;
  margin: 0.2rem 0;
}

.texto b:has(+ br) {
  background: #2c3e50;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: block;
  margin: 2rem auto;
}

img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Footer */
.seccion-final {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.contenedor-final {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.zona-vacia h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #e74c3c, #f39c12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zona-vacia p {
  color: #bdc3c7;
  font-style: italic;
}

.zona-listas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grupo-lista h4 {
  color: #e74c3c;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grupo-lista ul {
  list-style: none;
}

.grupo-lista li {
  color: #bdc3c7;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  cursor: default;
}

.grupo-lista li:hover {
  color: white;
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .menu-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .menu-links a {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
  }
  
  .titulo-principal {
    font-size: 2rem;
  }
  
  .titulo_cartagena {
    font-size: 2rem;
  }
  
  .sectores {
    font-size: 1.5rem;
  }
  
  .contenedor-final {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .zona-listas {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contenido {
    padding: 1rem;
  }
  
  .bloque {
    padding: 1rem;
  }
  
  .titulo-principal {
    font-size: 1.5rem;
  }
  
  .titulo_cartagena {
    font-size: 1.5rem;
  }
  
  .sectores {
    font-size: 1.2rem;
  }
  
  .menu-links {
    flex-direction: column;
    align-items: center;
  }
  
  .menu-links li {
    width: 100%;
    text-align: center;
  }
  
  .menu-links a {
    display: block;
  }
  
  a {
    display: block;
    text-align: center;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bloque {
  animation: fadeIn 1s ease-out;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #e74c3c, #f39c12);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #c0392b, #e67e22);
}

/* Estilos específicos para la sección de información de emergencias */
.texto br + br + b,
.texto b + br + b {
  background: #2c3e50;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  display: inline-block;
  margin: 0.2rem 0;
}

/* Estilo para el párrafo de introducción */
.texto p:first-of-type {
  font-size: 1.2rem;
  color: #2c3e50;
  font-weight: 500;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}