:root {
  --rosa-gdc: #e85a8d;
  --azul-lab: #004b8d;
  --gris-central: #2b2b2b;
  --verde-admin: #198754;
  --azul-it: #0d6efd;
  --naranja-ope: #f28c28;
  --fondo: #f2f4f7;
  --texto: #222;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
}

header {
  background: var(--rosa-gdc);
  color: white;
  padding: 14px;
  text-align: center;
}

header h1 {
  margin: 0 0 10px 0;
  font-size: 24px;
}

input {
  width: 90%;
  max-width: 500px;
  padding: 9px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
}

main {
  padding: 12px;
}

h2 {
  text-align: center;
  margin: 10px 0 14px 0;
  font-size: 22px;
}

.bloque {
  background: white;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* PANEL GDC */

.bloque-gdc h2 {
  color: var(--gris-central);
}

.botones-gdc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* CLÍNICAS */

.bloque-clinicas h2 {
  color: var(--rosa-gdc);
}

#lista-clinicas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fila-superior {
  width: 100%;
}

.fila-inferior {
  display: grid;
  grid-template-columns: 2fr 1.3fr 0.8fr 1fr;
  gap: 14px;
}

.provincia {
  background: #fafafa;
  padding: 12px;
  border-radius: 12px;
  border-left: 5px solid var(--rosa-gdc);
}

.provincia h3 {
  margin: 0 0 10px 0;
  color: var(--rosa-gdc);
  text-align: center;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 8px;
  font-size: 15px;
}

.lista-malaga {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.lista-provincia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* SERVICIOS CENTRALES */

#lista-servicios {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.panel-departamento {
  background: white;
  padding: 12px;
  border-radius: 14px;
  border-left: 5px solid var(--gris-central);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.panel-departamento h3 {
  margin: 0 0 10px 0;
  text-align: center;
  font-size: 15px;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 8px;
}

.lista-contactos-panel {
  display: grid;
  gap: 8px;
}

/* LABORATORIO */

#lista-laboratorio {
  max-width: 800px;
  margin: 0 auto;
}

.panel-laboratorio {
  background: white;
  padding: 12px;
  border-radius: 14px;
  border-left: 5px solid var(--azul-lab);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.panel-laboratorio h3 {
  margin: 0 0 10px 0;
  text-align: center;
  font-size: 15px;
  color: var(--azul-lab);
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 8px;
}

.lista-laboratorio-contactos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* BOTONES */

.boton-item,
.clinica {
  color: white;
  padding: 10px 7px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.28);
  cursor: pointer;
  user-select: none;
  transition: all 0.1s ease-in-out;
  line-height: 1.2;
}

.boton-item:active,
.clinica:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.28);
}

.clinica {
  background: var(--rosa-gdc);
}

.clinica:hover {
  background: #f06b9d;
}

.color-central,
.color-rrhh {
  background: var(--gris-central);
}

.color-marketing {
  background: var(--rosa-gdc);
}

.color-administracion {
  background: var(--verde-admin);
}

.color-it {
  background: var(--azul-it);
}

.color-ope {
  background: var(--naranja-ope);
}

.color-lab {
  background: var(--azul-lab);
}

/* FICHA CONTACTO */

.contacto {
  background: white;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contacto h3 {
  margin: 0;
}

.contacto p {
  margin: 6px 0;
  font-size: 14px;
}

.botones {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.botones a {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

.llamar {
  background: #198754;
}

.correo {
  background: #0d6efd;
}

.whatsapp {
  background: #25D366;
}

/* VOLVER */

.boton-volver {
  padding: 10px 16px;
  border: none;
  background: #333;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 14px;
}

/* SIN DATOS */

.sin-datos {
  width: 100%;
  text-align: center;
  color: #777;
  font-style: italic;
  font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  #lista-servicios {
    grid-template-columns: repeat(2, 1fr);
  }

  .lista-laboratorio-contactos {
    grid-template-columns: repeat(2, 1fr);
  }

  .lista-malaga {
    grid-template-columns: repeat(2, 1fr);
  }

  .fila-inferior {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .botones-gdc,
  #lista-servicios,
  .lista-laboratorio-contactos,
  .lista-malaga,
  .fila-inferior {
    grid-template-columns: 1fr;
  }
}

/* UTILIDADES */

.oculto {
  display: none;
}



.contacto-directo h3 {
  margin: 0 0 8px 0;
}

.contacto-directo p {
  margin: 5px 0;
  font-size: 14px;
}

.titulo-laboratorio {
  color: var(--azul-lab);
}

#lista-contactos {
  max-width: 800px;
  margin: 0 auto;
}

#lista-contactos {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.panel-departamento .contacto h3 {
  text-align: left;
}

/* ICONOS BOTONES PRINCIPALES */

.boton-item i {
  margin-right: 8px;
  font-size: 15px;
}

/* BLOQUE COMITÉ MÉDICO */

.comite-medico {
  margin-top: 20px;
  background: #fff7ef;
  border: 2px solid var(--naranja-ope);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.comite-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.comite-icono {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--naranja-ope);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--naranja-ope);
  font-size: 22px;
  background: white;
  flex-shrink: 0;
}

.comite-texto h3 {
  margin: 0;
  color: var(--naranja-ope);
  font-size: 18px;
}

.comite-texto p {
  margin: 4px 0 0 0;
  color: #444;
  font-size: 14px;
}

.btn-comite {
  background: var(--naranja-ope);
  color: white;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

.btn-comite:hover {
  background: #d97706;
}

@media (max-width: 600px) {
  .comite-medico {
    padding: 16px;
    align-items: flex-start;
  }

  .btn-comite {
    width: 100%;
    justify-content: center;
  }
}