:root {
  --azul: #2ba9dc;
  --azul-oscuro: #1f8dbb;
  --verde: #7ab93c;
  --gris-texto: #8a9bb0;
  --gris-oscuro: #4a4a4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #ffffff;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--gris-oscuro);
}

.card {
  width: 100%;
  max-width: 480px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: 200px;
  max-width: 60%;
  margin-bottom: 24px;
}

.subtitulo {
  color: var(--gris-texto);
  font-size: 1.05rem;
  margin: 0 0 40px;
}

.boton-circular {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43, 169, 220, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}

.boton-circular:hover {
  background: var(--azul-oscuro);
}

.boton-circular:active {
  transform: scale(0.96);
}

.boton-circular:disabled {
  background: #b9c4cc;
  cursor: wait;
  box-shadow: none;
}

.etiqueta-boton {
  display: block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--gris-oscuro);
}

.ayuda {
  color: var(--gris-texto);
  font-size: 0.85rem;
  margin-top: 4px;
}

.oculto {
  display: none;
}

.resultados {
  width: 100%;
  margin-top: 40px;
  text-align: left;
}

.resultados img.foto-anotada {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  z-index: 1000;
}

.lightbox.oculto {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

.resumen {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gris-oscuro);
}

.ave {
  border: 1px solid #e7ecf0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.ave-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.ave-nombre {
  font-weight: 600;
}

.ave-cientifico {
  font-style: italic;
  color: var(--gris-texto);
  font-size: 0.9rem;
}

.confianza {
  font-weight: 700;
  white-space: nowrap;
}

.confianza.alta { color: var(--verde); }
.confianza.media { color: #d18a1f; }
.confianza.baja { color: #c0392b; }

.ave-enlace {
  font-size: 0.85rem;
  margin-top: 6px;
  display: inline-block;
  color: var(--azul-oscuro);
  text-decoration: none;
}

.ave-enlace:hover {
  text-decoration: underline;
}

.aviso-baja {
  font-size: 0.85rem;
  color: var(--gris-texto);
  margin-top: 8px;
}

.aviso-baja .alt {
  color: var(--gris-oscuro);
}

.error {
  color: #c0392b;
  font-weight: 600;
}

.vacio {
  color: var(--gris-texto);
}
