/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía base */
html {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  flex: 1;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #1f2937;          /* gris oscuro */
  background-color: #f9fafb; /* gris claro */
  display: flex;
  flex-direction: column;
}

/* Contenedor principal toma todo el espacio disponible */
body > .container {
  flex: 1;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


/* Header */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

header h1 {
  color: #2563eb; /* azul vivo */
  font-size: 1.8rem;
  font-weight: 700;
  margin-left: 1.5rem;
}

nav a {
  margin-left: 1.5rem;
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #1d4ed8; /* azul más oscuro */
  text-decoration: underline;
}

/* Tabla estilizada */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

thead {
  background-color: #2563eb; /* azul */
  color: white;
}

thead th {
  padding: 12px 15px;
  font-weight: 600;
  text-align: center;
}

tbody tr {
  border-bottom: 1px solid #e5e7eb; /* gris claro */
  transition: background-color 0.3s ease;
}

tbody tr:hover {
  background-color: #eff6ff; /* azul muy claro */
}

tbody td {
  padding: 12px 15px;
  text-align: center;
  color: #374151; /* gris oscuro */
  font-size: 1rem;
}

/* Botón */
.btn {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #1d4ed8;
}

/* Footer */
footer {
  background-color: #1e40af; /* azul oscuro */
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-weight: 500;
  font-size: 0.9rem;
}
.map-container {
  margin-top: 1em;
  margin-bottom: 1em;
  height: 600px;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.map-container iframe,
.map-container #map {
  height: 100%;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  position: relative !important;
  z-index: 0 !important;
}

.btn-danger {
  background-color: #dc2626;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-danger:hover {
  background-color: #b91c1c;
}
/* Responsive para tabla */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 0.3rem 0.8rem;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead tr {
    display: none;
  }

  tbody tr {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
  }

  tbody td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: 45%;
    padding-left: 0.5rem;
    font-weight: 600;
    text-align: left;
    color: #2563eb;
  }
}
.btn-danger {
  background-color: #dc2626;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.map-container {
    height: 800px;  /* o el tamaño que quieras */
    width: 100%;    /* para que ocupe todo el ancho disponible */
}