/* ==========================================================
   listin.css - Hoja de estilo del listin telefonico
   Carpeta: /telefono/   (se carga DESPUES de ../estilo_barra_menu.css)

   Todas las reglas van dentro de #listin para no afectar
   al menu superior ni a otras paginas de la web.
   Para cambiar colores, edite las lineas marcadas con COLOR.
   ========================================================== */

/* Fondo de la pagina (el mismo de antes: ../servicios/fondo1.jpg) */
body {
  margin: 2px 0 0 0;
  background-color: #FFA275;                        /* COLOR de fondo si no carga la imagen */
  background-image: url(../servicios/fondo1.jpg);
  background-attachment: fixed;
}

/* Caja general de la pagina */
#listin {
  max-width: 1000px;
  margin: 8px auto 16px auto;
  padding: 10px 14px 16px 14px;
  background-color: #FFF9F2;
  background-color: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #1B1B1B;
}

#listin a { color: #0000CC; }                       /* COLOR de los enlaces */
#listin a:focus, #listin input:focus, #listin button:focus {
  outline: 3px solid #FF8C00;
  outline-offset: 2px;
}

/* Cabecera y titulos */
#listin .cabecera { text-align: left; }
#listin .banner { text-align: center; margin: 6px 0; }
#listin .banner img { max-width: 100%; height: auto; }
#listin h1 {
  margin: 6px 0 4px 0;
  text-align: center;
  font-size: 24px;
  color: #0000CC;                                   /* COLOR del titulo (el azul de siempre) */
}
#listin .ayuda { margin: 0 0 12px 0; text-align: center; color: #444444; }

/* Texto solo para lectores de pantalla */
#listin .sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Elementos que solo se muestran si hay JavaScript */
#listin .solo-js { display: none; }

/* Buscador */
#listin #buscador { margin: 0 0 12px 0; }
#listin #buscador label { display: block; font-weight: bold; margin-bottom: 4px; }
#listin #buscador .caja { display: flex; align-items: center; }
#listin #buscar {
  flex: 1; min-width: 0; box-sizing: border-box;
  padding: 10px 12px; font-size: 18px;
  border: 2px solid #0000CC; border-radius: 8px;
}
#listin #borrar {
  margin-left: 8px; padding: 10px 14px; font-size: 16px; cursor: pointer;
  border: 2px solid #0000CC; border-radius: 8px; background: #FFFFFF; color: #0000CC;
}
#listin .estado { min-height: 1.4em; margin: 6px 0 0 0; font-weight: bold; color: #444444; }
#listin #sinresultados { text-align: center; font-weight: bold; }

/* Indice de categorias */
#listin #indice { list-style: none; margin: 0 0 14px 0; padding: 0; text-align: center; }
#listin #indice li { display: inline-block; margin: 3px 2px; }
#listin #indice a {
  display: inline-block; padding: 6px 12px; border-radius: 16px;
  background: #1F3FA8; color: #FFFFFF; text-decoration: none; font-size: 15px;   /* COLOR de los botones del indice */
}
#listin #indice a:hover { background: #0000CC; }

/* Categorias */
#listin .categoria { margin: 0 0 18px 0; }
#listin h2 {
  margin: 0; padding: 8px 12px; font-size: 20px;
  background: #1F3FA8; color: #FFFFFF;              /* COLOR de las cabeceras de categoria */
  border-radius: 8px 8px 0 0;
}
#listin #urgencias h2 { background: #B00020; }      /* COLOR de Urgencias (rojo) */
#listin .arriba { margin: 4px 0 0 0; text-align: right; font-size: 14px; }

/* Tablas de telefonos */
#listin table.tel {
  width: 100%; border-collapse: collapse;
  border: 1px solid #C9D3BE; border-top: 0;
}
#listin table.tel th, #listin table.tel td {
  padding: 8px 10px; vertical-align: top; text-align: left;
  border-top: 1px solid #DDE5D3;
}
#listin table.tel th { width: 58%; font-weight: bold; }
#listin table.tel tr:nth-child(even) { background: #F1F7EA; }   /* COLOR de las filas alternas */
#listin .sub { display: block; font-weight: normal; font-size: 14px; color: #444444; }

/* Numeros de telefono */
#listin .linea { display: block; margin: 2px 0; }
#listin .et { font-size: 14px; color: #444444; }
#listin a.tel {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: #2E6B1F; color: #FFFFFF;              /* COLOR de los botones de numero (verde) */
  font-weight: bold; font-size: 17px; text-decoration: none; white-space: nowrap;
}
#listin a.tel:hover { background: #1F4D14; }
#listin #urgencias a.tel { background: #B00020; }
#listin #urgencias a.tel:hover { background: #7D0016; }
#listin .fax { font-weight: bold; font-size: 17px; color: #444444; }
#listin .ok { color: #1B6E1B; font-weight: bold; }
#listin .nuevo { font-size: 13px; color: #8A4B00; }

/* Pie */
#listin .mas { text-align: center; margin: 12px 0 6px 0; }
#listin .nota { font-size: 13px; color: #444444; text-align: center; }
#listin address { font-size: 12px; font-style: normal; color: #800000; }

/* Moviles y pantallas estrechas: cada fila se convierte en una tarjeta */
@media (max-width: 640px) {
  #listin { margin: 4px 4px 12px 4px; padding: 8px 8px 12px 8px; }
  #listin h1 { font-size: 20px; }
  #listin table.tel, #listin table.tel tbody, #listin table.tel tr,
  #listin table.tel th, #listin table.tel td { display: block; width: auto; }
  #listin table.tel { border: 0; }
  #listin table.tel tr {
    margin: 0 0 8px 0; padding: 6px 8px;
    border: 1px solid #C9D3BE; border-radius: 8px; background: #FFFFFF;
  }
  #listin table.tel tr:nth-child(even) { background: #F1F7EA; }
  #listin table.tel th, #listin table.tel td { padding: 2px 0; border-top: 0; }
  #listin table.tel th { width: auto; }
  #listin h2 { border-radius: 8px; margin-bottom: 8px; }
  #listin a.tel { padding: 8px 14px; font-size: 19px; }   /* botones grandes para pulsar con el dedo */
  #listin #buscador .caja { display: block; }
  #listin #buscar { display: block; width: 100%; }
  #listin #borrar { margin: 8px 0 0 0; }
}

/* Impresion: sin fondos, sin buscador ni indice */
@media print {
  body { background: #FFFFFF !important; }
  #listin { max-width: none; margin: 0; padding: 0; background: #FFFFFF; }
  #listin #buscador, #listin #indice, #listin .arriba, #listin .solo-js { display: none !important; }
  #listin h2, #listin #urgencias h2 { background: none; color: #000000; border-bottom: 2px solid #000000; border-radius: 0; }
  #listin a.tel, #listin #urgencias a.tel { background: none; color: #000000; padding: 0; font-size: 14px; }
  #listin table.tel tr { page-break-inside: avoid; }
  #listin table.tel tr:nth-child(even) { background: none; }
}
