/* ==== Estilo General para index.php y tablas_zip_xxxxx_florida.php ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==== Body ==== */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #222;
}

/* ==== Titulares globales ==== */
h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

/* ==== Hero header ==== */
.hero {
  background: #060640;
  color: white;
  padding: 2rem;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==== Local areas ==== */
.local-areas {
  background: #ecf9ff;
  padding: 2rem;
  text-align: left;
}
.local-box {
  background: white;
  border: 3px solid #060640;
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  font-size: 0.95rem;
}
.local-box h2 {
  margin-bottom: 1rem;
  color: #004080;
  font-weight: 700;
}

/* ==== FAQ ==== */
.faq {
  background: #ecf9ff;
  padding: 2rem;
  text-align: center;
}
.faq-box {
  background: white;
  border: 3px solid #060640;
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.faq div {
  text-align: left;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}
.faq h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #003366;
}
.faq p {
  text-align: left;
  font-size: 1rem;
  margin: 0.5rem 0 1rem 0;
  color: #444;
}

/* Estilos principales para la tabla ZIP */
.zip-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  font-family: Arial, sans-serif;
  background-color: #fefefe;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
}

/* Encabezado */
.zip-table thead th {
  background-color: #004080;
  color: white;
  padding: 12px 8px;
  font-weight: 700;
  border-bottom: 2px solid #003060;
  font-size: 1rem;
}

/* Celdas */
.zip-table tbody td {
  border: 1px solid #ddd;
  padding: 10px 6px;
  vertical-align: top;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Filas alternas */
.zip-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover */
.zip-table tbody tr:hover {
  background-color: #e6f0ff;
  transition: background-color 0.3s ease;
}

/* Ancho de columnas (3 columnas en total) */
.zip-table th, 
.zip-table td {
  width: calc(100% / 3);
}

/* ==== Estilos para enlaces de la columna Zona ==== */
.zip-link {
  color: #004080;               /* Azul corporativo (estado normal) */
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 2px 4px;          /* Movido al estado base */
  border-radius: 4px;        /* También desde el inicio */
}

/* Visitado (después de hacer clic) */
.zip-link:visited {
  color: #cc0000;               /* Rojo permanente */
}

/* Hover / Focus */
.zip-link:hover,
.zip-link:focus,
.zip-link:focus-visible {
  color: #002b5c;               /* Azul más oscuro */
  background-color: #e6f0ff;    /* Fondo azul claro */
  outline: 2px solid #004080;
  outline-offset: 2px;
  border-radius: 4px;
  padding: 2px 4px;
  text-decoration: underline;
}

/* Activo (mientras mantienes el clic presionado) */
.zip-link:active {
  color: #ff0000;               /* Rojo más fuerte en el momento del clic */
}

/* ==== Footer ==== */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
