:root {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #172033;
  background: #f4f6fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.oculto {
  display: none !important;
}


/* LOGIN */

.pantalla-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, #eaf4ff, transparent 40%),
    #f4f6fa;
}

.tarjeta-login {
  width: min(420px, 100%);
  background: white;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 18px 60px rgba(27, 39, 78, 0.12);
}

.marca {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.marca-icono {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
}

.marca h1 {
  margin: 0;
  font-size: 22px;
}

.marca p {
  margin: 3px 0 0;
  color: #758096;
}

.tarjeta-login h2 {
  margin-bottom: 5px;
}

.texto-secundario {
  color: #758096;
  margin-top: 0;
  margin-bottom: 26px;
}

.tarjeta-login label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 7px;
}

.tarjeta-login input {
  width: 100%;
  border: 1px solid #d8deea;
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
}

.tarjeta-login input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tarjeta-login button {
  width: 100%;
  margin-top: 22px;
  border: 0;
  border-radius: 10px;
  padding: 13px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  background: #2563eb;
}

.mensaje-error {
  min-height: 18px;
  color: #c73737;
  font-size: 13px;
  margin-top: 12px;
}


/* PANEL */

.aplicacion {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px 1fr;
}

.barra-lateral {
  background: #172033;
  color: white;
  padding: 22px 15px;
}

.logo-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 3px 8px 25px;
}

.logo-panel strong,
.logo-panel span {
  display: block;
}

.logo-panel span {
  color: #aeb8cc;
  font-size: 12px;
  margin-top: 2px;
}

.marca-icono.pequeno {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 20px;
}

nav {
  display: grid;
  gap: 5px;
}

.menu {
  width: 100%;
  border: 0;
  background: transparent;
  color: #bbc5d8;
  text-align: left;
  border-radius: 9px;
  padding: 12px 13px;
  cursor: pointer;
}

.menu:hover,
.menu.activo {
  background: #1e3a5f;
  color: white;
}

.contenido {
  padding: 28px 34px;
}

.encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.encabezado h1 {
  margin: 0;
}

.encabezado p {
  margin: 4px 0 0;
  color: #758096;
}

.usuario {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
}

.usuario strong,
.usuario span {
  display: block;
}

.usuario span {
  color: #758096;
  font-size: 12px;
}

.usuario button {
  border: 1px solid #d8deea;
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.bienvenida {
  margin-top: 32px;
  background: white;
  padding: 28px;
  border-radius: 15px;
  border: 1px solid #e6e9ef;
}

.bienvenida h2 {
  margin-top: 0;
}

.tarjetas {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tarjeta {
  background: white;
  border: 1px solid #e6e9ef;
  border-radius: 13px;
  padding: 20px;
}

.tarjeta span {
  color: #758096;
  display: block;
  font-size: 13px;
}

.tarjeta strong {
  display: block;
  margin-top: 12px;
  font-size: 26px;
}

@media (max-width: 800px) {
  .aplicacion {
    grid-template-columns: 1fr;
  }

  .barra-lateral {
    display: none;
  }

  .contenido {
    padding: 20px;
  }

  .tarjetas {
    grid-template-columns: 1fr 1fr;
  }
}

/* IDENTIDAD VISUAL JOAR */

.marca-login {
  display: block;
}

.logo-login {
  display: block;
  width: 190px;
  max-width: 75%;
  height: auto;
  margin-bottom: 8px;
}

.marca-login p {
  margin: 0;
  font-size: 15px;
  color: #64748b;
}

.logo-panel {
  padding: 5px 10px 28px;
}

.logo-lateral {
  display: block;
  width: 175px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* CLIENTES */

.titulo-seccion {
  margin-top: 10px;
  margin-bottom: 22px;
}

.titulo-seccion h2 {
  margin: 0;
  font-size: 28px;
}

.titulo-seccion p {
  margin: 6px 0 0;
  color: #758096;
}

.panel-busqueda {
  background: white;
  border: 1px solid #e6e9ef;
  border-radius: 15px;
  padding: 24px;
}

.panel-busqueda label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.fila-busqueda {
  display: flex;
  gap: 12px;
}

.fila-busqueda input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d8deea;
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
}

.fila-busqueda input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.fila-busqueda button {
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.fila-busqueda button:hover {
  background: #1d4ed8;
}

.fila-busqueda button:disabled {
  opacity: 0.6;
  cursor: default;
}

.mensaje-cliente {
  min-height: 20px;
  margin-top: 14px;
  font-size: 14px;
  color: #64748b;
}

.ficha-cliente {
  margin-top: 20px;
  background: white;
  border: 1px solid #e6e9ef;
  border-radius: 15px;
  padding: 26px;
}

.ficha-encabezado {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid #edf0f5;
}

.ficha-encabezado h3 {
  margin: 5px 0 3px;
  font-size: 25px;
}

.ficha-encabezado p {
  margin: 0;
  color: #758096;
}

.etiqueta {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 7px;
  background: #eaf4ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

#crear-trabajo-cliente {
  border: 0;
  border-radius: 10px;
  padding: 11px 17px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.datos-cliente {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0;
}

.datos-cliente > div {
  background: #f7f9fc;
  border-radius: 10px;
  padding: 15px;
}

.datos-cliente span {
  display: block;
  color: #758096;
  font-size: 12px;
  margin-bottom: 6px;
}

.datos-cliente strong {
  display: block;
  overflow-wrap: anywhere;
}

.servicios-cliente {
  border-top: 1px solid #edf0f5;
  padding-top: 20px;
}

.servicios-cliente h3 {
  margin-top: 0;
}

.servicio-item {
  padding: 15px;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  margin-top: 10px;
}

.servicio-item strong {
  display: block;
  margin-bottom: 5px;
}

.servicio-item span {
  color: #758096;
  font-size: 13px;
}

@media (max-width: 900px) {
  .datos-cliente {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .fila-busqueda {
    flex-direction: column;
  }

  .fila-busqueda button {
    padding: 13px;
  }

  .datos-cliente {
    grid-template-columns: 1fr;
  }

  .ficha-encabezado {
    flex-direction: column;
  }
}
